[OpenSIPS-Devel] how to handle memory corruption issue

Bogdan-Andrei Iancu bogdan at opensips.org
Tue Dec 18 06:36:37 CET 2012


Hi Loring,

It seems you came across a memory corruption or so.

Regarding the compiling of mem debugger and the failure to start the 
postgres module, I suspect you have not re-compiled the postgres module 
after changing the options in Makefile.

Regards,
Bogdan

On 12/18/2012 05:12 AM, 夜雨萧萧~~~ wrote:
> Hi ,
>    I've got a segfaultmemory which is always end in fm_remove_free.
> i follow the step show in http://www.opensips.org/Resources/DocsTsMem, 
> my opensips software is version 1.6.4, but i can start opensips as 
> there is error
>  "ERROR:core:sr_load_module: could not open module 
> </usr/local/lib/opensips/modules/db_postgres.so>: 
> /usr/local/lib/opensips/modules/db_postgres.so: undefined symbol: 
> fm_malloc"
> could you give me some tip to handle it ?
>   By the way, how to interpret the log as follow?
> /usr/local/sbin/opensips[22058]: Memory status (shm):
> /usr/local/sbin/opensips[22058]: fm_status (0xa76f7000):
> /usr/local/sbin/opensips[22058]:  heap size= 268435456
> /usr/local/sbin/opensips[22058]:  used= 86844, used+overhead=134384, 
> free=268348612
> /usr/local/sbin/opensips[22058]:  max used (+overhead)= 2321060
> /usr/local/sbin/opensips[22058]: dumping free list:
> /usr/local/sbin/opensips[22058]: hash =   1 fragments no.:    94, 
> unused:     0#012#011#011 bucket size:    8 -   8 (first         8)
> /usr/local/sbin/opensips[22058]: hash =   2 fragments no.:   591, 
> unused:     0#012#011#011 bucket size:        16 -        16 
> (first        16)
>  localhost /usr/local/sbin/opensips[22058]: hash =   3 fragments 
> no.:   594, unused:     0#012#011#011 bucket size:        24 -        
> 24 (first        24)
> localhost /usr/local/sbin/opensips[22058]: hash =   4 fragments no.:   
> 296, unused:     0#012#011#011 bucket size:        32 -        32 
> (first        32)
> Dec 17 19:11:16 localhost /usr/local/sbin/opensips[22058]: hash =   5 
> fragments no.:     4, unused:     0#012#011#011 bucket size:        40 
> -        40 (first        40)
> Dec 17 19:11:16 localhost /usr/local/sbin/opensips[22058]: hash =   6 
> fragments no.:     6, unused:     0#012#011#011 bucket size:        48 
> -        48 (first        52)
> Best wish!
> Loring
>
>
> _______________________________________________
> Devel mailing list
> Devel at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20121218/58d3572a/attachment.htm>


More information about the Devel mailing list