Core was generated by `/usr/sbin/asterisk -f -ptg'. Program terminated with signal 6, Aborted. #0 0x00007f00480efba5 in raise () from /lib/libc.so.6 (gdb) bt #0 0x00007f00480efba5 in raise () from /lib/libc.so.6 #1 0x00007f00480f36b0 in abort () from /lib/libc.so.6 #2 0x00007f00480e8a71 in __assert_fail () from /lib/libc.so.6 #3 0x00007f00479566ab in pthread_mutex_lock () from /lib/libpthread.so.0 #4 0x00007f0045814ffa in ?? () from /usr/lib/libodbc.so.1 #5 0x00007f00306a2b92 in generic_prepare (obj=0x7f00403e7908, data=0x7f00402614e8) at cdr_adaptive_odbc.c:289 #6 0x00007f0045a78854 in ast_odbc_prepare_and_execute (obj=0x7f00403e7908, prepare_cb=0x7f00306a2b2a , data=0x7f00402614e8) at res_odbc.c:624 #7 0x00007f00306a5a62 in odbc_log (cdr=0x7f00403268d0) at cdr_adaptive_odbc.c:690 #8 0x0000000000460c09 in post_cdr (cdr=0x7f00403268d0) at cdr.c:1144 #9 0x000000000046156a in ast_cdr_detach (cdr=0x7f00403268d0) at cdr.c:1340 #10 0x00000000004bc05b in ast_bridge_call (chan=0x7f001c99bf68, peer=0x33543a8, config=0x7f0022bf6240) at features.c:3829 #11 0x00007f0032bff197 in try_calling (qe=0x7f0022bf8220, options=0x7f0022bf80da "", announceoverride=0x7f0022bf80dc "", url=0x7f0022bf80db "", tries=0x7f0022bf8200, noption=0x7f0022bf81fc, agi=0x7f0022bf80e2 "", macro=0x7f0022bf80e3 "", gosub=0x7f0022bf80e4 "on-queue-answer", ringing=0) at app_queue.c:4863 #12 0x00007f0032c0322a in queue_exec (chan=0x7f001c99bf68, data=0x7f0022bfa9b0 "CustomerName,ct,,,3600,,,on-queue-answer") at app_queue.c:5817 #13 0x00000000004fc0f4 in pbx_exec (c=0x7f001c99bf68, app=0x7f001c0118e0, data=0x7f0022bfa9b0 "CustomerName,ct,,,3600,,,on-queue-answer") at pbx.c:1407 #14 0x0000000000505ffa in pbx_extension_helper (c=0x7f001c99bf68, con=0x0, context=0x7f001c99c4c0 "customer-common", exten=0x7f001c99c510 "CustomerName", priority=37, label=0x0, callerid=0x7f001c087160 "tastest1", action=E_SPAWN, found=0x7f0022bfcc8c, combined_find_spawn=1) at pbx.c:4086 #15 0x0000000000507a3c in ast_spawn_extension (c=0x7f001c99bf68, context=0x7f001c99c4c0 "customer-common", exten=0x7f001c99c510 "CustomerName", priority=37, callerid=0x7f001c087160 "tastest1", found=0x7f0022bfcc8c, combined_find_spawn=1) at pbx.c:4605 #16 0x00000000005084c5 in __ast_pbx_run (c=0x7f001c99bf68, args=0x0) at pbx.c:4703 #17 0x000000000050a103 in pbx_thread (data=0x7f001c99bf68) at pbx.c:5014 #18 0x000000000056243d in dummy_start (data=0x3226e10) at utils.c:971 #19 0x00007f0047954971 in start_thread () from /lib/libpthread.so.0 #20 0x00007f00481a292d in clone () from /lib/libc.so.6 #21 0x0000000000000000 in ?? () (gdb) f 5 #5 0x00007f00306a2b92 in generic_prepare (obj=0x7f00403e7908, data=0x7f00402614e8) at cdr_adaptive_odbc.c:289 289 res = SQLAllocHandle (SQL_HANDLE_STMT, obj->con, &stmt);