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