[asterisk-bugs] [JIRA] (ASTERISK-29919) CRASH ASTERISK

Camilla Parise (JIRA) noreply at issues.asterisk.org
Tue Feb 15 13:22:06 CST 2022


     [ https://issues.asterisk.org/jira/browse/ASTERISK-29919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Camilla Parise updated ASTERISK-29919:
--------------------------------------

    Description: 
When asterisk have any problem with connection internet, the PJSIP CRASH.

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

$1 = {si_signo = 11, si_errno = 0, si_code = 1, _sifields = {_pad = {32, 0 <repeats 27 times>}, _kill = {si_pid = 32, si_uid = 0}, _timer = {si_tid = 32, si_overrun = 0, si_sigval = {sival_int = 0, sival_ptr = 0x0}}, _rt = {si_pid = 32, si_uid = 0, si_sigval = {sival_int = 0, sival_ptr = 0x0}}, _sigchld = {si_pid = 32, si_uid = 0, si_status = 0, si_utime = 0, si_stime = 0}, _sigfault = {si_addr = 0x20}, _sigpoll = {si_band = 32, si_fd = 0}}}
Signal        Stop	Print	Pass to program	Description
SIGSEGV       Yes	Yes	Yes		Segmentation fault

Thread 1 (Thread 0x7f34ab1f2700 (LWP 41231)):
#0  pj_stricmp (str1=str1 at entry=0x18, str2=str2 at entry=0x7f34ab1f1bc0) at ../include/pj/string_i.h:216
No locals.
#1  0x00007f357c093164 in pjsip_msg_find_hdr_by_name (msg=0x7f339a2a84e0, name=name at entry=0x7f34ab1f1bc0, start=start at entry=0x0) at ../src/pjsip/sip_msg.c:362
        hdr = 0x0
        end = 0x7f339a2a8508
#2  0x00007f34e67ff78b in add_headers_to_message (headers=headers at entry=0x7f34e6a21bc0 <request_headers>, tdata=0x7f339a2a7368) at res_pjsip/pjsip_global_headers.c:93
        name = {ptr = 0x63f914a "Max-Forwards", slen = 12}
        hdr = <optimized out>
        iter = 0x63f90e0
        lock = 0x7f34e6a21bc0 <request_headers>
        __PRETTY_FUNCTION__ = "add_headers_to_message"
#3  0x00007f34e67ff843 in add_request_headers (tdata=<optimized out>) at res_pjsip/pjsip_global_headers.c:105
No locals.
#4  0x00007f357c09bf76 in endpt_on_tx_msg (endpt=<optimized out>, tdata=0x7f339a2a7368) at ../src/pjsip/sip_endpoint.c:1116
        status = 0
        mod = 0x7f34e6a20e40 <global_header_mod>
#5  0x00007f357c0a3120 in pjsip_transport_send (tr=0x7189768, tdata=0x7f339a2a7368, addr=0x7f339a2a7558, addr_len=16, token=0x7f339a2a8ee0, cb=0x7f357c09d730 <stateless_send_transport_cb>) at ../src/pjsip/sip_transport.c:931
        status = <optimized out>
#6  0x00007f357c09d8d0 in stateless_send_transport_cb (token=0x7f339a2a8ee0, tdata=0x7f339a2a7368, sent=16) at ../src/pjsip/sip_util.c:1277
        cont = 1
        cur_addr = 0x7f339a2a7558
        cur_addr_len = 16
        via = 0x7f339a2a85f0
        need_update_via = 1
#7  0x00007f357c09dc92 in stateless_send_resolver_callback (status=<optimized out>, token=0x7f339a2a8ee0, addr=<optimized out>) at ../src/pjsip/sip_util.c:1378
        stateless_data = 0x7f339a2a8ee0
        tdata = 0x7f339a2a7368
#8  0x00007f34e67e7374 in sip_resolve_invoke_user_callback (data=0x7f349547bac8) at res_pjsip/pjsip_resolver.c:208
        __FUNCTION__ = "sip_resolve_invoke_user_callback"
        __PRETTY_FUNCTION__ = "sip_resolve_invoke_user_callback"
#9  0x000000000059e11e in ast_taskprocessor_execute (tps=tps at entry=0x7f3454764de0) at taskprocessor.c:1237
        local = {local_data = 0x7f34943b6110, data = 0x7f3454764de0}
        t = 0x7f35040008f0
        __PRETTY_FUNCTION__ = "ast_taskprocessor_execute"
#10 0x00000000005a4e90 in execute_tasks (data=0x7f3454764de0) at threadpool.c:1354
        tps = 0x7f3454764de0
#11 0x000000000059e11e in ast_taskprocessor_execute (tps=0x1e829b0) at taskprocessor.c:1237
        local = {local_data = 0x7f34943b6110, data = 0x1e81190}
        t = 0x7f3504000a50
        __PRETTY_FUNCTION__ = "ast_taskprocessor_execute"
#12 0x00000000005a5a40 in threadpool_execute (pool=<optimized out>) at threadpool.c:367
No locals.
#13 worker_active (worker=<optimized out>) at threadpool.c:1137
No locals.
#14 worker_start (arg=0x7f349c001110) at threadpool.c:1056
        __PRETTY_FUNCTION__ = "worker_start"
#15 0x00000000005ad319 in dummy_start (data=<optimized out>) at utils.c:1572
        __cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {139863932277296, -2056993777596187699, 139864199679022, 139864199679023, 139864185462784, 7, 2097904680027864013, -2056993036250989619}, __mask_was_saved = 0}}, __pad = {0x7f34ab1f1ef0, 0x0, 0x0, 0x0}}
        __cancel_arg = 0x7f34ab1f2700
        __not_first_call = <optimized out>
        ret = <optimized out>
        a = {start_routine = 0x5a5690 <worker_start>, data = 0x7f349c001110, name = 0x7f349c001230 "worker_start         started at [ 1111] threadpool.c worker_thread_start()"}
        __PRETTY_FUNCTION__ = "dummy_start"
#16 0x00007f357a2254a4 in start_thread (arg=0x7f34ab1f2700) at pthread_create.c:456
        __res = <optimized out>
        pd = 0x7f34ab1f2700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {139864185972480, -2056993777596187699, 139864199679022, 139864199679023, 139864185462784, 7, 2097904680015281101, 2098364385212414925}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#17 0x00007f3579508d0f in clone () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.


  was:
When asterisk have any problem with connection internet, the PJSIP CRASH.

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

$1 = {si_signo = 11, si_errno = 0, si_code = 1, _sifields = {_pad = {32, 0 <repeats 27 times>}, _kill = {si_pid = 32, si_uid = 0}, _timer = {si_tid = 32, si_overrun = 0, si_sigval = {sival_int = 0, sival_ptr = 0x0}}, _rt = {si_pid = 32, si_uid = 0, si_sigval = {sival_int = 0, sival_ptr = 0x0}}, _sigchld = {si_pid = 32, si_uid = 0, si_status = 0, si_utime = 0, si_stime = 0}, _sigfault = {si_addr = 0x20}, _sigpoll = {si_band = 32, si_fd = 0}}}
Signal        Stop	Print	Pass to program	Description
SIGSEGV       Yes	Yes	Yes		Segmentation fault

Thread 1 (Thread 0x7f34ab1f2700 (LWP 41231)):
#0  pj_stricmp (str1=str1 at entry=0x18, str2=str2 at entry=0x7f34ab1f1bc0) at ../include/pj/string_i.h:216
No locals.
#1  0x00007f357c093164 in pjsip_msg_find_hdr_by_name (msg=0x7f339a2a84e0, name=name at entry=0x7f34ab1f1bc0, start=start at entry=0x0) at ../src/pjsip/sip_msg.c:362
        hdr = 0x0
        end = 0x7f339a2a8508
#2  0x00007f34e67ff78b in add_headers_to_message (headers=headers at entry=0x7f34e6a21bc0 <request_headers>, tdata=0x7f339a2a7368) at res_pjsip/pjsip_global_headers.c:93
        name = {ptr = 0x63f914a "Max-Forwards", slen = 12}
        hdr = <optimized out>
        iter = 0x63f90e0
        lock = 0x7f34e6a21bc0 <request_headers>
        __PRETTY_FUNCTION__ = "add_headers_to_message"
#3  0x00007f34e67ff843 in add_request_headers (tdata=<optimized out>) at res_pjsip/pjsip_global_headers.c:105
No locals.
#4  0x00007f357c09bf76 in endpt_on_tx_msg (endpt=<optimized out>, tdata=0x7f339a2a7368) at ../src/pjsip/sip_endpoint.c:1116
        status = 0
        mod = 0x7f34e6a20e40 <global_header_mod>
#5  0x00007f357c0a3120 in pjsip_transport_send (tr=0x7189768, tdata=0x7f339a2a7368, addr=0x7f339a2a7558, addr_len=16, token=0x7f339a2a8ee0, cb=0x7f357c09d730 <stateless_send_transport_cb>) at ../src/pjsip/sip_transport.c:931
        status = <optimized out>
#6  0x00007f357c09d8d0 in stateless_send_transport_cb (token=0x7f339a2a8ee0, tdata=0x7f339a2a7368, sent=16) at ../src/pjsip/sip_util.c:1277
        cont = 1
        cur_addr = 0x7f339a2a7558
        cur_addr_len = 16
        via = 0x7f339a2a85f0
        need_update_via = 1
#7  0x00007f357c09dc92 in stateless_send_resolver_callback (status=<optimized out>, token=0x7f339a2a8ee0, addr=<optimized out>) at ../src/pjsip/sip_util.c:1378
        stateless_data = 0x7f339a2a8ee0
        tdata = 0x7f339a2a7368
#8  0x00007f34e67e7374 in sip_resolve_invoke_user_callback (data=0x7f349547bac8) at res_pjsip/pjsip_resolver.c:208
        __FUNCTION__ = "sip_resolve_invoke_user_callback"
        __PRETTY_FUNCTION__ = "sip_resolve_invoke_user_callback"
#9  0x000000000059e11e in ast_taskprocessor_execute (tps=tps at entry=0x7f3454764de0) at taskprocessor.c:1237
        local = {local_data = 0x7f34943b6110, data = 0x7f3454764de0}
        t = 0x7f35040008f0
        __PRETTY_FUNCTION__ = "ast_taskprocessor_execute"
#10 0x00000000005a4e90 in execute_tasks (data=0x7f3454764de0) at threadpool.c:1354
        tps = 0x7f3454764de0
#11 0x000000000059e11e in ast_taskprocessor_execute (tps=0x1e829b0) at taskprocessor.c:1237
        local = {local_data = 0x7f34943b6110, data = 0x1e81190}
        t = 0x7f3504000a50
        __PRETTY_FUNCTION__ = "ast_taskprocessor_execute"
#12 0x00000000005a5a40 in threadpool_execute (pool=<optimized out>) at threadpool.c:367
No locals.
#13 worker_active (worker=<optimized out>) at threadpool.c:1137
No locals.
#14 worker_start (arg=0x7f349c001110) at threadpool.c:1056
        __PRETTY_FUNCTION__ = "worker_start"
#15 0x00000000005ad319 in dummy_start (data=<optimized out>) at utils.c:1572
        __cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {139863932277296, -2056993777596187699, 139864199679022, 139864199679023, 139864185462784, 7, 2097904680027864013, -2056993036250989619}, __mask_was_saved = 0}}, __pad = {0x7f34ab1f1ef0, 0x0, 0x0, 0x0}}
        __cancel_arg = 0x7f34ab1f2700
        __not_first_call = <optimized out>
        ret = <optimized out>
        a = {start_routine = 0x5a5690 <worker_start>, data = 0x7f349c001110, name = 0x7f349c001230 "worker_start         started at [ 1111] threadpool.c worker_thread_start()"}
        __PRETTY_FUNCTION__ = "dummy_start"
#16 0x00007f357a2254a4 in start_thread (arg=0x7f34ab1f2700) at pthread_create.c:456
        __res = <optimized out>
        pd = 0x7f34ab1f2700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {139864185972480, -2056993777596187699, 139864199679022, 139864199679023, 139864185462784, 7, 2097904680015281101, 2098364385212414925}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#17 0x00007f3579508d0f in clone () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
root at WIDE3VIVO:/opt/crash# 


> CRASH ASTERISK
> --------------
>
>                 Key: ASTERISK-29919
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29919
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: pjproject/pjsip
>    Affects Versions: 18.9.0
>            Reporter: Camilla Parise
>            Severity: Critical
>
> When asterisk have any problem with connection internet, the PJSIP CRASH.
> !@!@!@! thread1.txt !@!@!@!
> $1 = {si_signo = 11, si_errno = 0, si_code = 1, _sifields = {_pad = {32, 0 <repeats 27 times>}, _kill = {si_pid = 32, si_uid = 0}, _timer = {si_tid = 32, si_overrun = 0, si_sigval = {sival_int = 0, sival_ptr = 0x0}}, _rt = {si_pid = 32, si_uid = 0, si_sigval = {sival_int = 0, sival_ptr = 0x0}}, _sigchld = {si_pid = 32, si_uid = 0, si_status = 0, si_utime = 0, si_stime = 0}, _sigfault = {si_addr = 0x20}, _sigpoll = {si_band = 32, si_fd = 0}}}
> Signal        Stop	Print	Pass to program	Description
> SIGSEGV       Yes	Yes	Yes		Segmentation fault
> Thread 1 (Thread 0x7f34ab1f2700 (LWP 41231)):
> #0  pj_stricmp (str1=str1 at entry=0x18, str2=str2 at entry=0x7f34ab1f1bc0) at ../include/pj/string_i.h:216
> No locals.
> #1  0x00007f357c093164 in pjsip_msg_find_hdr_by_name (msg=0x7f339a2a84e0, name=name at entry=0x7f34ab1f1bc0, start=start at entry=0x0) at ../src/pjsip/sip_msg.c:362
>         hdr = 0x0
>         end = 0x7f339a2a8508
> #2  0x00007f34e67ff78b in add_headers_to_message (headers=headers at entry=0x7f34e6a21bc0 <request_headers>, tdata=0x7f339a2a7368) at res_pjsip/pjsip_global_headers.c:93
>         name = {ptr = 0x63f914a "Max-Forwards", slen = 12}
>         hdr = <optimized out>
>         iter = 0x63f90e0
>         lock = 0x7f34e6a21bc0 <request_headers>
>         __PRETTY_FUNCTION__ = "add_headers_to_message"
> #3  0x00007f34e67ff843 in add_request_headers (tdata=<optimized out>) at res_pjsip/pjsip_global_headers.c:105
> No locals.
> #4  0x00007f357c09bf76 in endpt_on_tx_msg (endpt=<optimized out>, tdata=0x7f339a2a7368) at ../src/pjsip/sip_endpoint.c:1116
>         status = 0
>         mod = 0x7f34e6a20e40 <global_header_mod>
> #5  0x00007f357c0a3120 in pjsip_transport_send (tr=0x7189768, tdata=0x7f339a2a7368, addr=0x7f339a2a7558, addr_len=16, token=0x7f339a2a8ee0, cb=0x7f357c09d730 <stateless_send_transport_cb>) at ../src/pjsip/sip_transport.c:931
>         status = <optimized out>
> #6  0x00007f357c09d8d0 in stateless_send_transport_cb (token=0x7f339a2a8ee0, tdata=0x7f339a2a7368, sent=16) at ../src/pjsip/sip_util.c:1277
>         cont = 1
>         cur_addr = 0x7f339a2a7558
>         cur_addr_len = 16
>         via = 0x7f339a2a85f0
>         need_update_via = 1
> #7  0x00007f357c09dc92 in stateless_send_resolver_callback (status=<optimized out>, token=0x7f339a2a8ee0, addr=<optimized out>) at ../src/pjsip/sip_util.c:1378
>         stateless_data = 0x7f339a2a8ee0
>         tdata = 0x7f339a2a7368
> #8  0x00007f34e67e7374 in sip_resolve_invoke_user_callback (data=0x7f349547bac8) at res_pjsip/pjsip_resolver.c:208
>         __FUNCTION__ = "sip_resolve_invoke_user_callback"
>         __PRETTY_FUNCTION__ = "sip_resolve_invoke_user_callback"
> #9  0x000000000059e11e in ast_taskprocessor_execute (tps=tps at entry=0x7f3454764de0) at taskprocessor.c:1237
>         local = {local_data = 0x7f34943b6110, data = 0x7f3454764de0}
>         t = 0x7f35040008f0
>         __PRETTY_FUNCTION__ = "ast_taskprocessor_execute"
> #10 0x00000000005a4e90 in execute_tasks (data=0x7f3454764de0) at threadpool.c:1354
>         tps = 0x7f3454764de0
> #11 0x000000000059e11e in ast_taskprocessor_execute (tps=0x1e829b0) at taskprocessor.c:1237
>         local = {local_data = 0x7f34943b6110, data = 0x1e81190}
>         t = 0x7f3504000a50
>         __PRETTY_FUNCTION__ = "ast_taskprocessor_execute"
> #12 0x00000000005a5a40 in threadpool_execute (pool=<optimized out>) at threadpool.c:367
> No locals.
> #13 worker_active (worker=<optimized out>) at threadpool.c:1137
> No locals.
> #14 worker_start (arg=0x7f349c001110) at threadpool.c:1056
>         __PRETTY_FUNCTION__ = "worker_start"
> #15 0x00000000005ad319 in dummy_start (data=<optimized out>) at utils.c:1572
>         __cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {139863932277296, -2056993777596187699, 139864199679022, 139864199679023, 139864185462784, 7, 2097904680027864013, -2056993036250989619}, __mask_was_saved = 0}}, __pad = {0x7f34ab1f1ef0, 0x0, 0x0, 0x0}}
>         __cancel_arg = 0x7f34ab1f2700
>         __not_first_call = <optimized out>
>         ret = <optimized out>
>         a = {start_routine = 0x5a5690 <worker_start>, data = 0x7f349c001110, name = 0x7f349c001230 "worker_start         started at [ 1111] threadpool.c worker_thread_start()"}
>         __PRETTY_FUNCTION__ = "dummy_start"
> #16 0x00007f357a2254a4 in start_thread (arg=0x7f34ab1f2700) at pthread_create.c:456
>         __res = <optimized out>
>         pd = 0x7f34ab1f2700
>         now = <optimized out>
>         unwind_buf = {cancel_jmp_buf = {{jmp_buf = {139864185972480, -2056993777596187699, 139864199679022, 139864199679023, 139864185462784, 7, 2097904680015281101, 2098364385212414925}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
>         not_first_call = <optimized out>
>         pagesize_m1 = <optimized out>
>         sp = <optimized out>
>         freesize = <optimized out>
>         __PRETTY_FUNCTION__ = "start_thread"
> #17 0x00007f3579508d0f in clone () from /lib/x86_64-linux-gnu/libc.so.6
> No symbol table info available.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list