Summary: | [PATCH] Avoid malloc deadlocks in assert() and friends | ||
---|---|---|---|
Product: | glibc | Reporter: | Adam Jackson <ajax> |
Component: | libc | Assignee: | Ulrich Drepper <drepper.fsp> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | fweimer, glibc-bugs |
Priority: | P2 | Flags: | fweimer:
security-
|
Version: | unspecified | ||
Target Milestone: | --- | ||
See Also: | https://sourceware.org/bugzilla/show_bug.cgi?id=21753 | ||
Host: | Target: | ||
Build: | Last reconfirmed: | ||
Attachments: | glibc-mallocless-assert.patch |
Description
Adam Jackson
2009-08-25 19:03:24 UTC
Created attachment 4150 [details]
glibc-mallocless-assert.patch
It's not at all clear to me why it doesn't use __fxprintf directly, or indeed just use __dprintf. The reason malloc is used is so that in case you see a core file but no console output you know what was going on. Using the stack memory is not sufficient in this case. The __abort_msg variable was deliberately introduced and is visible to the debugger and other tools. Fixed upstream. |