<h3>Description</h3>
<p>Kamailio P-CSCF is crashing during IMS client login. I am using Boghe IMS client,</p>
<h3>Troubleshooting</h3>
<h4>Reproduction</h4>
<h4>Debugging Data</h4>
<pre><code>(gdb) list
352 } else { //contact already exists - update
353 LM_DBG("Contact already exists - not doing anything for now\n");
354 }
355
356 // Update security parameters
357 if(ul.update_temp_security(_d, sec_params->type, sec_params, pcontact) != 0)
358 {
359 LM_ERR("Error updating temp security\n");
360 }
361
</code></pre>
<h4>Log Messages</h4>
<pre><code>[root@8bd3221bd31e pcscf]# kamailio -f /usr/local/src/kamailio-5.1/kamailio/misc/examples/ims/pcscf/kamailio.cfg -E -E -dd
0(32522) INFO: <core> [main.c:1939]: main(): private (per process) memory: 8388608 bytes
0(32522) INFO: <core> [core/ppcfg.c:82]: pp_subst_add(): ### added subst expression: /NETWORKNAME/mnc001.mcc001.3gppnetwork.org/
0(32522) INFO: <core> [core/ppcfg.c:82]: pp_subst_add(): ### added subst expression: /HOSTNAME/pcscf.mnc001.mcc001.3gppnetwork.org/
loading modules under config path: /usr/local/lib64/kamailio/modules/
0(32522) INFO: pv [pv_shv.c:60]: shvar_init_locks(): locks array size 16
0(32522) INFO: <core> [core/sctp_core.c:75]: sctp_core_check_support(): SCTP API not enabled - if you want to use it, load sctp module
Listening on
udp: 172.17.0.3 [172.17.0.3]:5060 advertise net1.test:5060
Aliases:
*: pcscf.net1.test:*
WARNING: no fork mode
0(32522) INFO: rr [../outbound/api.h:52]: ob_load_api(): unable to import bind_ob - maybe module is not loaded
0(32522) INFO: rr [rr_mod.c:177]: mod_init(): outbound module not available
0(32522) INFO: auth [auth_mod.c:347]: mod_init(): qop set, but nonce-count (nc_enabled) support disabled
0(32522) INFO: path [../outbound/api.h:52]: ob_load_api(): unable to import bind_ob - maybe module is not loaded
0(32522) INFO: path [path_mod.c:153]: mod_init(): outbound module not available
0(32522) INFO: ims_usrloc_pcscf [hslot.c:62]: ul_init_locks(): locks array size 512
0(32522) ERROR: rtpengine [rtpengine.c:2649]: select_rtpp_set(): no rtpp_set_list->rset_first
0(32522) NOTICE: rtpengine [rtpengine.c:1588]: mod_init(): Default rtpp set 0 NOT found
0(32522) WARNING: tm [tm.c:513]: fixup_routes(): t_on_failure("NATMANAGE"): empty/non existing route
0(32522) INFO: <core> [core/udp_server.c:153]: probe_max_receive_buffer(): SO_RCVBUF is initially 65535
0(32522) INFO: <core> [core/udp_server.c:205]: probe_max_receive_buffer(): SO_RCVBUF is finally 524280
0(32522) ERROR: <script>: event_route[htable:mod-init] {
4(32529) INFO: ctl [io_listener.c:210]: io_listen_loop(): io_listen_loop: using epoll_lt as the io watch method (auto detected)
5(32534) WARNING: ims_usrloc_pcscf [usrloc_db.c:61]: connect_db(): DB connection already open... continuing
0(32522) WARNING: ims_usrloc_pcscf [usrloc_db.c:61]: connect_db(): DB connection already open... continuing
7(32536) INFO: jsonrpcs [jsonrpcs_sock.c:443]: jsonrpc_dgram_process(): a new child 0/32536
0(32522) ERROR: <script>: REGISTER (sip:bob@net1.test (10.0.9.101:61728) to sip:bob@net1.test, d171ff89-efcb-de9f-9eb6-8dfdbf8b7221)
0(32522) INFO: rr [rr_mod.c:445]: pv_get_route_uri_f(): No route header present.
0(32522) INFO: ims_registrar_pcscf [sec_agree.c:255]: cscf_get_security(): No security parameters found
0(32522) ERROR: ims_registrar_pcscf [save.c:339]: save_pending(): Will save pending contact without security parameters
Segmentation fault
</code></pre>
<h4>SIP Traffic</h4>
<pre><code>................
08:53:01.511644 IP 10.0.9.101.64932 > 172.17.0.3.5060: SIP: REGISTER sip:net1.test SIP/2.0
E...#...~.V.
. e...........pREGISTER sip:net1.test SIP/2.0
Via: SIP/2.0/UDP 10.0.9.101:64932;branch=z9hG4bK537357731;rport
From: <sip:bob@net1.test>;tag=537331589
To: <sip:bob@net1.test>
Contact: <sip:bob@10.0.9.101:64932;transport=udp>;expires=600000;+g.oma.sip-im;language="en,fr";+g.3gpp.smsip;+g.oma.sip-im.large-message;audio;+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-application.ims.iari.gsma-vs";+g.3gpp.cs-voice
Call-ID: 4175e599-11d6-fd99-cdaf-225973666aa6
CSeq: 16432 REGISTER
Content-Length: 0
Max-Forwards: 70
Allow: INVITE, ACK, CANCEL, BYE, MESSAGE, OPTIONS, NOTIFY, PRACK, UPDATE, REFER
Privacy: none
P-Access-Network-Info: ADSL;utran-cell-id-3gpp=00000000
User-Agent: IM-client/OMA1.0 Boghe-Win32/v2.0.153.836
P-Preferred-Identity: <sip:bob@net1.test>
Supported: path
................
08:53:01.512031 IP 172.17.0.3.5060 > 10.0.9.101.64932: SIP: SIP/2.0 100 Trying
E..F.M..@.......
. e.....2..SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.0.9.101:64932;branch=z9hG4bK537357731;rport=64932;received=10.0.9.101
From: <sip:bob@net1.test>;tag=537331589
To: <sip:bob@net1.test>
Call-ID: 4175e599-11d6-fd99-cdaf-225973666aa6
CSeq: 16432 REGISTER
Server: TelcoSuite Proxy-CSCF
Content-Length: 0
</code></pre>
<h3>Possible Solutions</h3>
<h3>Additional Information</h3>
<ul>
<li><strong>Kamailio Version</strong> - output of <code>kamailio -v</code></li>
</ul>
<pre><code>[root@8bd3221bd31e pcscf]# kamailio -v
version: kamailio 5.2.0-dev5 (x86_64/linux)
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown
compiled on 05:45:36 May 8 2018 with gcc 4.8.5
</code></pre>
<ul>
<li><strong>Operating System</strong>:</li>
</ul>
<pre><code>Linux 8bd3221bd31e 3.10.0-229.el7.x86_64 #1 SMP Fri Mar 6 11:36:42 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
</code></pre>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/1526">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36Ze888ZE5TlUA_1LYQrCMlA-9fbFGks5twWBqgaJpZM4T2R_g">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZYHQUamACc4IcBhRz4PMkTkCEBZDks5twWBqgaJpZM4T2R_g.gif" height="1" width="1" alt="" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/kamailio/kamailio/issues/1526"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"P-CSCF crash during client login (#1526)"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1526"}}}</script>