On Thu, May 12, 2011 at 06:03:40AM -0600, Otto Moerbeek wrote:

> CVSROOT:      /cvs
> Module name:  src
> Changes by:   o...@cvs.openbsd.org    2011/05/12 06:03:40
> 
> Modified files:
>       lib/libc/stdlib: malloc.c 
> 
> Log message:
> Avoid fp computations for stats, this make calling malloc_dump() safe in more
> cases.

Actually, the problem is not the computation, but calling snprintf(3)
with a floating point format. This is not safe from signal handlers.
Typically, you can now run firefox from gdb, interrupt by ^C and call
malloc_dump(2) to get a view of the inside of the belly of the beast
without problems. 

Reply via email to