I have no core file for now:<br><br>Dec 22 11:02:08 srv opensips[26182]: INFO:core:handle_sigs: core was not generated<br><br> Strange - "ulimit -c unlimited" and calls to setrlimit() in OpenSIPS produce no core file.<br>
<br> NOTIFY packets come from clients. Also, Opensips sometimes sends keepalive NOTIFY packets, but my route(5) is called inside "uri == myself" section.<br><br><div class="gmail_quote">2009/12/22 Anca Vamanu <span dir="ltr"><<a href="mailto:anca@opensips.org">anca@opensips.org</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Alexander,<br>
<br>
Can you please investigate the core with gdb and print here the output.<br>
It seems awkward to me that you expect to receive Notifies and reply to<br>
them. Wat kind of notifies are those? Sent by clients or the presence<br>
server?<br>
<br>
Regards,<br>
Anca<br>
<div><div></div><div class="h5"><br>
<br>
<br>
Alexander wrote:<br>
> Hi all.<br>
><br>
> I've tried to update to Opensips 1.6.1, but encountered the<br>
> following problem. Opensips starts successfully, but soon almost all<br>
> it's processes die one by one and only two processes remain.<br>
> For example, if right after start we have:<br>
><br>
> # ps ax | grep opens<br>
> 26182 ? S 0:00 ./opensips -k 0x11110204 -u opensips<br>
> 26183 ? S 0:00 ./opensips -k 0x11110204 -u opensips<br>
> 26184 ? S 0:00 ./opensips -k 0x11110204 -u opensips<br>
> 26185 ? S 0:00 ./opensips -k 0x11110204 -u opensips<br>
> 26186 ? S 0:00 ./opensips -k 0x11110204 -u opensips<br>
> 26187 ? S 0:00 ./opensips -k 0x11110204 -u opensips<br>
> 26188 ? S 0:00 ./opensips -k 0x11110204 -u opensips<br>
> 26189 ? S 0:00 ./opensips -k 0x11110204 -u opensips<br>
> 26190 ? S 0:00 ./opensips -k 0x11110204 -u opensips<br>
> 26191 ? S 0:00 ./opensips -k 0x11110204 -u opensips<br>
> 26192 ? S 0:00 ./opensips -k 0x11110204 -u opensips<br>
> 26193 ? S 0:00 ./opensips -k 0x11110204 -u opensips<br>
> 26194 ? S 0:00 ./opensips -k 0x11110204 -u opensips<br>
> 26195 ? S 0:00 ./opensips -k 0x11110204 -u opensips<br>
> 26196 ? S 0:00 ./opensips -k 0x11110204 -u opensips<br>
> 26197 ? S 0:00 ./opensips -k 0x11110204 -u opensips<br>
> 26198 ? S 0:00 ./opensips -k 0x11110204 -u opensips<br>
> 26199 ? S 0:00 ./opensips -k 0x11110204 -u opensips<br>
> 26200 ? S 0:00 ./opensips -k 0x11110204 -u opensips<br>
> 26201 ? S 0:00 ./opensips -k 0x11110204 -u opensips<br>
> 26202 ? S 0:00 ./opensips -k 0x11110204 -u opensips<br>
> 26203 ? S 0:00 ./opensips -k 0x11110204 -u opensips<br>
> 26204 ? S 0:00 ./opensips -k 0x11110204 -u opensips<br>
> 26205 ? S 0:00 ./opensips -k 0x11110204 -u opensips<br>
> 26206 ? S 0:00 ./opensips -k 0x11110204 -u opensips<br>
> 26207 ? S 0:00 ./opensips -k 0x11110204 -u opensips<br>
> 26208 ? S 0:00 ./opensips -k 0x11110204 -u opensips<br>
><br>
> When processes die, we have only:<br>
><br>
> #ps ax | grep opens<br>
> 26182 ? S 0:00 ./opensips -k 0x11110204 -u opensips<br>
> 26184 ? S 0:00 ./opensips -k 0x11110204 -u opensips<br>
><br>
> If I set debug=6, the following is written to /var/log/messages:<br>
><br>
> Dec 22 11:02:03 srv rtpproxy[17011]: INFO:rxmit_packets: caller's<br>
</div></div>> address filled in: <a href="http://195.182.195.206:1024" target="_blank">195.182.195.206:1024</a> <<a href="http://195.182.195.206:1024" target="_blank">http://195.182.195.206:1024</a>><br>
<div class="im">> (RTP)<br>
> Dec 22 11:02:03 srv opensips[26184]: Route 5 - NOTIFY<br>
> Dec 22 11:02:05 srv opensips[26185]: Route 5 - PUBLISH<br>
> Dec 22 11:02:06 srv opensips[26183]: Route 5 - NOTIFY<br>
> Dec 22 11:02:06 srv opensips[26185]: Route 5 - NOTIFY<br>
> Dec 22 11:02:06 srv opensips[26185]: Route 5 - NOTIFY<br>
> Dec 22 11:02:06 srv opensips[26186]: Route 5 - NOTIFY<br>
> Dec 22 11:02:06 srv opensips[26186]: Route 5 - NOTIFY<br>
> Dec 22 11:02:08 srv rtpproxy[17011]: INFO:handle_command: lookup on<br>
> ports 36664/35096, session timer restarted<br>
> Dec 22 11:02:08 srv rtpproxy[17011]: INFO:handle_command: pre-filling<br>
</div>> callee's address with <a href="http://87.251.142.50:5006" target="_blank">87.251.142.50:5006</a> <<a href="http://87.251.142.50:5006" target="_blank">http://87.251.142.50:5006</a>><br>
<div><div></div><div class="h5">> Dec 22 11:02:08 srv opensips[26208]: CRITICAL:core:receive_fd: EOF on 13<br>
> Dec 22 11:02:08 srv opensips[26182]: INFO:core:handle_sigs: child<br>
> process 26186 exited by a signal 11<br>
> Dec 22 11:02:08 srv opensips[26182]: INFO:core:handle_sigs: core was<br>
> not generated<br>
> Dec 22 11:02:08 srv opensips[26182]: INFO:core:handle_sigs:<br>
> terminating due to SIGCHLD<br>
><br>
> As I see, the last message received by process with PID 26186 is<br>
> NOTIFY, and then it crashes.<br>
><br>
> "Route 5 - NOTIFY" is in this block of configuration file:<br>
><br>
> # SUBSCRIBE and PUBLISH Message Handling<br>
> # --------------------------------------<br>
> route[5]<br>
> {<br>
> if (!t_newtran())<br>
> {<br>
> xlog("L_INFO", "Failed to create transaction\n");<br>
> sl_reply_error();<br>
> exit;<br>
> }<br>
><br>
> if (is_method("PUBLISH"))<br>
> {<br>
> xlog("L_INFO", "Route 5 - PUBLISH \n");<br>
> handle_publish();<br>
> }<br>
> else if (is_method("SUBSCRIBE"))<br>
> {<br>
> xlog("L_INFO", "Route 5 - SUBSCRIBE\n");<br>
> handle_subscribe();<br>
> }<br>
> else if (is_method("NOTIFY"))<br>
> {<br>
> xlog("L_INFO", "Route 5 - NOTIFY\n");<br>
> t_reply("200", "OK");<br>
> exit;<br>
> }<br>
><br>
> exit;<br>
> }<br>
><br>
> In main routing logic:<br>
><br>
> if (method == "SUBSCRIBE" || method == "PUBLISH" || method == "NOTIFY")<br>
> {<br>
> route(4);<br>
> return(0);<br>
> }<br>
><br>
> As I see, Opensips sets core dump limit, if it's turned off, but no<br>
> core is produced (OS is CentOS 5.3).<br>
><br>
> What can be wrong? Version 1.6.0 did not crash like this.<br>
</div></div>> ------------------------------------------------------------------------<br>
<div class="im">><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
><br>
<br>
<br>
</div><font color="#888888">--<br>
Anca Vamanu<br>
<a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a><br>
</font><div><div></div><div class="h5"><br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br>