[Serdev] SER crashing at random locations

Durgani, Prakash B. PBDurgani at west.com
Tue Mar 22 16:39:52 UTC 2005


DBG_QM_MALLOC is defined when I compile the source but don't see any
logs.  What debug level number I need to set in the config script?

Prakash

-----Original Message-----
From: serdev-bounces at iptel.org [mailto:serdev-bounces at lists.iptel.org] On
Behalf Of Andrei Pelinescu-Onciul
Sent: Tuesday, March 22, 2005 10:31 AM
To: Durgani, Prakash B.
Cc: serdev at lists.iptel.org
Subject: Re: [Serdev] SER crashing at random locations

On Mar 21, 2005 at 15:38, Durgani, Prakash B. <PBDurgani at west.com>
wrote:
> I wrote a module in SER that would probe (using the OPTIONS message)
the
> capabilities of our in-house SIP user agents for their capabilities
> every configurable amount of seconds.  Anywhere between 1-48 hours SER
> would crash due to a Segmentation fault in SER's core modules.  I have
> tried this on different Linux boxes with 2.4.xx kernels and it
typically
> crashes at different parts of SER's code files for example:

As Paul already said, it's most likely some malloc corruption.
Try to compile with malloc debugging: remove -DF_MALLOC and add
-D_DBG_QM_MALLOC in Makefile.defs (the DEFS+= section). After this it
would probably crash much faster and it will dump a lot of information
in the log (which can be used to identify the offending malloc block and
where was it allocated from).


Andrei

_______________________________________________
Serdev mailing list
serdev at lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serdev





More information about the Serdev mailing list