Hi Jeffrey.<br>
<br>
My test was with 1 record in location table. usrloc db_mode parameter set to 2.<br>
When snmpstats.so is not loaded, Openser does not crash, and it can be run on fork mode set to yes.<br>
<br>
Thanks.<br>
<br><br><div><span class="gmail_quote">On 3/29/07, <b class="gmail_sendername">Jeffrey Magder</b> &lt;<a href="mailto:jmagder@somanetworks.com">jmagder@somanetworks.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Could you also let me know what your testcase was?&nbsp;&nbsp;For example, how<br>many saved users were there in the database?&nbsp;&nbsp;Does OpenSER still crash<br>when the snmpstats.so module is not loaded?<br><br>So many questions, so little time! :-)
<br><br>- JM<br><br>Jeffrey Magder wrote:<br>&gt; Sergio, could you set a breakpoint at line 125 in<br>&gt; openserSIPPortTable.c, and display the values of: cb, cb.container,<br>&gt; and cb.container-&gt;find?<br>&gt;<br>
&gt; Jeffrey Magder wrote:<br>&gt;&gt; You are correct, the crash is happening in the SNMPStats module.<br>&gt;&gt; I&#39;ll take a look!<br>&gt;&gt;<br>&gt;&gt; - JM<br>&gt;&gt;<br>&gt;&gt; Daniel-Constantin Mierla wrote:
<br>&gt;&gt;&gt; Hello,<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; this seems to be in snmpstats module ... maybe the developer can<br>&gt;&gt;&gt; give some hints.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Cheers,<br>&gt;&gt;&gt; Daniel<br>&gt;&gt;&gt;
<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; On 03/29/07 19:29, Sergio Gutierrez wrote:<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; Hi Daniel.<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; In the meantime, I have begun to test using more standard
<br>&gt;&gt;&gt;&gt; conditions; I am not using the optimized compiler and I am running<br>&gt;&gt;&gt;&gt; openser compiled on 32 bits.<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; I have discovered an even nastier issue. When Openser is configured
<br>&gt;&gt;&gt;&gt; in forking mode, and with or without log_stderror, it presents the<br>&gt;&gt;&gt;&gt; same symptom I reported when compiled on 64 bits (it exhausts the<br>&gt;&gt;&gt;&gt; shared memory reservation, and crashes with core dumping).
<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; This is the backtrace:<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; (gdb) bt<br>&gt;&gt;&gt;&gt; #0&nbsp;&nbsp;0x00000000 in ?? ()<br>&gt;&gt;&gt;&gt; #1&nbsp;&nbsp;0xfe989b3c in getRow (ipType=1, ipAddress=0x141888) at
<br>&gt;&gt;&gt;&gt; openserSIPPortTable.c:125<br>&gt;&gt;&gt;&gt; #2&nbsp;&nbsp;0xfe989c5c in createRowsFromIPList (theList=0x141a50,<br>&gt;&gt;&gt;&gt; listSize=1, protocol=0, snmpIndex=0xffbff870) at<br>&gt;&gt;&gt;&gt; openserSIPPortTable.c
:201<br>&gt;&gt;&gt;&gt; #3&nbsp;&nbsp;0xfe98a07c in init_openserSIPPortTable () at<br>&gt;&gt;&gt;&gt; openserSIPPortTable.c:241<br>&gt;&gt;&gt;&gt; #4&nbsp;&nbsp;0xfe98d708 in spawn_agentx_child () at sub_agent.c:74<br>&gt;&gt;&gt;&gt; #5&nbsp;&nbsp;0xfe98cf04 in mod_child_init (rank=0) at 
snmpstats.c:271<br>&gt;&gt;&gt;&gt; #6&nbsp;&nbsp;0x00059ca8 in init_mod_child (m=0x133840, rank=0, type=0xc3c08<br>&gt;&gt;&gt;&gt; &quot;PROC_MAIN&quot;) at sr_module.c:406<br>&gt;&gt;&gt;&gt; #7&nbsp;&nbsp;0x00059c24 in init_mod_child (m=0x1338e0, rank=0, type=0xc3c08
<br>&gt;&gt;&gt;&gt; &quot;PROC_MAIN&quot;) at sr_module.c:395<br>&gt;&gt;&gt;&gt; #8&nbsp;&nbsp;0x000336c4 in main_loop () at main.c:952<br>&gt;&gt;&gt;&gt; #9&nbsp;&nbsp;0x00035be4 in main (argc=9, argv=0xe7800) at main.c:1399<br>&gt;&gt;&gt;&gt;
<br>&gt;&gt;&gt;&gt; When I configure fork=no, openser does not crash, and works right.<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; I apologize if I should better create a new thread. If you suggest<br>&gt;&gt;&gt;&gt; so I will do it.
<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; Thanks in advance for your attention.<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; Kind regards<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; Sergio Gutierrez.<br>&gt;&gt;&gt;&gt; EPM Telecomunicaciones
<br>&gt;&gt;&gt;&gt; Medellín, Colombia<br>&gt;&gt;&gt;&gt; Tel: 574 - 3950022<br><br><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@openser.org">Users@openser.org</a><br>
<a href="http://openser.org/cgi-bin/mailman/listinfo/users">http://openser.org/cgi-bin/mailman/listinfo/users</a><br></blockquote></div><br>