-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
__allocations_mutex can get deadlocked if an allocation happens in an allocation #11
Comments
Looks like someone already had the same idea I'll try uncommenting that and see if it works. |
Worked. Might not for all cases, but for mine it stopped the deadlocking. |
Hi! Could you just explain quickly what was your problem in your case? Or provide a little sample code? |
Also, I'm not sure recursive mutex would be available in all libc. glibc has it of course, but this tool targets all kind of embedded system. |
Yeah it's probably situational. If I have time tomorrow I can make a short reproduction code. I'll have to look at the stack trace and see what log4cxx is doing. |
This happened while using log4cxx. I worked-around the issue by just turning off log4cxx. It was on an old version of LeakTracer too so maybe it's been fixed since then. Maybe a recursive mutex or semaphore would fix the issue if not.
The text was updated successfully, but these errors were encountered: