http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49214
Janne Blomqvist <jb at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.7.0 |---
--- Comment #5 from Janne Blomqvist <jb at gcc dot gnu.org> 2011-05-29 20:20:45 UTC ---
(In reply to comment #4)
> At revision 174395, the backtrace is now
>
> Backtrace for this error:
> ** Something went wrong while running addr2line. **
> ** Falling back to a simpler backtrace scheme. **
>
> Backtrace for this error:
> 0 libgfortran.3.dylib 0x0000000100003de7
> _gfortrani_show_backtrace + 55^@
> 1 a.out 0x0000000100000d7f MAIN__ + 9^@
> 2 a.out 0x0000000100000db7 main + 54^@
> 3 a.out 0x0000000100000838 start + 52^@
> 4 ??? 0x0000000000000001 0x0 + 1^@
>
> Note the NULL terminated strings. Would it be possible to remove the trailing
> NULLs?
This output is generated by the backtrace_symbols_fd() call at backtrace.c:277.
Hence, it appears the NULL bytes are due to a bug in the Darwin libc
implementation of backtrace_symbols_fd.