[asterisk-bugs] [Asterisk 0014716]: Crash using func_odbc

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Apr 1 17:36:19 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14716 
====================================================================== 
Reported By:                sum
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   14716
Category:                   Functions/func_odbc
Reproducibility:            have not tried
Severity:                   crash
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.6.2.0-beta1 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-03-21 13:33 CDT
Last Modified:              2009-04-01 17:36 CDT
====================================================================== 
Summary:                    Crash using func_odbc
Description: 

Crash using func_odbc

1) with don't optimize it doesn't crash
2) with debug malloc realtime stop working with this error:

Connected to Asterisk 1.6.2.0-beta1 currently running on localhost (pid =
16736)
Verbosity was 3 and is now 4
failed to extend from 16 to 63
failed to extend from 16 to 43
[Mar 21 00:31:07] WARNING[16755]: res_config_mysql.c:369 realtime_mysql:
MySQL RealTime: Failed to query database: Query was empty
failed to extend from 16 to 63
[Mar 21 00:31:07] WARNING[16755]: res_config_mysql.c:369 realtime_mysql:
MySQL RealTime: Failed to query database: Query was empty
[Mar 21 00:31:07] NOTICE[16755]: chan_sip.c:20367 handle_request_register:
Registration from '"1001"<sip:1001 at 192.168.175.133>' failed for
'192.168.175.1' - No matching peer found


Tell me if you need valgrind file of the run without crashing, or any
other info.

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

---------------------------------------------------------------------- 
 (0102573) sum (reporter) - 2009-04-01 17:36
 http://bugs.digium.com/view.php?id=14716#c102573 
---------------------------------------------------------------------- 
bad news, I try again but this time without dont optimize and debug malloc
flags, and start crashing again this is the bt:
(gdb) bt
http://bugs.digium.com/view.php?id=0  0x009cf127 in _int_realloc () from
/lib/libc.so.6
http://bugs.digium.com/view.php?id=1  0x009d0377 in realloc () from
/lib/libc.so.6
http://bugs.digium.com/view.php?id=2  0x08140525 in __ast_str_helper
(buf=0xb6fa3d44, max_len=0, append=1, 
    fmt=0x6f28ac3 ",", ap=0xb6fa3a0c "")
    at
/usr/src/integra/asterisk-1.6.2.0-beta1/include/asterisk/utils.h:493
http://bugs.digium.com/view.php?id=3  0x0814d6a1 in ast_str_append
(buf=0xb6fa3d44, max_len=0, fmt=0x6f28ac3
",")
    at
/usr/src/integra/asterisk-1.6.2.0-beta1/include/asterisk/strings.h:749
http://bugs.digium.com/view.php?id=4  0x06f26ee5 in acf_odbc_read
(chan=0x86c07a0, cmd=0xb6fa3d80
"ODBC_MSSQL", 
    s=0xb6fa3d8b "IVR_chequearcliente_Asterisk 1001", buf=0xb6fa3e00
"1,0", 
    len=4096) at func_odbc.c:545
http://bugs.digium.com/view.php?id=5  0x08100b50 in ast_func_read
(chan=0x86c07a0, 
    function=0xb6fa4e10 "ODBC_MSSQL(IVR_chequearcliente_Asterisk 1001)", 
    workspace=0xb6fa3e00 "1,0", len=4096) at pbx.c:3346
http://bugs.digium.com/view.php?id=6  0x0810724d in
pbx_substitute_variables_helper_full (c=0x86c07a0, 
    headp=0x86c08b8, 
    cp1=0x8675ec0 "HASH(Cliente)=${ODBC_MSSQL(IVR_chequearcliente_Asterisk
${ANI})}", cp2=0xb6fa8ef2 "", count=8177, used=0xb6fab198) at pbx.c:3481
http://bugs.digium.com/view.php?id=7  0x08107aea in pbx_extension_helper
(c=0x86c07a0, con=0x0, 
    context=0x86c0a10 "outgoing", exten=0x86c0a60 "141", priority=11, 
    label=0x0, callerid=0x86c0f98 "1001", action=E_SPAWN,
found=0xb6fab328, 
    combined_find_spawn=1) at pbx.c:3576
http://bugs.digium.com/view.php?id=8  0x0810a214 in __ast_pbx_run (c=0x86c07a0,
args=0x0) at pbx.c:4137
http://bugs.digium.com/view.php?id=9  0x0810bd90 in pbx_thread (data=0x86c07a0)
at pbx.c:4514


Do you want valgrind info with malloc debug although it doesn't crash? 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-04-01 17:36 sum            Note Added: 0102573                          
======================================================================




More information about the asterisk-bugs mailing list