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