[asterisk-bugs] [Asterisk 0014015]: Asterisk can crash when database schema is changed

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Dec 4 15:57:15 CST 2008


The following issue requires your FEEDBACK. 
====================================================================== 
http://bugs.digium.com/view.php?id=14015 
====================================================================== 
Reported By:                amorsen
Assigned To:                Corydon76
====================================================================== 
Project:                    Asterisk
Issue ID:                   14015
Category:                   CDR/cdr_adaptive_odbc
Reproducibility:            have not tried
Severity:                   crash
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.6.0.1 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-12-03 10:35 CST
Last Modified:              2008-12-04 15:57 CST
====================================================================== 
Summary:                    Asterisk can crash when database schema is changed
Description: 
I had a CDR database on MySQL with a column userfield, which I wanted to
change to be called hangupcause. I did this in MySQL:

alter table cdr change column userfield hangupcause varchar(255) NOT NULL
default '';

I got this:
[Dec  3 17:20:12] WARNING[21039] res_odbc.c: SQL Execute returned an error
-1: 42S22: [MySQL][ODBC 3.51 Driver][mysqld-5.0.51a-log]Unknown column
'userfield' in 'field list' (87)
[Dec  3 17:20:12] WARNING[21039] res_odbc.c: SQL Execute error -1!
Attempting a reconnect...
[Dec  3 17:20:12] WARNING[21039] res_odbc.c: Connection is down attempting
to reconnect...
[Dec  3 17:20:12] DEBUG[21039] res_odbc.c: Disconnected 0 from cdr [cdr]

And then this:
Dec  3 17:20:12 lpbx02 kernel: asterisk[20978]: segfault at 430 ip
0013f9d9 sp b55e47f0 error 4 in libodbc.so.1.0.0[126000+70000]

Having it as severity "crash" is perhaps overkill, since noone sane will
change database schema while keeping asterisk running, but it DID crash...

Fedora 10 with:
asterisk-1.6.0.1-2.fc10.i386
asterisk-dahdi-1.6.0.1-2.fc10.i386
asterisk-odbc-1.6.0.1-2.fc10.i386

====================================================================== 

---------------------------------------------------------------------- 
 (0095806) Corydon76 (administrator) - 2008-12-04 15:57
 http://bugs.digium.com/view.php?id=14015#c95806 
---------------------------------------------------------------------- 
I'm still going to need a backtrace, as required in the bug guidelines. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-12-04 15:57 Corydon76      Note Added: 0095806                          
2008-12-04 15:57 Corydon76      Status                   assigned => feedback
======================================================================




More information about the asterisk-bugs mailing list