<div dir="ltr"><div>Greetings,</div><div><br></div><div>the attached shows the full backtrace of core file generated by Kamailio 5.1.4 after receiving a REGISTER message.</div><div><br></div><div>Thanks and best regards</div><div>Abdul<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 22, 2018 at 12:51 PM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p>Hello,</p>
<p>the error message from dispatcher is not relevant for runtime, it
is saying that you have to set some parameters to dispatcher
module (those with avp names) because you use
ds_next_dst()/ds_next_domain() -- without those parameters, you
can't do re-routing using failure_route and dispatcher functions.</p>
<p>From the logs, it is nothing showing the cause of the issue,
could be your own modules or something else.</p>
<p>Try to generate a corefile and then get the backtrace with gdb.
To generate the corefile:</p>
<p> - run "ulimit -c unlimited" in the terminal where you start
kamailio<br>
- run kamailio as root user<br>
- reproduce the issue<br>
- there should be a log message saying that the "core was
generated"<br>
- get the output of "bt full" from gdb inspecting the core file</p>
<p>Cheers,<br>
Daniel<br>
</p><div><div class="h5">
<br>
<div class="m_-6481860490563899663moz-cite-prefix">On 22.08.18 11:40, Abdulaziz Alghosh
wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<div dir="ltr">
<div>Hi Everyone,</div>
<div><br>
</div>
<div>I am trying to start kamailio 5.1.4 with two own modules.
After /etc/init.d/kamailio start , I am getting one error of
the dispatcher module and bunch of warrnings because of missed
reply and failure routes. <br>
</div>
<div><br>
</div>
<div>The first error before crashing is:</div>
<div><br>
</div>
<div>ERROR: dispatcher [dispatcher.c:814]: ds_warn_fixup():
failover functions used, but required AVP parameters are NULL
-- feature disabled</div>
<div><br>
</div>
<div><br>
</div>
<div>Later on, when I am trying to register a user (from a soft
phone) i am getting the following:</div>
<div><br>
</div>
<div>ERROR: sl [sl_funcs.c:362]: sl_reply_error(): stateless
error reply used: I'm terribly sorry, server error occurred
(1/SL)<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6960]: CRITICAL:
<core> [core/pass_fd.c:277]: receive_fd(): EOF on 20<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6935]: ALERT:
<core> [main.c:746]: handle_sigs(): child process 6942
exited by a signal 11<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6935]: ALERT:
<core> [main.c:749]: handle_sigs(): core was not
generated<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6935]: INFO: <core>
[main.c:771]: handle_sigs(): terminating due to SIGCHLD<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6959]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6958]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6957]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6956]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6955]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6954]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6953]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6950]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6941]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6944]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6948]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6951]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6946]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6952]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6943]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6949]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6947]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6938]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6937]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6940]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6939]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a kernel: [296301.271457] kamailio[6942]:
segfault at 0 ip (null) sp 00007fffb3ddf368 error 14
in kamailio[400000+442000]<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6945]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6960]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6936]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6935]: ERROR: jsonrpcs
[jsonrpcs_fifo.c:594]: jsonrpc_fifo_destroy(): cannot delete
the fifo (/tmp/kamailio_jsonrpc.fifo): Operation not permitted<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6935]: ERROR: jsonrpcs
[jsonrpcs_sock.c:511]: jsonrpc_dgram_destroy(): cannot delete
the socket (/tmp/kamailio_rpc.sock): Operation not permitted<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6935]: INFO: <core>
[core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not
initialized</div>
<div><br>
</div>
<div>Regarding to the first error of the dispatcher module i
could not find out which calibration i can follow with its
parameters to get rid of this error.<br>
</div>
<div><br>
</div>
<div>Regarding the jasonrpcs and the last two erros, here are my
configuration in kamailio.cfg:</div>
<div><br>
</div>
<div>#/* set the path to RPC fifo control file */<br>
modparam("jsonrpcs", "fifo_name",
"/tmp/kamailio_jsonrpc.fifo")<br>
modparam("jsonrpcs", "fifo_mode", 0755)<br>
modparam("jsonrpcs", "fifo_group", "kamailio")<br>
modparam("jsonrpcs", "fifo_user", "kamailio")<br>
<br>
<br>
#/* set the path to RPC unix socket control file */<br>
modparam("jsonrpcs", "dgram_socket", "/tmp/kamailio_rpc.sock")<br>
modparam("jsonrpcs", "dgram_mode", 0755)<br>
modparam("jsonrpcs", "dgram_user", "kamailio")<br>
modparam("jsonrpcs", "dgram_group", "kamailio")</div>
<div><br>
</div>
<div>I think the root cause is even beyond the dispatcher and
jsonrpcs modules setting.</div>
<div><br>
</div>
<div>Please check the attached where you can find my complete
log file after starting Kamailio.</div>
<div><br>
</div>
<div>Best regards</div>
<div>Abdulaziz<br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
<br>
<fieldset class="m_-6481860490563899663mimeAttachmentHeader"></fieldset>
<br>
</div></div><pre>______________________________<wbr>_________________
Kamailio (SER) - Users Mailing List
<a class="m_-6481860490563899663moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>
<a class="m_-6481860490563899663moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><span class="HOEnZb"><font color="#888888">
</font></span></pre><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<pre class="m_-6481860490563899663moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="m_-6481860490563899663moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
<a class="m_-6481860490563899663moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="m_-6481860490563899663moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio World Conference -- <a class="m_-6481860490563899663moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre>
</font></span></div>
</blockquote></div><br></div>