[asterisk-users] asterisk core dumps after cdr database writes using odbc

Nathan Pryor nathanpryor at gmail.com
Wed Apr 28 10:59:55 CDT 2010


Both of our production asterisk servers are dumping core when making writes
to our cdr tables. Here is a backtrace of the problems we are having:

#0  0x00447b1f in tdserror (tds_ctx=0x1, tds=0xb7938c90, msgno=20004,
errnum=9) at util.c:347
347             if (tds_ctx && tds_ctx->err_handler) {
(gdb) bt
#0  0x00447b1f in tdserror (tds_ctx=0x1, tds=0xb7938c90, msgno=20004,
errnum=9) at util.c:347
#1  0x0045c6d6 in goodread (tds=0xb7938c90, buf=0x2abb220 "¹\033F",
buflen=8) at net.c:501
#2  0x0045c765 in tds_read_packet (tds=0xb7938c90) at net.c:567
#3  0x004496bf in tds_get_byte (tds=0xb7938c90) at read.c:76
#4  0x0044619f in tds_process_tokens (tds=0xb7938c90, result_type=0x2abb360,
done_flags=0x2abb364, flag=26900) at token.c:509
#5  0x00432e7d in odbc_process_tokens (stmt=0xa3f3658, flag=26900) at
odbc.c:3268
#6  0x0043736c in _SQLExecute (stmt=0xa3f3658) at odbc.c:3118
#7  0x00439561 in SQLExecDirect (hstmt=0xa3f3658,
    szSqlStr=0x2abb640 "INSERT INTO cdr
(calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,accountcode,uniqueid,userfield)
VALUES ({ts '2010-04-28 10:01:26'},?,?,?,?,?,?"..., cbSqlStr=-3) at
odbc.c:3227
#8  0x00fa4263 in SQLExecDirect (statement_handle=0xa400250,
    statement_text=0x2abb640 "INSERT INTO cdr
(calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,accountcode,uniqueid,userfield)
VALUES ({ts '2010-04-28 10:01:26'},?,?,?,?,?,?"..., text_length=-3) at
SQLExecDirect.c:417
#9  0x009e5397 in execute_cb (obj=0xa2bc0c0, data=0xa4a7c88) at
cdr_odbc.c:115
#10 0x003accf8 in ast_odbc_direct_execute (obj=0xa2bc0c0, exec_cb=0x9e4e00
<execute_cb>, data=0xa4a7c88) at res_odbc.c:574
#11 0x009e55f1 in odbc_log (cdr=0xa4a7c88) at cdr_odbc.c:137
#12 0x0808db8a in post_cdr (cdr=0xa4a7c88) at cdr.c:1055
#13 0x0808e36e in ast_cdr_detach (cdr=0xa4a7c88) at cdr.c:1251
#14 0x080c042b in ast_bridge_call (chan=0xa52e8d0, peer=0xb79047a8,
config=0x2abe1c0) at features.c:2849
#15 0x026285d9 in try_calling (qe=0x2abe6f0, options=Variable "options" is
not available.
) at app_queue.c:4269
#16 0x0262d4a0 in queue_exec (chan=0xa52e8d0, data=0x2ac0a20) at
app_queue.c:5204
#17 0x080f3c47 in pbx_exec (c=0xa52e8d0, app=0xb7c6b088, data=0x2ac0a20)
    at
/usr/local/src/asterisk162/asterisk-1.6.2.0/include/asterisk/strings.h:64
#18 0x0810118f in pbx_extension_helper (c=0xa52e8d0, con=0x0,
context=0xa52eb40 "macro-queue-call", exten=0xa52eb90 "s", priority=12,
    label=0x0, callerid=0xa2d2db8 "0000000000", action=E_SPAWN,
found=0x2ac2e0c, combined_find_spawn=1) at pbx.c:3708
#19 0x08101788 in ast_spawn_extension (c=0x1, context=0x472614 "$N",
exten=0x472614 "$N", priority=4662804, callerid=0x472614 "$N",
    found=0x472614, combined_find_spawn=4662804) at pbx.c:4167
#20 0x00965387 in _macro_exec (chan=0xa52e8d0, data=0x2ac5f70, exclusive=0)
at app_macro.c:398
#21 0x080f3c47 in pbx_exec (c=0xa52e8d0, app=0xb7c55740, data=0x2ac5f70)
    at
/usr/local/src/asterisk162/asterisk-1.6.2.0/include/asterisk/strings.h:64
#22 0x0810118f in pbx_extension_helper (c=0xa52e8d0, con=0x0,
context=0xa52eb40 "macro-queue-call", exten=0xa52eb90 "s", priority=3,
    label=0x0, callerid=0xa2d2db8 "0000000000", action=E_SPAWN,
found=0x2ac824c, combined_find_spawn=1) at pbx.c:3708
#23 0x0810850c in __ast_pbx_run (c=0xa52e8d0, args=0x0) at pbx.c:4167
#24 0x0810ae20 in pbx_thread (data=0xa52e8d0) at pbx.c:4544
#25 0x0814afd5 in dummy_start (data=0x472614) at utils.c:968
#26 0x007a43cc in start_thread () from /lib/tls/libpthread.so.0
#27 0x0061c1ae in clone () from /lib/tls/libc.so.6

Any help is appreciated.

thanks
-nathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100428/7763075c/attachment.htm 


More information about the asterisk-users mailing list