[Bug malloc/22408] malloc_info access heaps without arena lock, ignores heaps
fix4fun7 at gmail dot com
sourceware-bugzilla@sourceware.org
Tue Nov 14 23:03:00 GMT 2017
https://sourceware.org/bugzilla/show_bug.cgi?id=22408
--- Comment #3 from Yas <fix4fun7 at gmail dot com> ---
Comment on attachment 10590
--> https://sourceware.org/bugzilla/attachment.cgi?id=10590
malloc_info: access heap while holding arena lock
Thanks Florian for reporting the issue. Do you have a test-case to reproduce
the issue consistently? If so, can you please share it.
Have hit the same issue, but don't have consistent steps to reproduce it. As a
fix, What if heap_for_ptr() is accessed while still holding lock (to solve the
race condition) and store that information locally?
Could not test the fix as I don't have a test-case to reproduce the issue.
Patch is attached for reference.
Thanks
Yas
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list