Bogdan,<div>Here's my bt full. Towards the top there is a cache_store line. The fifo operation I'm waiting on is a profile_get_values.. Interesting that I don't call cache_store in any of these hung opensipsctl calls.</div>
<div><div><br></div><div># ps ax|grep opensipsctl<br></div><div>17929 ? S 0:00 /bin/bash /usr/local/sbin/opensipsctl fifo profile_get_values trunk</div><div>17974 ? S 0:00 /bin/bash /usr/local/sbin/opensipsctl fifo profile_get_values trunk</div>
<div>17976 ? S 0:00 /bin/bash /usr/local/sbin/opensipsctl fifo profile_get_values trunk</div><div>27643 ? S 0:00 /bin/bash /usr/local/sbin/opensipsctl fifo profile_get_size inbound</div><div>27687 ? S 0:00 /bin/bash /usr/local/sbin/opensipsctl fifo profile_get_size inbound</div>
<div>27688 ? S 0:00 /bin/bash /usr/local/sbin/opensipsctl fifo profile_get_size inbound</div><div><br></div><div><br></div></div><div>I took the mi_fifo ps for the gdb.. </div><div><br></div><div><div>0x00000034c1ac54f0 in __read_nocancel () from /lib64/libc.so.6</div>
<div>(gdb) bt full</div><div>#0 0x00000034c1ac54f0 in __read_nocancel () from /lib64/libc.so.6</div><div>No symbol table info available.</div><div>#1 0x00000034c1a6cbb7 in _IO_new_file_underflow () from /lib64/libc.so.6</div>
<div>No symbol table info available.</div><div>#2 0x00000034c1a6d57e in _IO_default_uflow_internal () from /lib64/libc.so.6</div><div>No symbol table info available.</div><div>#3 0x00000034c1a62664 in _IO_getline_info_internal () from /lib64/libc.so.6</div>
<div>No symbol table info available.</div><div>#4 0x00000034c1a61509 in fgets () from /lib64/libc.so.6</div><div>No symbol table info available.</div><div>#5 0x00002b68c3c2e619 in mi_read_line (b=0x79cd50 ":cache_store", max=1024, stream=0x1e81b110, read=0x7fffe834bad4) at fifo_fnc.c:255</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>retry_cnt = 0</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>len = <value optimized out></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>__FUNCTION__ = "mi_read_line"</div>
<div>#6 0x00002b68c3c2f52f in mi_fifo_server (fifo_stream=0x1e81b110) at fifo_fnc.c:400</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>mi_cmd = (struct mi_root *) 0x7a1568</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>mi_rpl = (struct mi_root *) 0x7a17c0</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>hdl = (struct mi_handler *) 0x0</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>line_len = 35</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>file_sep = 0x79cd5c ""</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>command = 0x79cd51 "cache_store"</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>file = 0x79d160 "/tmp/opensips_receiver_1372"</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>f = (struct mi_cmd *) 0x7995e8</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>reply_stream = (FILE *) 0x1e82e7e0</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>__FUNCTION__ = "mi_fifo_server"</div>
<div>#7 0x00002b68c3c31001 in fifo_process (rank=<value optimized out>) at mi_fifo.c:212</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>fifo_stream = (FILE *) 0x1e81b110</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>__FUNCTION__ = "fifo_process"</div>
<div>#8 0x000000000046b4bc in start_module_procs () at sr_module.c:585</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>m = (struct sr_module *) 0x76ca88</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>n = 0</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>l = 0</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>x = <value optimized out></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>__FUNCTION__ = "start_module_procs"</div>
<div>#9 0x000000000042745d in main (argc=5, argv=0x7fffe834bcf8) at main.c:823</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>cfg_log_stderr = <value optimized out></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>cfg_stream = (FILE *) 0x1e80c010</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>c = <value optimized out></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>r = 8</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>tmp = 0x7fffe834dbe4 ""</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>tmp_len = <value optimized out></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>port = <value optimized out></div><div>
<span class="Apple-tab-span" style="white-space:pre">        </span>proto = <value optimized out></div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>ret = <value optimized out></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>seed = 2557210813</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>rfd = <value optimized out></div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>__FUNCTION__ = "main"</div><div><br></div><br><div class="gmail_quote">On Thu, Sep 17, 2009 at 11:10 AM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Brett,<br>
<br>
if you get a hang, do try to attach with gdb to the fifo proc (you can<br>
do a "fifo ps" in the beginning to see the PID of the fifo process).<br>
<br>
A backtrace of the fifo proc will help in understanding the issue.<br>
<br>
BTW - what about cpu load ?<br>
<br>
Regards,<br>
Bogdan<br>
<div><div></div><div class="h5"><br>
Brett Nemeroff wrote:<br>
> Hello list,<br>
> I periodically call opensipsctl fifo profile_get_values <profile<br>
> name>. Manually, it always works great.. but called from cron every<br>
> minute, it frequently hangs indefinitely until I kill it. Often I run<br>
> ps ax and see about 5 of them in there.<br>
><br>
> Running 1.5.3. Any ideas?<br>
> -Brett<br>
><br>
</div></div>> ------------------------------------------------------------------------<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>
><br>
<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>
</blockquote></div><br></div>