[OpenSIPS-Devel] [opensips] SIGSEGV in pkg_malloc/fm_malloc (#721)
Stéphane Alnet
notifications at github.com
Wed Dec 9 13:38:43 CET 2015
This is using opensips 2.1 at commit ee99ac71d8718c93c29e28e6a5266287491f17a5 in a production environment. OpenSIPS is configured to generate coredump, [core.txt](https://github.com/OpenSIPS/opensips/files/56763/core.txt) has `bt full` + `print` of variables in last 3 stack entries.
The issue in the code is relatively simple to understand,
pf = n->prev;
is followed by
*pf = n->u.nxt_free;
(lines 167 and 171 of mem/f_malloc.c) without checking whether `n->prev` actually exists. However this is fairly old code so there must be some assumptions that made the test unnecessary at the time — but maybe not anymore, or maybe there's some environment dependency I need to check.
---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/721
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20151209/584fefc4/attachment.htm>
More information about the Devel
mailing list