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> <<a href="mailto:jmagder@somanetworks.com">jmagder@somanetworks.com</a>> 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? For example, how<br>many saved users were there in the database? 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>> Sergio, could you set a breakpoint at line 125 in<br>> openserSIPPortTable.c, and display the values of: cb, cb.container,<br>> and cb.container->find?<br>><br>
> Jeffrey Magder wrote:<br>>> You are correct, the crash is happening in the SNMPStats module.<br>>> I'll take a look!<br>>><br>>> - JM<br>>><br>>> Daniel-Constantin Mierla wrote:
<br>>>> Hello,<br>>>><br>>>> this seems to be in snmpstats module ... maybe the developer can<br>>>> give some hints.<br>>>><br>>>> Cheers,<br>>>> Daniel<br>>>>
<br>>>><br>>>> On 03/29/07 19:29, Sergio Gutierrez wrote:<br>>>>><br>>>>> Hi Daniel.<br>>>>><br>>>>> In the meantime, I have begun to test using more standard
<br>>>>> conditions; I am not using the optimized compiler and I am running<br>>>>> openser compiled on 32 bits.<br>>>>><br>>>>> I have discovered an even nastier issue. When Openser is configured
<br>>>>> in forking mode, and with or without log_stderror, it presents the<br>>>>> same symptom I reported when compiled on 64 bits (it exhausts the<br>>>>> shared memory reservation, and crashes with core dumping).
<br>>>>><br>>>>> This is the backtrace:<br>>>>><br>>>>> (gdb) bt<br>>>>> #0 0x00000000 in ?? ()<br>>>>> #1 0xfe989b3c in getRow (ipType=1, ipAddress=0x141888) at
<br>>>>> openserSIPPortTable.c:125<br>>>>> #2 0xfe989c5c in createRowsFromIPList (theList=0x141a50,<br>>>>> listSize=1, protocol=0, snmpIndex=0xffbff870) at<br>>>>> openserSIPPortTable.c
:201<br>>>>> #3 0xfe98a07c in init_openserSIPPortTable () at<br>>>>> openserSIPPortTable.c:241<br>>>>> #4 0xfe98d708 in spawn_agentx_child () at sub_agent.c:74<br>>>>> #5 0xfe98cf04 in mod_child_init (rank=0) at
snmpstats.c:271<br>>>>> #6 0x00059ca8 in init_mod_child (m=0x133840, rank=0, type=0xc3c08<br>>>>> "PROC_MAIN") at sr_module.c:406<br>>>>> #7 0x00059c24 in init_mod_child (m=0x1338e0, rank=0, type=0xc3c08
<br>>>>> "PROC_MAIN") at sr_module.c:395<br>>>>> #8 0x000336c4 in main_loop () at main.c:952<br>>>>> #9 0x00035be4 in main (argc=9, argv=0xe7800) at main.c:1399<br>>>>>
<br>>>>> When I configure fork=no, openser does not crash, and works right.<br>>>>><br>>>>> I apologize if I should better create a new thread. If you suggest<br>>>>> so I will do it.
<br>>>>><br>>>>> Thanks in advance for your attention.<br>>>>><br>>>>> Kind regards<br>>>>><br>>>>> Sergio Gutierrez.<br>>>>> EPM Telecomunicaciones
<br>>>>> Medellín, Colombia<br>>>>> 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>