[asterisk-bugs] [Asterisk 0016252]: ODBC Crash in 1.6.0.18-rc2

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Nov 18 12:29:20 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16252 
====================================================================== 
Reported By:                kobaz
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   16252
Category:                   Resources/res_odbc
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.6.0.18-rc3 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-11-16 09:28 CST
Last Modified:              2009-11-18 12:29 CST
====================================================================== 
Summary:                    ODBC Crash in 1.6.0.18-rc2
Description: 
Doing a simple odbc query will crash asterisk

Error while executing the query (77)
[Nov 16 10:13:07] WARNING[17379]: func_odbc.c:191 generic_execute: SQL
Exec Direct failed (-1)![UPDATE asterisk.log_calls SET status = 'CALLEE
PICKUP', call_pickup_time = NOW(), caller_to_channel = 'SIP/201-00000004',
caller_to_uniqueid = '1258384379.23' WHERE call_log_id = '']
[Nov 16 10:13:07] WARNING[17379]: res_odbc.c:583 ast_odbc_direct_execute:
SQL Exec Direct failed.  Attempting a reconnect...
[Nov 16 10:13:07] DEBUG[17379]: res_odbc.c:1392 odbc_obj_disconnect:
Disconnected 0 from pbx [pbx]
[Nov 16 10:13:07] DEBUG[17379]: res_odbc.c:1400 odbc_obj_disconnect:
Database handle deallocated
[Nov 16 10:13:07] NOTICE[17379]: res_odbc.c:1427 odbc_obj_connect:
Connecting pbx
[Nov 16 10:13:07] NOTICE[17379]: res_odbc.c:1455 odbc_obj_connect:
res_odbc: Connected to pbx [pbx]
[Nov 16 10:13:07] DEBUG[17379]: res_odbc.c:1400 odbc_obj_disconnect:
Database handle deallocated
[Nov 16 10:13:07] ERROR[17379]: astobj2.c:279 __ao2_ref: refcount -1 on
object 0x81fa308
[Nov 16 10:13:07] ERROR[17379]: astobj2.c:110 INTERNAL_OBJ: user_data is
NULL

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

---------------------------------------------------------------------- 
 (0113950) kobaz (reporter) - 2009-11-18 12:29
 https://issues.asterisk.org/view.php?id=16252#c113950 
---------------------------------------------------------------------- 
I haven't changed my unixodbc version in a very long time... I've used the
same version for asterisk 1.6.0.15 and asterisk 1.6.0.18-rc with no
crashes.  And when I tried 1.6.2.0-rc, it started crashing... so something
changed in asterisk.

I'm using unixodbc 2.2.11-16 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-11-18 12:29 kobaz          Note Added: 0113950                          
======================================================================




More information about the asterisk-bugs mailing list