[Serdev] SER crashing at random locations

Andrei Pelinescu-Onciul pelinescu-onciul at fokus.fraunhofer.de
Tue Mar 22 16:30:58 UTC 2005


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




More information about the Serdev mailing list