eading symbols from /usr/lib/asterisk/modules/res_clioriginate.so...done. Loaded symbols for /usr/lib/asterisk/modules/res_clioriginate.so Core was generated by `asterisk -cvvvvg'. Program terminated with signal 11, Segmentation fault. #0 0x00002b1cc39a0233 in _int_free () from /lib64/libc.so.6 (gdb) bt #0 0x00002b1cc39a0233 in _int_free () from /lib64/libc.so.6 #1 0x00002b1cc39a3e7c in free () from /lib64/libc.so.6 #2 0x00002aaaabe22f53 in SQLTablesW () from /usr/lib64/libodbc.so.1 #3 0x00002aaaabe0198a in SQLFreeEnv () from /usr/lib64/libodbc.so.1 #4 0x00002aaaabe01b5c in SQLFreeHandle () from /usr/lib64/libodbc.so.1 #5 0x00002aaaabbd71ec in ast_odbc_prepare_and_execute (obj=0x1b3c6088, prepare_cb=0x2aaab2eb69e0 , data=0x40838030) at res_odbc.c:634 #6 0x00002aaab2eb7368 in realtime_odbc (database=0x40838f40 "asterisk", table=0x40838e40 "sipfriends", ap=0x40839090) at res_config_odbc.c:166 #7 0x000000000046b96f in ast_load_realtime_helper (family=0x2aaac44bb7d4 "sippeers", ap=0x40839090) at config.c:2098 #8 0x000000000046bb7e in ast_load_realtime (family=0x2aaac44bb7d4 "sippeers") at config.c:2127 #9 0x00002aaac444f427 in realtime_peer (newpeername=0x4083a0d2 "105", sin=0x0, devstate_only=0) at chan_sip.c:4344 #10 0x00002aaac4450062 in find_peer (peer=0x4083a0d2 "105", sin=0x0, realtime=1, forcenamematch=1, devstate_only=0) at chan_sip.c:4561 #11 0x00002aaac447c343 in check_peer_ok (p=0x1b54dcd8, of=0x4083a0d2 "105", req=0x4083ab50, sipmethod=5, sin=0x4083ab40, authpeer=0x0, reliable=XMIT_RELIABLE, rpid_num=0x4083a070 "", calleridname=0x4083a030 "Leif Madsen", uri2=0x40839f30 "sip:500@leifmadsen.com:5050") at chan_sip.c:12885 #12 0x00002aaac447f8d2 in check_user_full (p=0x1b54dcd8, req=0x4083ab50, sipmethod=5, uri=0x1b54c31f "sip:500@leifmadsen.com:5050", reliable=XMIT_RELIABLE, sin=0x4083ab40, authpeer=0x0) at chan_sip.c:13128 #13 0x00002aaac447f9a3 in check_user (p=0x1b54dcd8, req=0x4083ab50, sipmethod=5, uri=0x1b54c31f "sip:500@leifmadsen.com:5050", reliable=XMIT_RELIABLE, sin=0x4083ab40) at chan_sip.c:13150 #14 0x00002aaac449a814 in handle_request_invite (p=0x1b54dcd8, req=0x4083ab50, debug=0, seqno=1, sin=0x4083ab40, recount=0x4083aabc, e=0x1b54c31f "sip:500@leifmadsen.com:5050", nounlock=0x4083aab8) at chan_sip.c:18882 #15 0x00002aaac44a2cdf in handle_incoming (p=0x1b54dcd8, req=0x4083ab50, sin=0x4083ab40, recount=0x4083aabc, nounlock=0x4083aab8) at chan_sip.c:20596 #16 0x00002aaac44a3c1b in handle_request_do (req=0x4083ab50, sin=0x4083ab40) at chan_sip.c:20894 #17 0x00002aaac44a3583 in sipsock_read (id=0x1b5251b0, fd=17, events=1, ignore=0x0) at chan_sip.c:20788 #18 0x00000000004a39c8 in ast_io_wait (ioc=0x1b4fccc0, howlong=1000) at io.c:287 #19 0x00002aaac44a4e02 in do_monitor (data=0x0) at chan_sip.c:21296 #20 0x000000000051c3d4 in dummy_start (data=0x1b50c560) at utils.c:968 #21 0x00002b1cc46632f7 in start_thread () from /lib64/libpthread.so.0 #22 0x00002b1cc3a00e3d in clone () from /lib64/libc.so.6 (gdb) bt full #0 0x00002b1cc39a0233 in _int_free () from /lib64/libc.so.6 No symbol table info available. #1 0x00002b1cc39a3e7c in free () from /lib64/libc.so.6 No symbol table info available. #2 0x00002aaaabe22f53 in SQLTablesW () from /usr/lib64/libodbc.so.1 No symbol table info available. #3 0x00002aaaabe0198a in SQLFreeEnv () from /usr/lib64/libodbc.so.1 No symbol table info available. #4 0x00002aaaabe01b5c in SQLFreeHandle () from /usr/lib64/libodbc.so.1 No symbol table info available. #5 0x00002aaaabbd71ec in ast_odbc_prepare_and_execute (obj=0x1b3c6088, prepare_cb=0x2aaab2eb69e0 , data=0x40838030) at res_odbc.c:634 res = -1 i = 1 attempt = 0 nativeerror = 2006 numfields = 1 diagbytes = 70 state = "HYT00\000\000\000\000" diagnostic = "[MySQL][ODBC 3.51 Driver][mysqld-5.0.45-log]MySQL server has gone away\000\000\020\216\203@", '\0' , "\203@\000\000\000\000S\227\034+\000\0000\000\000\0000\000\000\000\200\177\203@\000\000\000\000~\203@", '\0' , "OK*\000\000z*\000\000}*", '\0' stmt = (SQLHSTMT) 0x1b3deab0 __PRETTY_FUNCTION__ = "ast_odbc_prepare_and_execute" #6 0x00002aaab2eb7368 in realtime_odbc (database=0x40838f40 "asterisk", table=0x40838e40 "sipfriends", ap=0x40839090) at res_config_odbc.c:166 obj = (struct odbc_obj *) 0x1b3c6088 stmt = (SQLHSTMT) 0x100 sql = "SELECT * FROM sipfriends WHERE name = ? AND host = ?", '\0' , "\212\203@\002", '\0' , "?V\000\000\000\000\000\020iP\033\001\000\000>V\000\000\000\000\000(\000\000\000\000\000\000\000\231\034+\000\000\002\000\000\000\000\000\000\000\221\203@\000\000\000\000K*\000\000K*\000\000v\000\000\000\000\000\000\000 \227\034+\000\000\220\221\203@\000\000\000\000 \227\034+\000\000\214\203@\000\000\000\000HO\033\000\000\000\000\214\203@"... coltitle = '\0' rowdata = '\0' , "`\000\000\000\000\000\000\000H=\033", '\0' , "\005\000\000` \000\000\000\000\000\000\000\000\220\203@\000\000\000\000T\033\000\000\000\000x\001\000\000\000\000\000\000PZ\203@\000\000\000\000/\203@\000\000\000\000P\005\203@\000\000\000\000 \005\203@\000\000\000\000\000\004\000\000\000\000\000\000\003\000\000\000\034+\000\000`", '\0' , "\001\000\000\000?s*\000\000\001\000\000\000\000\000\000\000\b\002\000\000\000P\203@\000\000\000\000\030\020T\033", '\0' , "3*\000\000P\004*\000\000t_\225"... op = 0x2aaab2ebb17a " =" newparam = 0x0 newval = 0x2aaac44bb947 "dynamic" stringp = 0x0 chunk = 0x10040838cba
collen = 0 res = 1082363712 x = 0 var = (struct ast_variable *) 0x0 prev = (struct ast_variable *) 0x0 colsize = 0 colcount = 0 datatype = 0 decimaldigits = 0 nullable = 0 indicator = 0 aq = {{gp_offset = 48, fp_offset = 48, overflow_arg_area = 0x40839190, reg_save_area = 0x408390d0}} cps = {sql = 0x408389a0 "SELECT * FROM sipfriends WHERE name = ? AND host = ?", extra = 0x0, ap = {{gp_offset = 8, fp_offset = 48, overflow_arg_area = 0x40839190, reg_save_area = 0x408390d0}}, skip = 0} connected_flag = {flags = 4} __PRETTY_FUNCTION__ = "realtime_odbc" #7 0x000000000046b96f in ast_load_realtime_helper (family=0x2aaac44bb7d4 "sippeers", ap=0x40839090) at config.c:2098 eng = (struct ast_config_engine *) 0x2aaab30bc880 db = "asterisk\000\231\034+\000\000\000\000\000\000\000\000\000\000 \226\203@\000\000\000\000K*\000\000K*\000\000\002\000\000\000\000\000\000\000@\226\203@\000\000\000\000\227\203@\000\000\000\000\202K*\000\000\r\000\000\000\000\000\000`\024\227\034+\000\000\000\000\000\000\000\000\001\000 \227\034+\000\000\000\000\000\000\n\026\000\000\000\000\000\000\n\026\000\000\002\000\000\000\000\000\000\000\220\226\203@\000\000\000\000\227\203@\000\000\000\000\202K*\000\000\000\000\000\000\001\000\034\000 \227\034+\000\000P\226\203@\000\000\000\000\231\034+\000\000\001\000\000\000\000\000\000\000"... table = "sipfriends\000*", '\0' , "\002", '\0' , "\002\000\000\000\000\000\000\000\000_U", '\0' , "x\223\203s\000\000\000\000\000\000\000\000\001", '\0' , "\n\000\000\000 \227\203@\000\000\000\000\225\203@\000\000\000\000\226\203@\000\000\000\000r\000\000\000\000\000\000\000\202\231\034+\000\000 \000\000\000\000\000\000\000\225\203@\000\000\000\000\001\000\000\000\000\000\000\000\224\203@\000\000\000\000\225\203@\000\000\000\000\231\034+\000\000\000\000\000\000\000\000\000\000\225\203@\023\000\000\000\000\000\000\000*\000\000"... res = (struct ast_variable *) 0x0 i = 1 #8 0x000000000046bb7e in ast_load_realtime (family=0x2aaac44bb7d4 "sippeers") at config.c:2127 res = (struct ast_variable *) 0x4083c000 cur = (struct ast_variable *) 0x1000 prev = (struct ast_variable *) 0x0 freeme = (struct ast_variable *) 0x0 ap = {{gp_offset = 8, fp_offset = 48, overflow_arg_area = 0x40839190, reg_save_area = 0x408390d0}} #9 0x00002aaac444f427 in realtime_peer (newpeername=0x4083a0d2 "105", sin=0x0, devstate_only=0) at chan_sip.c:4344 peer = (struct sip_peer *) 0x0 var = (struct ast_variable *) 0x0 varregs = (struct ast_variable *) 0x0 tmp = (struct ast_variable *) 0x0 peerlist = (struct ast_config *) 0x0 ipaddr = "\226\203@\000\000\000\000/C\000\000\000\000" portstring = "\000\000\000\000\000" cat = 0x0 portnum = 16515 realtimeregs = 0 __PRETTY_FUNCTION__ = "realtime_peer" #10 0x00002aaac4450062 in find_peer (peer=0x4083a0d2 "105", sin=0x0, realtime=1, forcenamematch=1, devstate_only=0) at chan_sip.c:4561 p = (struct sip_peer *) 0x0 tmp_peer = { name = "105\000\000150`z\000\000\000\000\000\231UI\000\000\000\000\200ZT\033\000\000\000\000\230\203@\000\000\000\000eJ\000\000\000\000\000\020\000\000\0000\000\000\000P\232\203@\000\000\000\000\220\231\203@\000\000\000\000+~\003\000\000\000\000", __field_mgr_pool = 0x0, secret = 0x56748c "%s", md5secret = 0x56c450 "ast_netsock_set_qos", remotesecret = 0xa600000000
, context = 0x56c344 "netsock.c", subscribecontext = 0x5c44baa82
, username = 0xde9
, accountcode = 0x0, tohost = 0x408397e0 "6089e18f", regexten = 0x2b1cc39983ca "\211H\215\205", fromuser = 0x49a85599
, fromdomain = 0x37e2b
, fullcontact = 0x1b54d0ae "", cid_num = 0x2b1cc3c7c460 "", cid_name = 0x0, vmexten = 0x1b54d0b0 "", language = 0x1b54de97 "", mohinterpret = 0x3e00000000
, mohsuggest = 0x6638316539383036
, parkinglot = 0x0, useragent = 0x0, __field_mgr = {size = 1082366032, used = 0, last_alloc = 0xffffffffffffffff
}, socket = {type = 24, fd = 48, port = 39792, tcptls_session = 0x40839ab0}, transports = 7, auth = 0x10, amaflags = 458490608, callingpres = 0, inUse = 1082366816, inRinging = 0, onHold = -1013373303, call_limit = 11036, busy_level = -72515583, allowtransfer = TRANSFER_OPENFORALL, prefs = { order = "\232\203@\000\000\000\000\232\203@\000\000\000\000\232\203@\000\000\000\000\232\203@\000\000\000", framing = "\232\203@\000\000\000\000\232\203@\000\000\000\000"}, lastmsgssent = 0, sipoptions = 0, flags = {{flags = 0}, {flags = 0}}, mailboxes = {first = 0x0, last = 0x0}, is_realtime = 0 '\0', rt_fromcontact = 0 '\0', host_dynamic = 0 '\0', selfdestruct = 0 '\0', the_mark = 0 '\0', expire = 0, capability = 0, rtptimeout = 8047536, rtpholdtimeout = 0, rtpkeepalive = 1082327040, callgroup = 1082366256, pickupgroup = 0, outboundproxy = 0x1b54dec7, dnsmgr = 0x1b54de48, addr = {sin_family = 56904, sin_port = 6996, sin_addr = {s_addr = 0}, sin_zero = "\220\232\203@\000\000\000"}, maxcallbitrate = -1001674320, call = 0x7f, pokeexpire = 4096, lastms = 0, maxms = 1082366256, qualifyfreq = 0, ps = {tv_sec = 47402540696522, tv_usec = 4222451713}, defaddr = { sin_family = 56904, sin_port = 6996, sin_addr = {s_addr = 0}, sin_zero = "HT\033\000\000\000"}, ha = 0x1b54de48, contactha = 0x1b54de48, chanvars = 0x1b54de84, mwipvt = 0x1b54dec7, autoframing = 458546760, stimer = {st_mode_oper = SESSION_TIMER_MODE_INVALID, st_ref = 458546887, st_min_se = 0, st_max_se = 0}, timer_t1 = 0, timer_b = 0, deprecated_username = 0, type = 0, onlymatchonip = 0 '\0'} #11 0x00002aaac447c343 in check_peer_ok (p=0x1b54dcd8, of=0x4083a0d2 "105", req=0x4083ab50, sipmethod=5, sin=0x4083ab40, authpeer=0x0, reliable=XMIT_RELIABLE, rpid_num=0x4083a070 "", calleridname=0x4083a030 "Leif Madsen", uri2=0x40839f30 "sip:500@leifmadsen.com:5050") at chan_sip.c:12885 res = AUTH_SUCCESSFUL debug = 0 peer = (struct sip_peer *) 0x2aaac46e0000 __PRETTY_FUNCTION__ = "check_peer_ok" #12 0x00002aaac447f8d2 in check_user_full (p=0x1b54dcd8, req=0x4083ab50, sipmethod=5, uri=0x1b54c31f "sip:500@leifmadsen.com:5050", reliable=XMIT_RELIABLE, sin=0x4083ab40, authpeer=0x0) at chan_sip.c:13128 from = "\"Leif Madsen\", "\203@", '\0' , "\003\000\000\000\000\000\000"... dummy = 0x4083a0d2 "105" domain = 0x4083a0d6 "leifmadsen.com" of = 0x4083a0d2 "105" of2 = 0x40839f00 "sip:105@leifmadsen.com:5050" rpid_num = '\0' rpid = 0x2aaac44ba5f0 "" res = AUTH_SUCCESSFUL calleridname = "Leif Madsen", '\0' uri2 = 0x40839f30 "sip:500@leifmadsen.com:5050" __PRETTY_FUNCTION__ = "check_user_full" #13 0x00002aaac447f9a3 in check_user (p=0x1b54dcd8, req=0x4083ab50, sipmethod=5, uri=0x1b54c31f "sip:500@leifmadsen.com:5050", reliable=XMIT_RELIABLE, sin=0x4083ab40) at chan_sip.c:13150 No locals. #14 0x00002aaac449a814 in handle_request_invite (p=0x1b54dcd8, req=0x4083ab50, debug=0, seqno=1, sin=0x4083ab40, recount=0x4083aabc, e=0x1b54c31f "sip:500@leifmadsen.com:5050", nounlock=0x4083aab8) at chan_sip.c:18882 res = 1 gotdest = 0 p_replaces = 0x2aaac44ba5f0 "" replace_id = 0x0 required = 0x2aaac44ba5f0 "" required_profile = 0 c = (struct ast_channel *) 0x0 reinvite = 0 rtn = 0 p_uac_se_hdr = 0x1b54e0a4 "Rx: INVITE" p_uac_min_se = 0x1b54e0a4 "Rx: INVITE" uac_max_se = -1 uac_min_se = -1 st_active = 0 st_interval = 0 st_ref = SESSION_TIMER_REFRESHER_AUTO dlg_min_se = -1 pickup = {exten = '\0' , context = '\0' } __PRETTY_FUNCTION__ = "handle_request_invite" #15 0x00002aaac44a2cdf in handle_incoming (p=0x1b54dcd8, req=0x4083ab50, sin=0x4083ab40, recount=0x4083aabc, nounlock=0x4083aab8) at chan_sip.c:20596 cmd = 0x1b54c318 "INVITE" cseq = 0x1b54c482 "1 INVITE" useragent = 0x1b54c50a "X-Lite release 1014k stamp 47051" seqno = 1 len = 1 respid = 0 res = 0 debug = 0 e = 0x1b54c31f "sip:500@leifmadsen.com:5050" error = 0 __PRETTY_FUNCTION__ = "handle_incoming" #16 0x00002aaac44a3c1b in handle_request_do (req=0x4083ab50, sin=0x4083ab40) at chan_sip.c:20894 p = (struct sip_pvt *) 0x1b54dcd8 recount = 0 nounlock = 0 lockretry = 10 __PRETTY_FUNCTION__ = "handle_request_do" #17 0x00002aaac44a3583 in sipsock_read (id=0x1b5251b0, fd=17, events=1, ignore=0x0) at chan_sip.c:20788 req = {rlPart1 = 0, rlPart2 = 7, len = 945, headers = 12, method = 5, lines = 13, sdp_start = 0, sdp_end = 0, debug = 0 '\0', has_to_tag = 0 '\0', ignore = 0 '\0', header = {0, 44, 139, 157, 198, 238, 301, 356, 372, 455, 486, 532, 553, 0 }, line = {555, 560, 590, 616, 640, 647, 678, 695, 730, 781, 832, 882, 933, 945, 0 }, data = 0x1b54c300, socket = {type = SIP_TRANSPORT_UDP, fd = 17, port = 50195, tcptls_session = 0x0}, next = { next = 0x0}} sin = {sin_family = 2, sin_port = 26803, sin_addr = {s_addr = 3653178328}, sin_zero = "\000\000\000\000\000\000\000"} res = 945 len = 16 readbuf = "INVITE sip:500@leifmadsen.com:5050 SIP/2.0\r\nVia: SIP/2.0/UDP 192.168.1.100:45928;branch=z9hG4bK-d8754z-deb976647f4dfc44-1---d8754z-;rport\r\nMax-Forwards: 70\r\nContact: \r\nTo"... __PRETTY_FUNCTION__ = "sipsock_read" #18 0x00000000004a39c8 in ast_io_wait (ioc=0x1b4fccc0, howlong=1000) at io.c:287 res = 1 x = 0 origcnt = 1 #19 0x00002aaac44a4e02 in do_monitor (data=0x0) at chan_sip.c:21296 res = 1000 t = 1235768728 reloading = 0 __PRETTY_FUNCTION__ = "do_monitor" #20 0x000000000051c3d4 in dummy_start (data=0x1b50c560) at utils.c:968 __cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {0, -2725686967296239006, 0, 0, 1082376192, 4096, -2725686967296238814, -2725686966217135879}, __mask_was_saved = 0}}, __pad = {0x4083b1a0, 0x0, 0x0, 0x0}} __cancel_routine = (void (*)(void *)) 0x432dd5 __cancel_arg = (void *) 0x4083b940 not_first_call = 0 ret = (void *) 0x0 a = {start_routine = 0x2aaac44a4c13 , data = 0x0, name = 0x1b50c580 "do_monitor", ' ' , "started at [21327] chan_sip.c restart_monitor()"} #21 0x00002b1cc46632f7 in start_thread () from /lib64/libpthread.so.0 No symbol table info available. #22 0x00002b1cc3a00e3d in clone () from /lib64/libc.so.6 No symbol table info available. (gdb) quit