# ps aux asterisk 32436 # gdb --pid=32436 (gdb) finish Run till exit from #0 main (argc=6, argv=0xbfaa74b4) at asterisk.c:2534 [New Thread -1233790064 (LWP 32476)] [New Thread -1234035824 (LWP 32477)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1233790064 (LWP 32476)] 0xb75c05a6 in find_peer (peer=0xb67563b8 "roxser", sin=0x0, realtime=1) at chan_sip.c:2547 2547 if (!(hp = ast_gethostbyname(tmp->value, &ahp)) || (memcmp(&hp->h_addr, &sin->sin_addr, sizeof(hp->h_addr)))) { (gdb) bt full #0 0xb75c05a6 in find_peer (peer=0xb67563b8 "roxser", sin=0x0, realtime=1) at chan_sip.c:2547 hp = ahp = {hp = {h_name = 0xb6755c2e "XXX.XXXXXX.XX", h_aliases = 0xb6755b48, h_addrtype = 2, h_length = 4, h_addr_list = 0xb6755c18}, buf = '\0' , "\230@|\000H[u�\000\000\000\000ff02::3\000ip6-allhosts\000\000\000\000\000-loopback\000\000for IPv6 capable hosts\n\000\000\000\00032476\000\000\000\000�O��\003\000\000\000\000\000\000\000\b\000\000\000#���\000\000\000\000\000\000\000\000\002\000\000\000\000\000\000\000\030^\030\b����\000\000\000\000�_��\001\000\000\000\030^\030\bP\\u�\002\000\000\000q���", '\0' , "T�ڷ\000\000\000\000\000\000\000\000�_��\000\000\000\000\000\000\000\000"...} p = (struct sip_peer *) 0x0 #1 0xb75d2e06 in create_addr (dialog=0x820c478, opeer=0xb67565c7 "roxser") at chan_sip.c:2902 hp = ahp = {hp = {h_name = 0x0, h_aliases = 0x0, h_addrtype = 0, h_length = 0, h_addr_list = 0x0}, buf = '\0' , "121", '\0' , "9bad7ee", '\0' , "T�ڷ\000\000\000\000\000\000\000\000�_��\000\000\000\000\000\000\000\000��ڷ�bu�Ldu������cu��_��Ldu�3183T�ڷ,#ڷ�bu��_��\000\000\000\000\000\000\000\000��ڷ,cu�P� \b\v� \b�du��_��,cu�P� \b\030du�T{ڷ,cu�jq_��du�P� \b\000\000\000\000�cu��\001\000\000\001\200��P� \bP� \b"...} p = port = 0x0 portno = host = "�\023\000\000\000\000\000\000�\025�\030\n8�I�\2364Y��\2031�_�� q��$\000\000\000Heu�\035#۷ q��$\000\000\000ea53q\002\002\000\220�!\b" hostn = peer = "roxser\000\000@Y��\000\000\000\000\000\000\000\000\001", '\0' , "x�\000\000\210\a!\b\000\000\000\000\000@\f\000\000�������\000 \002\000Q���\030du�x\000\000\000\bc��l�_�\027eu�,� \bXdu��?\020\bP� \b�\001\000\000jq_��du��_�� q��\020\000\000\000hdu�\035#۷ q��\020\000\000\000Q���\027eu�\f� \b\230du��@\020\b�~\000\000\230� \b�\b۷\000\000\000\000�\a���du��du�\001\000\000\000\027eu�l�_�H"... __PRETTY_FUNCTION__ = "create_addr" #2 0xb75d328f in sip_request_call (type=0xb67567b0 "SIP", format=, data=0xb67574cc, cause=0xb6756dbc) at chan_sip.c:15992 p = (struct sip_pvt *) 0x820c478 tmpc = ext = 0xb67565ce "123456" host = 0xb67565c7 "roxser" tmp = "roxser\000123456\000\0004�\004\b��\004\b�n\032\b��a�\001\000\000\000Nr\000\000\000\000\000\000\000\000\000\000\001\000\000\000�\004\000\000\000\000\000\000�f���\236K�D&\005\bt\227K�\001\000\000\000�_��\200m\032\b�fu��fu�\003Q��t\227K��fu� capabilities = 4 fmt = 4 res = foo = -1233815880 __PRETTY_FUNCTION__ = "ast_request" #4 0xb74bc505 in dial_exec_full (chan=0x81e3df8, data=, peerflags=0xb67576d4, continue_exec=0x0) at app_dial.c:1180 toast = "S�\006\b�d���d��\236\000\000\000\000\000\000\000P\000\000\000����\000\000\000\000�����'\t\000���� -- \000\220vu�\005\000\000\000����Q���\000\000\000\000\001\000\000\000Xvu�" number = end_time = answer_time = res = u = (struct ast_module_user *) 0x81e3c20 rest = 0x0 cur = outgoing = peer = to = numbusy = 0 numcongestion = 0 numnochan = 0 cause = 0 numsubst = "roxser/123456\000\000\000\000\000\000\000\000\000��ڷ,uu�L&\036\b�&\036\b\024wu��_��,uu�L&\036\b\030vu�T{ڷ,uu�<�z�\030wu�L&\036\b\000\000\000\000�uu�Xuu�[\000\000\000[\000\000\000Xuu��\220��[\000\000\000ģڷ\001\000\000\000\000\220��[\000\000\000�d��\220�u�\204uu���ڷ�d��\000\220��[\000\000\000V\000\000\000[\000\000\000\000\220���_��[\000\000\000\220�u�\220uu�o�ڷ�d跰uu�"... cidname = '\0' privdb_val = 0 calldurationlimit = 0 timelimit = 0 ---Type to continue, or q to quit--- play_warning = 0 warning_freq = 0 warning_sound = 0x0 end_sound = 0x0 start_sound = 0x0 dtmfcalled = dtmfcalling = 0x0 status = "INVALIDARGS", '\0' play_to_caller = 0 play_to_callee = 0 sentringing = moh = outbound_group = result = start_time = privintro = '\0' , "��ڷb&\036\b�yu�N�ٷ��ڷ\206&\036\b�yu�N�ٷx�z�x�z�\002\000\000\000�_��v�z�\002\000\000\000\buu�q^ط,uu�v�z�\002", '\0' , "�tu�aZط\000\000\000\000dtu��tu�\000\000\000\000\000\000\000\000ttu�\000\000\000\000�_��\000\000\000\000�uu�pou��n׷\220ou��uu�\n", '\0' , "����V\000\000\000\205�z�\000\000\000\000����[\000\000\000x�z�f�z�"... privcid = "\032\031\b\b\002\000\000\000\r$\023\b$8\023\b�c\036\b�\a��Xd\036\b�c\036\b\001\000\000\000�\025\023\bp�J��uu�.vu�\bsu��\v��huu�n�J�p>\036\b.vu�", '\0' , "�=\036\b�su�D�\004\b\204su�\025L���k\005\b=�ڶ�w��\234w��\000\000\000\000\002\000u�i\234󷩤ڶ�w��Apr 3 15:28:14\000Apr 3 15:28:14\000\000\000\000\000\001\000\000\000Fo\006\000�su��su��tu�\235�"... opermode = 0 args = {argc = 3, argv = 0xb6756d88, peers = 0xb67567b0 "SIP", timeout = 0xb67567c8 "60", options = 0xb67567cb "tTwW", url = 0x0} opts = {flags = 7864320} opt_args = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0} datastore = (struct ast_datastore *) 0x81e6970 fulldial = 0 num_dialed = 1 __PRETTY_FUNCTION__ = "dial_exec_full" #5 0xb74c1612 in dial_exec (chan=0x81e3df8, data=0xb67579d2) at app_dial.c:1747 peerflags = {flags = 0} #6 0x080c606c in pbx_exec (c=0x81e3df8, app=0x81a6f30, data=0xb67579d2) at pbx.c:537 res = -1233822696 saved_c_appl = 0x818947c "AGI" saved_c_data = 0xb675b118 "cuuma-core.agi" #7 0xb77a74dc in ?? () from /usr/lib/asterisk/modules/res_agi.so No symbol table info available. #8 0xb77a8228 in ?? () from /usr/lib/asterisk/modules/res_agi.so No symbol table info available. #9 0xb77a9b14 in ?? () from /usr/lib/asterisk/modules/res_agi.so No symbol table info available. #10 0x080ced29 in pbx_extension_helper (c=0x81e3df8, con=0x0, context=0x81e3f78 "10000", exten=0x81e3fc8 "123456", priority=1, label=0x0, callerid=0x81e3c20 "�=\036\b", action=E_SPAWN) at pbx.c:537 e = (struct ast_exten *) 0x81dfa08 app = (struct ast_app *) 0x8189468 res = q = {incstack = {0x81dfc84 "10000", 0x0 }, stacklen = 1, status = 5, swo = 0x0, data = 0x0, foundcontext = 0x81e00c3 "system"} passdata = "cuuma-core.agi", '\0' matching_action = 0 __PRETTY_FUNCTION__ = "pbx_extension_helper" #11 0x080d149c in __ast_pbx_run (c=0x81e3df8) at pbx.c:2317 waittime = dst_exten = '\0' , "�\b۷", '\0' , "\020\000\000\000(q��", '\0' , "��ڷ", '\0' , "\020\000\000\000\000\000\000\000\034���\000\000\000\000Q���\000�ڷ\f", '\0' , "�~\000\000 q��\f\000\000\0008�u�\035#۷ q��\f\000\000\000\000\000\000\000\221�\000\000p� \b\f\000\000\000�F\036\b�F\036\b\220�u�h�u���\006\b�\a��\f\000\000" pos = 3 digit = 136200688 found = 0 res = 0 error = __PRETTY_FUNCTION__ = "__ast_pbx_run" #12 0x080d254e in pbx_thread (data=0x81e3df8) at pbx.c:2634 ---Type to continue, or q to quit--- No locals. #13 0x081029fb in dummy_start (data=0x81e46a8) at utils.c:865 __cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {136201912, 0, -1233790064, -1233792056, 1233113968, -149280284}, __mask_was_saved = 0}}, __pad = {0xb675d480, 0x0, 0x0, 0x0}} __cancel_arg = (void *) 0xb675db90 not_first_call = ret = #14 0xb7f0d31b in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 No symbol table info available. #15 0xb7e1857e in clone () from /lib/tls/i686/cmov/libc.so.6 No symbol table info available.