[squid-dev] [PATCH] tentative fix for bug 4438

Kinkie gkinkie at gmail.com
Sat Mar 5 11:31:46 UTC 2016


Hi all,
  attached is a tentative fix for bug 4438.
I can't reproduce the bug, unfortunately; judging from the traces it
seems to me to be a case of mismatched alloc/free calls (alloc through
memallocate, free through mempools).

If that's the case, there's a few angles to take on this problem, and
here is one: ensuring that mempools are initialized before MemBlob is
used. I chose this approach as it's the least invasive, and it's made
possible by libmem not depending on libsbuf; another could be to have
MemBlob not rely on old_api (basically refactoring some old_api into
MemBlob itself), and yet another could be to make mempools handle more
gracefully the case of having to free a memory region they did not
allocate.

please let me know your thoughts; I also kindly ask Yuri if he can try
the fix and see if it fixes the issue he's seeing.

-- 
    Francesco
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug4438-v1.patch
Type: text/x-diff
Size: 1103 bytes
Desc: not available
URL: <http://lists.squid-cache.org/pipermail/squid-dev/attachments/20160305/584f060c/attachment.patch>


More information about the squid-dev mailing list