This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug malloc/22408] malloc_info access heaps without arena lock, ignores heaps


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]