!@!@!@! thread1.txt !@!@!@! $1 = {si_signo = 11, si_errno = 0, si_code = 128, _sifields = {_pad = {0 }, _kill = {si_pid = 0, si_uid = 0}, _timer = {si_tid = 0, si_overrun = 0, si_sigval = {sival_int = 0, sival_ptr = 0x0}}, _rt = {si_pid = 0, si_uid = 0, si_sigval = {sival_int = 0, sival_ptr = 0x0}}, _sigchld = {si_pid = 0, si_uid = 0, si_status = 0, si_utime = 0, si_stime = 0}, _sigfault = {si_addr = 0x0}, _sigpoll = {si_band = 0, si_fd = 0}}} Signal Stop Print Pass to program Description SIGSEGV Yes Yes Yes Segmentation fault Thread 1 (Thread 0x7f9ca729f700 (LWP 30843)): #0 0x00007f9d62099cc0 in pthread_mutex_lock () at /usr/lib64/libpthread.so.0 #1 0x0000000000516fa5 in ast_reentrancy_lock (lt=0x6e65706f5f7265) at /usr/src/asterisk-16.6.1/include/asterisk/lock.h:446 res = 32668 #2 0x0000000000517888 in __ast_pthread_mutex_lock (filename=0x6f878c "astmm.c", lineno=264, func=0x6f9520 <__PRETTY_FUNCTION__.8826> "__ast_alloc_region", mutex_name=0x6f8783 "®lock", t=0xa14440 ) at lock.c:272 tmp = {addresses = {0x4738af <__ast_bt_get_addresses+29>, 0x51787c <__ast_pthread_mutex_lock+179>, 0x460fa9 <__ast_alloc_region+474>, 0x461787 <__ast_repl_calloc+69>, 0x463e7f <__ast_calloc+57>, 0x5c1b88 , 0x4a0a51 <__ast_channel_alloc_ap+1042>, 0x4a126f <__ast_channel_alloc+267>, 0x7f9d5e7b2429 , 0x7f9d5e811284 , 0x7f9d5e81cd7a , 0x7f9d5e81d891 , 0x7f9d5e81d471 , 0x50a22a , 0x7f9d5e81f7ee , 0x5cb211 , 0x7f9d62097e65 , 0x7f9d6143988d , 0x0, 0xde0840, 0xa14428, 0x7f9ca729cc70, 0x0, 0x7d000, 0x0, 0x7f9d6138e4f2 , 0x0, 0x3000000020, 0x7f9ca729cc10, 0x7f9d40000020, 0xa4, 0x0}, num_frames = 18, alloced = 0} res = 0 lt = 0x6e65706f5f7265 canlog = 0 bt = 0x0 __PRETTY_FUNCTION__ = "__ast_pthread_mutex_lock" #3 0x0000000000460fa9 in __ast_alloc_region (size=16, which=FUNC_CALLOC, file=0x7382e0 "timing.c", lineno=140, func=0x738500 <__PRETTY_FUNCTION__.9031> "ast_timer_open", cache=0) at astmm.c:264 reg = 0x7f9d40670a10 fence = 0x7f9d40670ab0 hash = 1096 __PRETTY_FUNCTION__ = "__ast_alloc_region" #4 0x0000000000461787 in __ast_repl_calloc (nmemb=1, size=16, file=0x7382e0 "timing.c", lineno=140, func=0x738500 <__PRETTY_FUNCTION__.9031> "ast_timer_open") at astmm.c:502 ptr = 0x1900000012 #5 0x0000000000463e7f in __ast_calloc (nmemb=1, size=16, file=0x7382e0 "timing.c", lineno=140, func=0x738500 <__PRETTY_FUNCTION__.9031> "ast_timer_open") at astmm.c:1628 p = 0x7f9d405a01b8 __PRETTY_FUNCTION__ = "__ast_calloc" #6 0x00000000005c1b88 in ast_timer_open () at timing.c:140 data = 0x7f9d405a01b8 h = 0x1896d50 t = 0x0 idx = 1 __PRETTY_FUNCTION__ = "ast_timer_open" #7 0x00000000004a0a51 in __ast_channel_alloc_ap (needqueue=1, state=0, cid_num=0x7f9d4035f550 "sipp", cid_name=0x7f9d4035f4f6 "sipp", acctcode=0xa4c5fa <__ast_string_field_empty_buffer+2> "", exten=0x7f9d4035f4fe "9000", context=0x7f9d4035f48c "public", assignedids=0x0, requestor=0x0, amaflag=AST_AMA_NONE, endpoint=0x0, file=0x7f9d5e84659a "chan_sip.c", line=8158, function=0x7f9d5e8603e3 <__FUNCTION__.24758> "sip_new", name_fmt=0x7f9d5e84a9ee "SIP/%s-%08x", ap=0x7f9ca729ce50) at channel.c:861 tmp = 0x7f9d40419748 headp = 0x7f9ca729cea0 tech = 0x704358 "" tech2 = 0x0 nativeformats = 0x7f9d4044ef10 schedctx = 0x7f9d40591140 timer = 0x0 now = {tv_sec = 140310796160416, tv_usec = 5342043} channel_tech = 0x10 topology = 0x7d000 __PRETTY_FUNCTION__ = "__ast_channel_alloc_ap" #8 0x00000000004a126f in __ast_channel_alloc (needqueue=1, state=0, cid_num=0x7f9d4035f550 "sipp", cid_name=0x7f9d4035f4f6 "sipp", acctcode=0xa4c5fa <__ast_string_field_empty_buffer+2> "", exten=0x7f9d4035f4fe "9000", context=0x7f9d4035f48c "public", assignedids=0x0, requestor=0x0, amaflag=AST_AMA_NONE, endpoint=0x0, file=0x7f9d5e84659a "chan_sip.c", line=8158, function=0x7f9d5e8603e3 <__FUNCTION__.24758> "sip_new", name_fmt=0x7f9d5e84a9ee "SIP/%s-%08x") at channel.c:1006 ap = {{gp_offset = 48, fp_offset = 48, overflow_arg_area = 0x7f9ca729cf78, reg_save_area = 0x7f9ca729ce70}} result = 0x7f9d5e84659a #9 0x00007f9d5e7b2429 in sip_new (i=0x7f9d40656a48, state=0, title=0x0, assignedids=0x0, requestor=0x0, callid=1814) at chan_sip.c:8158 my_name = 0x7f9ca729cf90 "127.0.0.1" caps = 0x7f9d407fdc10 tmp = 0x70840656a48 v = 0x0 fmt = 0x62bd204f what = 0x0 codec_buf = 0x7f9ca729cfb0 needvideo = 0 needtext = 0 exten = 0x46482b <__ao2_unlock+261> "351", __PRETTY_FUNCTION__ = "sip_new" __FUNCTION__ = "sip_new" #10 0x00007f9d5e811284 in handle_request_invite (p=0x7f9d40656a48, req=0x7f9ca729e1c0, addr=0x7f9ca729e130, seqno=1, recount=0x7f9ca729e0dc, e=0x7f9d409c706f "sip:9000@127.0.0.1:5062", nounlock=0x7f9ca729e0d8) at chan_sip.c:26731 cc_recall_core_id = -1 res = 0 gotdest = 0 p_replaces = 0x7f9d5e845e58 "" replace_id = 0x0 required = 0x7f9d5e845e58 "" required_profile = 0 c = 0x0 authpeer = 0x0 reinvite = 0 redirecting = {orig = {name = {str = 0x0, char_set = 1631819865, presentation = 32669, valid = 0 '000'}, number = {str = 0x0, plan = 32, presentation = 48, valid = 144 '220'}, subaddress = {str = 0x7f9ca729ddd0 "X^204^235177", type = 0, odd_even_indicator = 0 '000', valid = 0 '000'}, tag = 0x7f9d6209f5a0 "H213227210"}, from = {name = {str = 0x7f9ca729dc90 "024se@235177", char_set = 0, presentation = 32668, valid = 0 '000'}, number = {str = 0x7f9ca729dc60 "025re@235177", plan = 1631910166, presentation = 32669, valid = 16 '020'}, subaddress = {str = 0x7f9ca729db70 "", type = 5, odd_even_indicator = 0 '000', valid = 0 '000'}, tag = 0x7f9ca729dc60 "025re@235177"}, to = {name = {str = 0x7f9ca729de10 "@336)247234177", char_set = 1628655513, presentation = 32669, valid = 0 '000'}, number = {str = 0x0, plan = 0, presentation = 0, valid = 48 '0'}, subaddress = {str = 0x0, type = 0, odd_even_indicator = 0 '000', valid = 0 '000'}, tag = 0x7f9ca729ed90 ""}, priv_orig = {name = {str = 0x0, char_set = 0, presentation = 0, valid = 0 '000'}, number = {str = 0x0, plan = 0, presentation = 0, valid = 248 '370'}, subaddress = {str = 0x7f9ca729ddf8 "340034206^235177", type = -1490428416, odd_even_indicator = 156 '234', valid = 127 '177'}, tag = 0x7f9ca729de08 "001"}, priv_from = {name = {str = 0x7f9ca729ee38 "215230Ca235177", char_set = 0, presentation = 0, valid = 72 'H'}, number = {str = 0x7f9ca729dc50 "001200255373235177", plan = 1080390165, presentation = 32669, valid = 80 'P'}, subaddress = {str = 0x7f9d5e85adab "Rx: %s", type = -1490428488, odd_even_indicator = 156 '234', valid = 127 '177'}, tag = 0xff
}, priv_to = {name = {str = 0x7f9ca729f700 "", char_set = 1080390165, presentation = 32669, valid = 153 '231'}, number = {str = 0x7f9dfbad8001
, plan = 1080390165, presentation = 32669, valid = 21 '025'}, subaddress = {str = 0x7f9d40657215 "Rx: INVITE", type = 1080390165, odd_even_indicator = 157 '235', valid = 127 '177'}, tag = 0x7f9d4065721f ""}, reason = {str = 0x7f9d40657314 "", code = 1080390165}, orig_reason = {str = 0x7f9d40657314 "", code = 0}, count = 0} update_redirecting = {orig = {name = 0 '000', number = 0 '000', subaddress = 0 '000'}, from = {name = 0 '000', number = 0 '000', subaddress = 0 '000'}, to = {name = 0 '000', number = 0 '000', subaddress = 141 '215'}, priv_orig = {name = 152 '230', number = 67 'C', subaddress = 97 'a'}, priv_from = {name = 157 '235', number = 127 '177', subaddress = 0 '000'}, priv_to = {name = 0 '000', number = 145 '221', subaddress = 216 '330'}} supported_start = 0 require_start = 0 unsupported = '000' pickup = {exten = '000' , context = '000' } replaces_pvt = 0x0 replaces_chan = 0x0 __PRETTY_FUNCTION__ = "handle_request_invite" #11 0x00007f9d5e81cd7a in handle_incoming (p=0x7f9d40656a48, req=0x7f9ca729e1c0, addr=0x7f9ca729e130, recount=0x7f9ca729e0dc, nounlock=0x7f9ca729e0d8) at chan_sip.c:29170 cmd = 0x7f9d409c7068 "INVITE" cseq = 0x7f9d409c7150 "1 INVITE" useragent = 0x7f9d5e845e58 "" via = 0x7f9d409c7094 "SIP/2.0/UDP 127.0.0.1:5090;branch=z9hG4bK-30991-14695-0" callid = 0x7f9d409c7134 "14695-30991@127.0.0.1" via_pos = 2 seqno = 1 len = 1 respid = 1585575918 res = 0 e = 0x7f9d409c706f "sip:9000@127.0.0.1:5062" error = 0 oldmethod = 5 acked = 0 __PRETTY_FUNCTION__ = "handle_incoming" #12 0x00007f9d5e81d891 in handle_request_do (req=0x7f9ca729e1c0, addr=0x7f9ca729e130) at chan_sip.c:29379 p = 0x7f9d40656a48 owner_chan_ref = 0x0 recount = 0 nounlock = 0 __PRETTY_FUNCTION__ = "handle_request_do" #13 0x00007f9d5e81d471 in sipsock_read (id=0x7f9d40003630, fd=22, events=1, ignore=0x0) at chan_sip.c:29310 req = {rlpart1 = 0, rlpart2 = 7, headers = 11, method = 5, lines = 9, sdp_start = 0, sdp_count = 9, debug = 0 '000', has_to_tag = 0 '000', ignore = 0 '000', authenticated = 1 '001', header = {0, 39, 100, 161, 195, 226, 241, 274, 291, 317, 347, 367, 0 }, line = {368, 372, 417, 421, 440, 446, 474, 495, 529, 0 }, data = 0x7f9d409c7050, content = 0x0, socket = {type = AST_TRANSPORT_UDP, fd = -1, port = 50707, tcptls_session = 0x0, ws_session = 0x0}, next = {next = 0x0}, reqsipoptions = 0} addr = {ss = {ss_family = 2, __ss_padding = "023342177000000001", '000' , "314S023a235177000000000000377000000000000000370377377377377377377377300342)247234177000000304|023a235177000000060231232d235177000000000000000000000000000000^257tb235177000000301OF000000000000000b202023a235177000", __ss_align = 167}, len = 16} res = 571 readbuf = "INVITE sip:9000@127.0.0.1:5062 SIP/2.0rnVia: SIP/2.0/UDP 127.0.0.1:5090;branch=z9hG4bK-30991-14695-0rnFrom: sipp ;tag=30991SIPpTag0914695rnTo: sut rnC"... __PRETTY_FUNCTION__ = "sipsock_read" #14 0x000000000050a22a in ast_io_wait (ioc=0xf56c10, howlong=36) at io.c:297 res = 1 x = 0 origcnt = 1 #15 0x00007f9d5e81f7ee in do_monitor (data=0x0) at chan_sip.c:29955 res = 36 t = 1571583349 reloading = 0 __PRETTY_FUNCTION__ = "do_monitor" #16 0x00000000005cb211 in dummy_start (data=0x2772890) at utils.c:1249 __cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {0, 6428554396346768504, 0, 512000, 0, 140310796171008, 6428554396374031480, -6480786776708457352}, __mask_was_saved = 0}}, __pad = {0x7f9ca729edb0, 0x0, 0x0, 0x0}} __cancel_routine = 0x454b94 __cancel_arg = 0x7f9ca729f700 __not_first_call = 0 ret = 0x0 a = {start_routine = 0x7f9d5e81f576 , data = 0x0, name = 0x276a650 "do_monitor", ' ' , "started at [29988] chan_sip.c restart_monitor()"} lock_info = 0x7f9d40002590 mutex_attr = {__size = "001000000", __align = 1} __PRETTY_FUNCTION__ = "dummy_start" #17 0x00007f9d62097e65 in start_thread () at /usr/lib64/libpthread.so.0 #18 0x00007f9d6143988d in clone () at /usr/lib64/libc.so.6