This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug malloc/22408] malloc_info access heaps without arena lock, ignores heaps
- From: "fix4fun7 at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 14 Nov 2017 23:03:18 +0000
- Subject: [Bug malloc/22408] malloc_info access heaps without arena lock, ignores heaps
- Auto-submitted: auto-generated
- References: <bug-22408-131@http.sourceware.org/bugzilla/>
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.