[asterisk-bugs] [JIRA] (ASTERISK-22188) Asterisk crashes inside pjsip when an address is unreachable

Rusty Newton (JIRA) noreply at issues.asterisk.org
Fri Jul 26 10:29:07 CDT 2013


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

Rusty Newton updated ASTERISK-22188:
------------------------------------

    Description: 
[bob]
type=auth
username=bob
password=bob

[bob]
type=registration
server_uri=sip:bob at vita
client_uri=sip:bob at 10.24.20.81
outbound_auth=bob
expiration=10

Assuming 10.24.20.81 is not on an accessible network, this crashes. Backtrace below:
[edit - backtrace removed and attached]

  was:
[bob]
type=auth
username=bob
password=bob

[bob]
type=registration
server_uri=sip:bob at vita
client_uri=sip:bob at 10.24.20.81
outbound_auth=bob
expiration=10

Assuming 10.24.20.81 is not on an accessible network, this crashes. Backtrace below:

#0  0x00007ffff78621e5 in __GI_raise (sig=sig at entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
        resultvar = 0
        pid = 13348
        selftid = 13369
#1  0x00007ffff7865398 in __GI_abort () at abort.c:90
        save_stage = 2
        act = {__sigaction_handler = {sa_handler = 0x7fffffffed63, sa_sigaction = 0x7fffffffed63}, sa_mask = {__val = {140737347406985, 
              140736243031577, 1287, 0, 140737346129009, 0, 0, 0, 4, 140736097717040, 0, 0, 0, 140737347406355, 140737354092544, 
              140737347422464}}, sa_flags = -1245323176, sa_restorer = 0x7fffb5c5e240 <__PRETTY_FUNCTION__.5696>}
        sigs = {__val = {32, 0 <repeats 15 times>}}
#2  0x00007ffff785b272 in __assert_fail_base (fmt=0x7ffff7998900 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", 
    assertion=assertion at entry=0x7fffb5c5e058 "mutex->owner == pj_thread_this()", file=file at entry=0x7fffb5c5de19 "../src/pj/os_core_unix.c", 
    line=line at entry=1287, function=function at entry=0x7fffb5c5e240 <__PRETTY_FUNCTION__.5696> "pj_mutex_unlock") at assert.c:92
        str = 0x324c2f0 "P\331$\003"
        total = 4096
#3  0x00007ffff785b322 in __GI___assert_fail (assertion=0x7fffb5c5e058 "mutex->owner == pj_thread_this()", 
    file=0x7fffb5c5de19 "../src/pj/os_core_unix.c", line=1287, function=0x7fffb5c5e240 <__PRETTY_FUNCTION__.5696> "pj_mutex_unlock")
    at assert.c:101
No locals.
#4  0x00007fffb5c4d320 in pj_mutex_unlock () from /usr/lib/libpj.so
No symbol table info available.
#5  0x00007fffb5c4d465 in pj_atomic_get () from /usr/lib/libpj.so
No symbol table info available.
#6  0x00007fffb7dd5200 in pjsip_tx_data_dec_ref () from /usr/lib/libpjsip.so
No symbol table info available.
#7  0x00007fffb7de191d in tsx_destroy () from /usr/lib/libpjsip.so
No symbol table info available.
#8  0x00007fffb7de1ce0 in tsx_set_state () from /usr/lib/libpjsip.so
No symbol table info available.
#9  0x00007fffb7de2cd3 in tsx_on_state_terminated () from /usr/lib/libpjsip.so
No symbol table info available.
#10 0x00007fffb7de16b6 in tsx_timer_callback () from /usr/lib/libpjsip.so
No symbol table info available.
#11 0x00007fffb5c5d507 in pj_timer_heap_poll () from /usr/lib/libpj.so
No symbol table info available.
#12 0x00007fffb7dcf4a4 in pjsip_endpt_handle_events2 () from /usr/lib/libpjsip.so
No symbol table info available.
#13 0x00007fffb466e488 in monitor_thread_exec (endpt=<optimized out>) at res_sip.c:1638
        delay = {sec = 0, msec = 10}
#14 0x00007fffb5c4d52a in thread_main () from /usr/lib/libpj.so
No symbol table info available.
#15 0x00007ffff636ce0e in start_thread (arg=0x7fffad1c9700) at pthread_create.c:311
        __res = <optimized out>
        pd = 0x7fffad1c9700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140736097720064, 5832730091619965136, 1, 140737488344576, 4096, 140736097720064, 
                -5832901332526343984, -5832749271269287728}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, 
              cleanup = 0x0, canceltype = 0}}}
        not_first_call = 0
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#16 0x00007ffff791593d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

    
> Asterisk crashes inside pjsip when an address is unreachable
> ------------------------------------------------------------
>
>                 Key: ASTERISK-22188
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-22188
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_gulp
>    Affects Versions: 12
>         Environment: chan_gulp/pjsip setup to register to a server whose network isn't available.
>            Reporter: Kinsey Moore
>
> [bob]
> type=auth
> username=bob
> password=bob
> [bob]
> type=registration
> server_uri=sip:bob at vita
> client_uri=sip:bob at 10.24.20.81
> outbound_auth=bob
> expiration=10
> Assuming 10.24.20.81 is not on an accessible network, this crashes. Backtrace below:
> [edit - backtrace removed and attached]

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list