[OpenSIPS-Devel] [ opensips-Bugs-3125596 ] mem leak

SourceForge.net noreply at sourceforge.net
Mon Dec 13 15:56:03 CET 2010


Bugs item #3125596, was opened at 2010-12-02 09:39
Message generated for change (Comment added) made by thr1ll3rb33
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3125596&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: 1.6.x
Status: Open
Resolution: Accepted
Priority: 7
Private: No
Submitted By: thrillerbee (thr1ll3rb33)
Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
Summary: mem leak 

Initial Comment:
Errors in the syslog this time right before the crash:
/usr/local/sbin/opensips[27044]: ERROR:db_flatstore:new_flat_id: no pkg memory left
kernel: [5508366.582447] opensips[27044]: segfault at 10 ip 7fa7ff74c21f sp 7fffdc101700 error 4 in db_flatstore.so[7fa7ff749000+5000]

I do use the flat_rotate MI command with the acc module for cdr collection.  The backtrace is attached.

mem dumps are here:
http://www.starviewconnect.com/tmp/core1_mem_dump_20101112.gz
http://www.starviewconnect.com/tmp/core2_mem_dump_20101112.gz

----------------------------------------------------------------------

>Comment By: thrillerbee (thr1ll3rb33)
Date: 2010-12-13 08:56

Message:
The requested mem dump can be downloaded here:
http://www.starviewconnect.com/tmp/mem_dump_20101213.zip

Thanks.

----------------------------------------------------------------------

Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2010-12-03 06:28

Message:
Hi,

Indeed, the logs show a leak and I suspect it is from db_flatstore module
- unfortunately you do not have properly compiled the memory debugging
support, so it hard to pinpoint the guilty code.
I tried to reproduce ACC via flatstore, but not able to get a leak at
all...

So, please compile the memory debugger as per
http://www.opensips.org/Resources/DocsTsMem  (be sure you put DBG_QM_MALLOC
and take out F_MALLOC ) and recompile + reinstall +  restart opensips.

In your cfg use:
memlog=10
memdump=1
This will generate only a memory dump without any additional memory logs
at rutime.

You can take a mem dump at runtime by sending a SIGUSR1 signal to an
opensips process,
Regards,
Bogdan

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3125596&group_id=232389



More information about the Devel mailing list