Hello Bogdan,<br><br>nice to see you again !<br clear="all"><br>here the stuff :<br><br>[Thread debugging using libthread_db enabled]<br>Core was generated by `/opt/opensips/sbin/opensips -P /opt/opensips/var/run/opensips.pid -m 256 -u sam'.<br>
Program terminated with signal 8, Arithmetic exception.<br>#0 0x00007f26f086c513 in ds_select_dst (msg=0x80ebe8, set=<optimized out>, alg=0, mode=<optimized out>, <br> max_results=<optimized out>) at dispatch.c:1235<br>
1235 i = (i+1)%(idx->nr-1);<br><br>(gdb) p i<br>$1 = 0<br><br>(gdb) p idx<br>$2 = (ds_set_p) 0x7f26dee90350<br><br>(gdb) l<br>1230 <br>1231 i=ds_id;<br>1232 while ( idx->dlist[i].flags&(DS_INACTIVE_DST|DS_PROBING_DST) )<br>
1233 {<br>1234 if(ds_use_default!=0)<br>1235 i = (i+1)%(idx->nr-1);<br>1236 else<br>1237 i = (i+1)%idx->nr;<br>1238 if(i==ds_id)<br>1239 {<br>
<br><br>I re-tested with a few modifications, like changing IPs in the dispatcher list file, or into the routing logic ("do it simple like in the docs examples"), the same problems still happens :/<br><br>here's the corefile if needed : <a href="http://public.l33.fr/corefile.opensips.tar.gz">http://public.l33.fr/corefile.opensips.tar.gz</a><br>
<br><br>Best regards,<br><br>Samuel MULLER<br>
<br><br><br><div class="gmail_quote">On Tue, Mar 13, 2012 at 2:51 PM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello Samuel,<br>
<br>
In gdb, could you please print the '*idx' and 'i' variables ?<br>
<br>
Thanks and regards,<br>
Bogdan<div><div class="h5"><br>
<br>
<br>
<br>
On 03/07/2012 03:34 PM, Samuel Muller wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hey all,<br>
<br>
I got this crash when testing proxies availability with the dispatcher module :<br>
<br>
$ gdb /opt/opensips/sbin/opensips core<br>
<br>
GNU gdb (GDB) 7.3-debian<br>
This GDB was configured as "x86_64-linux-gnu".<br>
Reading symbols from /opt/opensips/sbin/opensips...<u></u>done.<br>
[New LWP 11580]<br>
<br>
[Thread debugging using libthread_db enabled]<br>
Core was generated by `/opt/opensips/sbin/opensips -P<br>
/opt/opensips/var/run/<u></u>opensips.pid -m 256 -u sam'.<br>
Program terminated with signal 8, Arithmetic exception.<br>
#0 0x00007f87b9b54513 in ds_select_dst (msg=0x80f988, set=<optimized<br>
out>, alg=0,<br>
mode=<optimized out>, max_results=<optimized out>) at dispatch.c:1235<br>
1235 i = (i+1)%(idx->nr-1);<br>
<br>
<br>
in the opensips.cfg :<br>
<br>
modparam("dispatcher","list_<u></u>file","/opt/opensips/etc/<u></u>opensips/dispatcher.list")<br>
modparam("dispatcher","use_<u></u>default",1)<br>
modparam("dispatcher","dst_<u></u>avp","$avp(dp_dst)")<br>
modparam("dispatcher","attrs_<u></u>avp","$avp(dp_attrs)")<br>
modparam("dispatcher","grp_<u></u>avp","$avp(dp_grp)")<br>
modparam("dispatcher","cnt_<u></u>avp","$avp(dp_cnt)")<br>
modparam("dispatcher","hash_<u></u>pvar","$avp(dp_hash)")<br>
modparam("dispatcher","setid_<u></u>pvar","$avp(dp_setid)")<br>
modparam("dispatcher","ds_<u></u>ping_from","<a href="mailto:sip%3Aedge@lab.com" target="_blank">sip:edge@lab.com</a>")<br>
modparam("dispatcher","ds_<u></u>ping_interval",30)<br>
modparam("dispatcher","ds_<u></u>probing_mode",1)<br>
<br>
route {<br>
...<br>
if (!is_method("REGISTER|MESSAGE"<u></u>)) {<br>
record_route(";rr=edge");<br>
}<br>
if (is_method("REGISTER")) {<br>
if (!ds_select_dst("1", "0")) {<br>
ds_mark_dst("p");<br>
ds_select_dst("2", "0");<br>
}<br>
}<br>
if (is_method("INVITE")) {<br>
if (!ds_select_dst("3", "0")) {<br>
ds_mark_dst("p");<br>
ds_select_dst("4", "0");<br>
}<br>
}<br>
route(RELAY);<br>
exit;<br>
}<br>
<br>
<br>
in the dispatcher.list :<br>
<br>
1 sip:<a href="http://1.2.3.4:5060" target="_blank">1.2.3.4:5060</a><br>
2 sip:<a href="http://1.2.3.5:5060" target="_blank">1.2.3.5:5060</a><br>
3 sip:<a href="http://1.2.3.6:5060" target="_blank">1.2.3.6:5060</a><br>
4 sip:<a href="http://1.2.3.5:5060" target="_blank">1.2.3.5:5060</a><br>
<br>
all is running under Debian last stable release + backports.<br>
<br>
I would like to know if it's my dispatcher configuration routine<br>
that's not correct, or if it's a module problem ?<br>
<br>
thank you,<br>
<br>
<br>
Samuel MULLER<br>
<br></div></div>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-<u></u>bin/mailman/listinfo/users</a><br>
<br><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<br>
-- <br>
Bogdan-Andrei Iancu<br>
OpenSIPS Founder and Developer<br>
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.<u></u>com</a><br>
<br>
</font></span></blockquote></div><br>