Fwd: PJSIP crash on NOTIFY event - PJSIP Version 2.5.1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi.

Any update on this issue ? I'm having the same problem.

Apparently it's a bug in PJSIP API, because as we can see in the core dump none of the userland classes and methods are involved in the backtrace.

regards,
Marcio


-------- Mensagem encaminhada --------
Assunto: PJSIP crash on NOTIFY event - PJSIP Version 2.5.1
Data: Thu, 7 Jul 2016 18:11:26 -0300
De: Nielsen Bento Gonzaga <nielsenbgonzaga@xxxxxxxxx>
Responder a: pjsip list <pjsip@xxxxxxxxxxxxxxx>
Para: pjsip@xxxxxxxxxxxxxxx


Dear,

We use PJSIP in a recording application of SIP client's, using a trunk with
a SIP Proxy. We use SUBSCRIBER method to receive some events from this
clients.
But sometimes the application crash unexpectedly.

The field *pjsua_buddy_config::uri* is the *sip contact* of each agent that
connects to the SIP proxy that send me NOTIFY's.

Best Regards
Gonzaga


GDB Backtrace:

Reading symbols from /usr/lib/libboost_thread.so.1.42.0...(no debugging
symbols found)...done.
Loaded symbols for /usr/lib/libboost_thread.so.1.42.0
Reading symbols from /usr/lib/libpq.so.5...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libpq.so.5
Reading symbols from /lib/libbsd.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib/libbsd.so.0
Reading symbols from /usr/lib/libboost_filesystem.so.1.42.0...(no debugging
symbols found)...done.
Loaded symbols for /usr/lib/libboost_filesystem.so.1.42.0
Reading symbols from /usr/lib/libboost_system.so.1.42.0...(no debugging
symbols found)...done.
Loaded symbols for /usr/lib/libboost_system.so.1.42.0
Reading symbols from /usr/lib/libboost_regex.so.1.42.0...(no debugging
symbols found)...done.
Loaded symbols for /usr/lib/libboost_regex.so.1.42.0
Reading symbols from /usr/lib/libpqxx-3.0.so...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libpqxx-3.0.so
Reading symbols from /usr/lib/libstdc++.so.6...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libstdc++.so.6
Reading symbols from /usr/lib/i686/cmov/libssl.so.0.9.8...(no debugging
symbols found)...done.
Loaded symbols for /usr/lib/i686/cmov/libssl.so.0.9.8
Reading symbols from /usr/lib/i686/cmov/libcrypto.so.0.9.8...(no debugging
symbols found)...done.
Loaded symbols for /usr/lib/i686/cmov/libcrypto.so.0.9.8
Reading symbols from /lib/libuuid.so.1...(no debugging symbols
found)...done.
Loaded symbols for /lib/libuuid.so.1
Reading symbols from /lib/i686/cmov/librt.so.1...(no debugging symbols
found)...done.
Loaded symbols for /lib/i686/cmov/librt.so.1
Reading symbols from /lib/i686/cmov/libpthread.so.0...(no debugging symbols
found)...done.
Loaded symbols for /lib/i686/cmov/libpthread.so.0
Reading symbols from /usr/local/lib/libippsc.so.6.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/libippsc.so.6.1
Reading symbols from /usr/local/lib/libipps.so.6.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/libipps.so.6.1
Reading symbols from /usr/local/lib/libippcore.so.6.1...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/libippcore.so.6.1
Reading symbols from /usr/local/lib/libippsr.so.6.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/libippsr.so.6.1
Reading symbols from /usr/lib/libguide.so...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libguide.so
Reading symbols from /lib/i686/cmov/libm.so.6...(no debugging symbols
found)...done.
Loaded symbols for /lib/i686/cmov/libm.so.6
Reading symbols from /lib/libgcc_s.so.1...(no debugging symbols
found)...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/i686/cmov/libc.so.6...(no debugging symbols
found)...done.
Loaded symbols for /lib/i686/cmov/libc.so.6
Reading symbols from /usr/lib/libkrb5.so.3...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libkrb5.so.3
Reading symbols from /lib/libcom_err.so.2...(no debugging symbols
found)...done.
Loaded symbols for /lib/libcom_err.so.2
Reading symbols from /usr/lib/libgssapi_krb5.so.2...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libgssapi_krb5.so.2
Reading symbols from /lib/i686/cmov/libcrypt.so.1...(no debugging symbols
found)...done.
Loaded symbols for /lib/i686/cmov/libcrypt.so.1
Reading symbols from /usr/lib/libldap_r-2.4.so.2...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libldap_r-2.4.so.2
Reading symbols from /usr/lib/libicudata.so.44...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libicudata.so.44
Reading symbols from /usr/lib/libicui18n.so.44...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libicui18n.so.44
Reading symbols from /usr/lib/libicuuc.so.44...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libicuuc.so.44
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols
found)...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/i686/cmov/libdl.so.2...(no debugging symbols
found)...done.
Loaded symbols for /lib/i686/cmov/libdl.so.2
Reading symbols from /usr/lib/libz.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /usr/local/lib/libsvml.so...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/libsvml.so
Reading symbols from /usr/local/lib/libimf.so...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/libimf.so
Reading symbols from /usr/local/lib/libirc.so...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/libirc.so
Reading symbols from /usr/local/lib/libiomp5.so...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/libiomp5.so
Reading symbols from /usr/lib/libk5crypto.so.3...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libk5crypto.so.3
Reading symbols from /usr/lib/libkrb5support.so.0...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libkrb5support.so.0
Reading symbols from /lib/libkeyutils.so.1...(no debugging symbols
found)...done.
Loaded symbols for /lib/libkeyutils.so.1
Reading symbols from /lib/i686/cmov/libresolv.so.2...(no debugging symbols
found)...done.
Loaded symbols for /lib/i686/cmov/libresolv.so.2
Reading symbols from /usr/lib/liblber-2.4.so.2...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/liblber-2.4.so.2
Reading symbols from /usr/lib/libsasl2.so.2...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libsasl2.so.2
Reading symbols from /usr/lib/libgnutls.so.26...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libgnutls.so.26
Reading symbols from /usr/lib/libtasn1.so.3...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libtasn1.so.3
Reading symbols from /usr/lib/libgcrypt.so.11...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libgcrypt.so.11
Reading symbols from /usr/lib/libgpg-error.so.0...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libgpg-error.so.0
Reading symbols from /usr/local/lib/libippsrp8.so.6.1...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/libippsrp8.so.6.1
Reading symbols from /usr/local/lib/libippsp8.so.6.1...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/libippsp8.so.6.1
Reading symbols from /usr/local/lib/libippscp8.so.6.1...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/libippscp8.so.6.1
Reading symbols from /lib/i686/cmov/libnss_compat.so.2...(no debugging
symbols found)...done.
Loaded symbols for /lib/i686/cmov/libnss_compat.so.2
Reading symbols from /lib/i686/cmov/libnsl.so.1...(no debugging symbols
found)...done.
Loaded symbols for /lib/i686/cmov/libnsl.so.1
Reading symbols from /lib/i686/cmov/libnss_nis.so.2...(no debugging symbols
found)...done.
Loaded symbols for /lib/i686/cmov/libnss_nis.so.2
Reading symbols from /lib/i686/cmov/libnss_files.so.2...(no debugging
symbols found)...done.
Loaded symbols for /lib/i686/cmov/libnss_files.so.2
Error while mapping shared library sections:
`%s' failed!
: Arquivo ou diretório não encontrado.
Core was generated by `/usr/sbin/XXXXXXXXXXXXXXX'.
Program terminated with signal 11, Segmentation fault.
#0  0xb7283e80 in ?? () from /lib/i686/cmov/libc.so.6
(gdb) bt
#0  0xb7283e80 in ?? () from /lib/i686/cmov/libc.so.6
#1  0xb7285c8c in ?? () from /lib/i686/cmov/libc.so.6
#2  0x081c1e74 in default_block_alloc ()
#3  0x081b799a in pj_pool_allocate_find ()
#4  0x081b7bc1 in pj_pool_calloc ()
#5  0x08168e7b in xml_parse_node ()
#6  0x08169070 in xml_parse_node ()
#7  0x08169070 in xml_parse_node ()
#8  0x08169009 in xml_parse_node ()
#9  0x0816933b in pj_xml_parse ()
#10 0x080e70c0 in pjpidf_parse ()
#11 0x080e4525 in pjsip_pres_parse_pidf2 ()
#12 0x080e4682 in pjsip_pres_parse_pidf ()
#13 0x080e3682 in pres_on_evsub_rx_notify ()
#14 0x080dfc15 in mod_evsub_on_tsx_state ()
#15 0x0810ce22 in pjsip_dlg_on_tsx_state ()
#16 0x0811064c in mod_ua_on_tsx_state ()
#17 0x08109832 in tsx_set_state ()
#18 0x0810a173 in tsx_on_state_null ()
#19 0x081078ba in pjsip_tsx_recv_msg ()
#20 0x081101bf in pjsip_dlg_on_rx_request ()
#21 0x08110d57 in mod_ua_on_rx_request ()
#22 0x080f3a54 in pjsip_endpt_process_rx_data ()
#23 0x080f4613 in endpt_on_rx_msg ()
#24 0x080f92f4 in pjsip_tpmgr_receive_packet ()
#25 0x080fcf7c in udp_on_read_complete ()
#26 0x081ac7e0 in ioqueue_dispatch_read_event ()
#27 0x081adc9a in pj_ioqueue_poll ()
#28 0x080f3bbb in pjsip_endpt_handle_events2 ()
#29 0x080bb463 in worker_thread ()
#30 0x081b0334 in thread_main ()
#31 0xb744b955 in start_thread () from /lib/i686/cmov/libpthread.so.0
#32 0xb72e1e7e in epoll_wait () from /lib/i686/cmov/libc.so.6
#33 0xb145ab70 in ?? ()
(gdb)

Last SIP Package dumped in application log:

NOTIFY sip:192.168.101.61:5060;ob SIP/2.0
Via: SIP/2.0/UDP 192.168.101.171:5060;branch=z9hG4bK5e655754499253
From: sip:2518@192.168.101.171;tag=1825093684
To: <sip:192.168.101.61>;tag=G1IKbzTOVqO5sniQZJo.zKedWoankhbq
Call-ID: 5kBb1lYX0YFU80h65ilNAIqDhUl3xOUs
CSeq: 649 NOTIFY
Max-Forwards: 70
Date: Thu, 07 Jul 2016 14:32:13 GMT
User-Agent: XXXXXXX
Event: presence
Subscription-State: active;expires=600
Contact: <sip:2518@192.168.101.171:5060> <sip:2518@192.168.101.171:5060>
Content-Type: application/pidf+xml
Content-Length: 839

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<presence xmlns="urn:ietf:params:xml:ns:pidf" entity=
"sip:2518@192.168.101.171" <sip:2518@192.168.101.171>
xmlns:e="urn:ietf:params:xml:ns:pidf:status:rpid"
xmlns:dm="urn:ietf:params:xml:ns:pidf:data-model"
xmlns:ce="urn:XXXXX:params:xml:ns:pidf:rpid"
xmlns:sc="urn:ietf:params:xml:ns:pidf:servcaps">
  <dm:person>
    <status>
    <basic>closed</basic>
    </status>
    <e:activities>
      <e:on-the-phone/>
    </e:activities>
  </dm:person>
  <tuple id="cmp-2-10925931">
    <status>
      <basic>closed</basic>
      <e:activities>
        <e:on-the-phone/>
      </e:activities>
    </status>
    <sc:servcaps>
      <sc:audio>true</sc:audio>
    </sc:servcaps>
    <contact priority="0.8">sip:2518@192.168.101.171:5060</contact>
    <timestamp>2016-07-07T14:30:57Z</timestamp>
  </tuple>
</presence>


_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux