[sr-dev] [kamailio] mem/q_malloc: log more diagnostic information in qm_debug_frag (#361)
Alex Dowad
notifications at github.com
Wed Oct 7 10:31:38 CEST 2015
I had an instance of SER crash in production with this error message from
qm_debug_frag:
[mem/q_malloc.c:149]: BUG: qm_*: fragm. 0x4cee3b88 (address 0x4cee3ba0) end
overwritten(0, 0)!
The fragment end was been overwritten with zeroes... buffer overflow? Or an
aliasing bug? Maybe a double-free?
It would be much easier to debug problems like this if qm_debug_frag printed the
call site where qm_malloc/free was invoked from. And now it does!
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/361
-- Commit Summary --
* mem/q_malloc: log more diagnostic information in qm_debug_frag
-- File Changes --
M mem/q_malloc.c (33)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/361.patch
https://github.com/kamailio/kamailio/pull/361.diff
---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/361
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20151007/3166cbf9/attachment.html>
More information about the sr-dev
mailing list