Crash asterisk 18.17.1

After upgrade to version 18.17.1

!@!@!@! thread1.txt !@!@!@!

$1 = {si_signo = 11, si_errno = 0, si_code = 128, _sifields = {_pad = {0 <repeats 28 times>}, _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, _addr_lsb = 0, _addr_bnd = {_lower = 0x0, _upper = 0x0}}, _sigpoll = {si_band = 0, si_fd = 0}}}
Signal Stop Print Pass to program Description
SIGSEGV Yes Yes Yes Segmentation fault

Thread 1 (Thread 0x7fcc8df48700 (LWP 4162)):
#0 0x0000561312f6924d in ao2_ref (user_data=user_data@entry=0x3431626436643565, delta=delta@entry=1, tag=tag@entry=0x0, file=file@entry=0x7fce193a6012 “res_pjsip_session.c”, line=line@entry=3639, func=func@entry=0x7fce193a9d20 <PRETTY_FUNCTION.38496> “ast_sip_dialog_get_session”) at astobj2.c:501
p__LINE
= 0x343162643664354d
obj =
obj_mutex =
obj_rwlock =
obj_lockobj =
current_value =
ret =
privdataoptions =
weakproxy =
lock_state =
PRETTY_FUNCTION = “__ao2_ref”
#1 0x00007fce193a1f05 in ast_sip_dialog_get_session (dlg=dlg@entry=0x7fcd145a5da8) at res_pjsip_session.c:3639
inv_session =
session = 0x3431626436643565
PRETTY_FUNCTION = “ast_sip_dialog_get_session”
#2 0x00007fce193a5022 in session_outgoing_nat_hook (tdata=0x7fcb70675c68, transport=0x7fca9f4b5378) at res_pjsip_session.c:5567
transport_state = 0x7fca9f4b5810
hook = 0x0
sdp_info =
sdp =
dlg = 0x7fcd145a5da8
session =
stream =
FUNCTION = “session_outgoing_nat_hook”
PRETTY_FUNCTION = “session_outgoing_nat_hook”
#3 0x00007fce194133b9 in nat_invoke_hook (obj=, arg=arg@entry=0x7fcc8df47aa0, flags=flags@entry=0) at res_pjsip_nat.c:299
hook =
details = 0x7fcc8df47aa0
#4 0x0000561312f6b4c5 in internal_ao2_traverse (self=self@entry=0x7fce6a271098, flags=flags@entry=OBJ_SEARCH_NONE, cb_fn=cb_fn@entry=0x7fce194133a0 <nat_invoke_hook>, arg=arg@entry=0x7fcc8df47aa0, data=data@entry=0x0, type=type@entry=AO2_CALLBACK_DEFAULT, tag=0x0, file=0x7fce19415009 “res_pjsip_nat.c”, line=470, func=0x7fce194154b8 <PRETTY_FUNCTION.29641> “process_nat”) at astobj2_container.c:328
match = 3
ret = 0x0
cb_default = 0x7fce194133a0 <nat_invoke_hook>
cb_withdata = 0x0
node = 0x7fce68aa8398
traversal_state = 0x7fcc8df47900
orig_lock = AO2_LOCK_REQ_MUTEX
multi_container = 0x0
multi_iterator = 0x0
PRETTY_FUNCTION = “internal_ao2_traverse”
#5 0x0000561312f6ba2c in __ao2_callback (c=c@entry=0x7fce6a271098, flags=flags@entry=OBJ_SEARCH_NONE, cb_fn=cb_fn@entry=0x7fce194133a0 <nat_invoke_hook>, arg=arg@entry=0x7fcc8df47aa0, tag=tag@entry=0x0, file=file@entry=0x7fce19415009 “res_pjsip_nat.c”, line=470, func=0x7fce194154b8 <PRETTY_FUNCTION.29641> “process_nat”) at astobj2_container.c:414
#6 0x00007fce19413b08 in process_nat (tdata=0x7fcb70675c68) at res_pjsip_nat.c:470
hook_details = {tdata = 0x7fcb70675c68, transport = 0x7fca9f4b5378}
transport_states = 0x7fce680b1680
transport = 0x7fca9f4b5378
transport_state = 0x7fca9f4b5810
details = {type = (unknown: 0), transport = 0x56131427eda8, factory = 0x0, local_address = {ptr = 0x0, slen = 0}, local_port = 0}
via = 0x7fcb70603130
addr = {ss = {ss_family = 2, __ss_padding = “023ıv1337”, ‘000’ <repeats 111 times>, __ss_align = 0}, len = 16}
uri =
hooks = 0x7fce6a271098
PRETTY_FUNCTION = “process_nat”
FUNCTION = “process_nat”
rc =
#7 0x00007fce19413b08 in nat_on_tx_message (tdata=0x7fcb70675c68) at res_pjsip_nat.c:479
rc =
#8 0x00007fce94e65b26 in endpt_on_tx_msg (endpt=, tdata=0x7fcb70675c68) at …/src/pjsip/sip_endpoint.c:1115
status = 0
mod = 0x7fce19417280 <nat_module>
#9 0x00007fce94e6d215 in pjsip_transport_send (tr=0x56131427eda8, tdata=tdata@entry=0x7fcb70675c68, addr=addr@entry=0x7fcb70675e58, addr_len=addr_len@entry=16, token=token@entry=0x7fcb709b1d88, cb=cb@entry=0x7fce94e678a0 <stateless_send_transport_cb>) at …/src/pjsip/sip_transport.c:935
status =
#10 0x00007fce94e675cf in stateless_send_transport_cb (token=token@entry=0x7fcb709b1d88, tdata=tdata@entry=0x7fcb70675c68, sent=, sent@entry=-70002) at …/src/pjsip/sip_util.c:1276
status =
cont = 1
cur_addr = 0x7fcb70675e58
cur_addr_len = 16
via =
need_update_via = 1
#11 0x00007fce94e6791a in stateless_send_transport_cb (sent=-70002, tdata=0x7fcb70675c68, token=0x7fcb709b1d88) at …/src/pjsip/sip_util.c:1377
stateless_data = 0x7fcb709b1d88
need_update_via = 1
stateless_data = 0x7fcb709b1d88
tdata = 0x7fcb70675c68
#12 0x00007fce94e6791a in stateless_send_resolver_callback (status=, token=0x7fcb709b1d88, addr=) at …/src/pjsip/sip_util.c:1377
stateless_data = 0x7fcb709b1d88
tdata = 0x7fcb70675c68
#13 0x00007fce194b4f37 in sip_resolve_invoke_user_callback (data=0x7fcb70022328) at res_pjsip/pjsip_resolver.c:206
resolve = 0x7fcb70022328
FUNCTION = “sip_resolve_invoke_user_callback”
PRETTY_FUNCTION = “sip_resolve_invoke_user_callback”
#14 0x00005613130ac617 in ast_taskprocessor_execute (tps=tps@entry=0x7fc7cc039e30) at taskprocessor.c:1302
local = {local_data = 0x7fcde8016648, data = 0x7fc7cc039e30}
t = 0x7fcb5800a720
size =
PRETTY_FUNCTION = “ast_taskprocessor_execute”
#15 0x00005613130b2c00 in execute_tasks (data=0x7fc7cc039e30) at threadpool.c:1352
tps = 0x7fc7cc039e30
#16 0x00005613130ac617 in ast_taskprocessor_execute (tps=0x561314349b60) at taskprocessor.c:1302
local = {local_data = 0x7fcde8016610, data = 0x7fcde8016610}
t = 0x7fcb5800a750
size =
PRETTY_FUNCTION = “ast_taskprocessor_execute”
#17 0x00005613130b35b4 in threadpool_execute (pool=0x5613143485b0) at threadpool.c:367
PRETTY_FUNCTION = “threadpool_execute”
alive =
worker = 0x7fcde8016610
saved_state =
PRETTY_FUNCTION = “worker_start”
#18 0x00005613130b35b4 in worker_active (worker=0x7fcde8016610) at threadpool.c:1137
alive =
worker = 0x7fcde8016610
saved_state =
PRETTY_FUNCTION = “worker_start”
#19 0x00005613130b35b4 in worker_start (arg=arg@entry=0x7fcde8016610) at threadpool.c:1056
worker = 0x7fcde8016610
saved_state =
PRETTY_FUNCTION = “worker_start”
#20 0x00005613130bb5ac in dummy_start (data=) at utils.c:1574
__cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {140522337467920, 9095330219700654361, 140523150588926, 140523150588927, 140516531668736, 140522337466288, -9106277013366107879, -3305856865606561511}, __mask_was_saved = 0}}, __pad = {0x7fcc8df47ed0, 0x0, 0x7fcc8df48700, 0x7fcde801f7b0}}
__cancel_arg = 0x7fcc8df48700
__not_first_call =
ret =
a = {start_routine = 0x5613130b31c0 <worker_start>, data = 0x7fcde8016610, name = }
PRETTY_FUNCTION = “dummy_start”
#21 0x00007fce946a4fa3 in start_thread (arg=) at pthread_create.c:486
ret =
pd =
now =
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140516531668736, 9095330219700654361, 140523150588926, 140523150588927, 140516531668736, 140522337466288, -9106277013338844903, -9105097082188852967}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call =
#22 0x00007fce9427beff in __init_misc (argc=, argv=0x7fcc8df48700, envp=0x0) at init-misc.c:33
p =
#23 0x0000000000000000 in ()

Issues should currently be filed on Jira[1], with full backtrace and details of your usage of Asterisk, configuration, and what was going on, as well as previous version.

[1] System Dashboard - Digium/Asterisk JIRA

It is likely that you will be asked to rebuild asterisk with optimisation disabled, as the optimised out values make back traces of limited value.

learbia | 2023-04-11 13:08:36 UTC | #1

After upgrade to version 18.17.1 

!@!@!@! thread1.txt !@!@!@!

$1 = {si_signo = 11, si_errno = 0, si_code = 128, _sifields = {_pad = {0 <repeats 28 times>}, _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, _addr_lsb = 0, _addr_bnd = {_lower = 0x0, _upper = 0x0}}, _sigpoll = {si_band = 0, si_fd = 0}}}
Signal        Stop	Print	Pass to program	Description
SIGSEGV       Yes	Yes	Yes		Segmentation fault

Thread 1 (Thread 0x7fcc8df48700 (LWP 4162)):
#0  0x0000561312f6924d in __ao2_ref (user_data=user_data@entry=0x3431626436643565, delta=delta@entry=1, tag=tag@entry=0x0, file=file@entry=0x7fce193a6012 "res_pjsip_session.c", line=line@entry=3639, func=func@entry=0x7fce193a9d20 <__PRETTY_FUNCTION__.38496> "ast_sip_dialog_get_session") at astobj2.c:501
        p__LINE__ = 0x343162643664354d
        obj = <optimized out>
        obj_mutex = <optimized out>
        obj_rwlock = <optimized out>
        obj_lockobj = <optimized out>
        current_value = <optimized out>
        ret = <optimized out>
        privdataoptions = <optimized out>
        weakproxy = <optimized out>
        lock_state = <optimized out>
        __PRETTY_FUNCTION__ = "__ao2_ref"
#1  0x00007fce193a1f05 in ast_sip_dialog_get_session (dlg=dlg@entry=0x7fcd145a5da8) at res_pjsip_session.c:3639
        inv_session = <optimized out>
        session = 0x3431626436643565
        __PRETTY_FUNCTION__ = "ast_sip_dialog_get_session"
#2  0x00007fce193a5022 in session_outgoing_nat_hook (tdata=0x7fcb70675c68, transport=0x7fca9f4b5378) at res_pjsip_session.c:5567
        transport_state = 0x7fca9f4b5810
        hook = 0x0
        sdp_info = <optimized out>
        sdp = <optimized out>
        dlg = 0x7fcd145a5da8
        session = <optimized out>
        stream = <optimized out>
        __FUNCTION__ = "session_outgoing_nat_hook"
        __PRETTY_FUNCTION__ = "session_outgoing_nat_hook"
#3  0x00007fce194133b9 in nat_invoke_hook (obj=<optimized out>, arg=arg@entry=0x7fcc8df47aa0, flags=flags@entry=0) at res_pjsip_nat.c:299
        hook = <optimized out>
        details = 0x7fcc8df47aa0
#4  0x0000561312f6b4c5 in internal_ao2_traverse (self=self@entry=0x7fce6a271098, flags=flags@entry=OBJ_SEARCH_NONE, cb_fn=cb_fn@entry=0x7fce194133a0 <nat_invoke_hook>, arg=arg@entry=0x7fcc8df47aa0, data=data@entry=0x0, type=type@entry=AO2_CALLBACK_DEFAULT, tag=0x0, file=0x7fce19415009 "res_pjsip_nat.c", line=470, func=0x7fce194154b8 <__PRETTY_FUNCTION__.29641> "process_nat") at astobj2_container.c:328
        match = 3
        ret = 0x0
        cb_default = 0x7fce194133a0 <nat_invoke_hook>
        cb_withdata = 0x0
        node = 0x7fce68aa8398
        traversal_state = 0x7fcc8df47900
        orig_lock = AO2_LOCK_REQ_MUTEX
        multi_container = 0x0
        multi_iterator = 0x0
        __PRETTY_FUNCTION__ = "internal_ao2_traverse"
#5  0x0000561312f6ba2c in __ao2_callback (c=c@entry=0x7fce6a271098, flags=flags@entry=OBJ_SEARCH_NONE, cb_fn=cb_fn@entry=0x7fce194133a0 <nat_invoke_hook>, arg=arg@entry=0x7fcc8df47aa0, tag=tag@entry=0x0, file=file@entry=0x7fce19415009 "res_pjsip_nat.c", line=470, func=0x7fce194154b8 <__PRETTY_FUNCTION__.29641> "process_nat") at astobj2_container.c:414
#6  0x00007fce19413b08 in process_nat (tdata=0x7fcb70675c68) at res_pjsip_nat.c:470
        hook_details = {tdata = 0x7fcb70675c68, transport = 0x7fca9f4b5378}
        transport_states = 0x7fce680b1680
        transport = 0x7fca9f4b5378
        transport_state = 0x7fca9f4b5810
        details = {type = (unknown: 0), transport = 0x56131427eda8, factory = 0x0, local_address = {ptr = 0x0, slen = 0}, local_port = 0}
        via = 0x7fcb70603130
        addr = {ss = {ss_family = 2, __ss_padding = "023ıv1337", '000' <repeats 111 times>, __ss_align = 0}, len = 16}
        uri = <optimized out>
        hooks = 0x7fce6a271098
        __PRETTY_FUNCTION__ = "process_nat"
        __FUNCTION__ = "process_nat"
        rc = <optimized out>
#7  0x00007fce19413b08 in nat_on_tx_message (tdata=0x7fcb70675c68) at res_pjsip_nat.c:479
        rc = <optimized out>
#8  0x00007fce94e65b26 in endpt_on_tx_msg (endpt=<optimized out>, tdata=0x7fcb70675c68) at ../src/pjsip/sip_endpoint.c:1115
        status = 0
        mod = 0x7fce19417280 <nat_module>
#9  0x00007fce94e6d215 in pjsip_transport_send (tr=0x56131427eda8, tdata=tdata@entry=0x7fcb70675c68, addr=addr@entry=0x7fcb70675e58, addr_len=addr_len@entry=16, token=token@entry=0x7fcb709b1d88, cb=cb@entry=0x7fce94e678a0 <stateless_send_transport_cb>) at ../src/pjsip/sip_transport.c:935
        status = <optimized out>
#10 0x00007fce94e675cf in stateless_send_transport_cb (token=token@entry=0x7fcb709b1d88, tdata=tdata@entry=0x7fcb70675c68, sent=<optimized out>, sent@entry=-70002) at ../src/pjsip/sip_util.c:1276
        status = <optimized out>
        cont = 1
        cur_addr = 0x7fcb70675e58
        cur_addr_len = 16
        via = <optimized out>
        need_update_via = 1
#11 0x00007fce94e6791a in stateless_send_transport_cb (sent=-70002, tdata=0x7fcb70675c68, token=0x7fcb709b1d88) at ../src/pjsip/sip_util.c:1377
        stateless_data = 0x7fcb709b1d88
        need_update_via = 1
        stateless_data = 0x7fcb709b1d88
        tdata = 0x7fcb70675c68
#12 0x00007fce94e6791a in stateless_send_resolver_callback (status=<optimized out>, token=0x7fcb709b1d88, addr=<optimized out>) at ../src/pjsip/sip_util.c:1377
        stateless_data = 0x7fcb709b1d88
        tdata = 0x7fcb70675c68
#13 0x00007fce194b4f37 in sip_resolve_invoke_user_callback (data=0x7fcb70022328) at res_pjsip/pjsip_resolver.c:206
        resolve = 0x7fcb70022328
        __FUNCTION__ = "sip_resolve_invoke_user_callback"
        __PRETTY_FUNCTION__ = "sip_resolve_invoke_user_callback"
#14 0x00005613130ac617 in ast_taskprocessor_execute (tps=tps@entry=0x7fc7cc039e30) at taskprocessor.c:1302
        local = {local_data = 0x7fcde8016648, data = 0x7fc7cc039e30}
        t = 0x7fcb5800a720
        size = <optimized out>
        __PRETTY_FUNCTION__ = "ast_taskprocessor_execute"
#15 0x00005613130b2c00 in execute_tasks (data=0x7fc7cc039e30) at threadpool.c:1352
        tps = 0x7fc7cc039e30
#16 0x00005613130ac617 in ast_taskprocessor_execute (tps=0x561314349b60) at taskprocessor.c:1302
        local = {local_data = 0x7fcde8016610, data = 0x7fcde8016610}
        t = 0x7fcb5800a750
        size = <optimized out>
        __PRETTY_FUNCTION__ = "ast_taskprocessor_execute"
#17 0x00005613130b35b4 in threadpool_execute (pool=0x5613143485b0) at threadpool.c:367
        __PRETTY_FUNCTION__ = "threadpool_execute"
        alive = <optimized out>
        worker = 0x7fcde8016610
        saved_state = <optimized out>
        __PRETTY_FUNCTION__ = "worker_start"
#18 0x00005613130b35b4 in worker_active (worker=0x7fcde8016610) at threadpool.c:1137
        alive = <optimized out>
        worker = 0x7fcde8016610
        saved_state = <optimized out>
        __PRETTY_FUNCTION__ = "worker_start"
#19 0x00005613130b35b4 in worker_start (arg=arg@entry=0x7fcde8016610) at threadpool.c:1056
        worker = 0x7fcde8016610
        saved_state = <optimized out>
        __PRETTY_FUNCTION__ = "worker_start"
#20 0x00005613130bb5ac in dummy_start (data=<optimized out>) at utils.c:1574
        __cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {140522337467920, 9095330219700654361, 140523150588926, 140523150588927, 140516531668736, 140522337466288, -9106277013366107879, -3305856865606561511}, __mask_was_saved = 0}}, __pad = {0x7fcc8df47ed0, 0x0, 0x7fcc8df48700, 0x7fcde801f7b0}}
        __cancel_arg = 0x7fcc8df48700
        __not_first_call = <optimized out>
        ret = <optimized out>
        a = {start_routine = 0x5613130b31c0 <worker_start>, data = 0x7fcde8016610, name = <optimized out>}
        __PRETTY_FUNCTION__ = "dummy_start"
#21 0x00007fce946a4fa3 in start_thread (arg=<optimized out>) at pthread_create.c:486
        ret = <optimized out>
        pd = <optimized out>
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140516531668736, 9095330219700654361, 140523150588926, 140523150588927, 140516531668736, 140522337466288, -9106277013338844903, -9105097082188852967}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
#22 0x00007fce9427beff in __init_misc (argc=<optimized out>, argv=0x7fcc8df48700, envp=0x0) at init-misc.c:33
        p = <optimized out>
#23 0x0000000000000000 in  ()

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.