Subject: bug#19980: master: `Backtrace after malloc arena is corrupted` causes segfault during build

From: Daniel Colascione <[email-masked]>
Date: Sun, 01 Mar 2015 19:38:16 -0800

On 03/01/2015 07:28 PM, Eric Hanchrow wrote:
> Program received signal SIGSEGV, Segmentation fault.
> __GI___backtrace (array=array@entry=0xbfffedcc, size=size@entry=0) at
> ../sysdeps/i386/backtrace.c:141
> 141../sysdeps/i386/backtrace.c: No such file or directory.
> (gdb) bt
> #0  __GI___backtrace (array=array@entry=0xbfffedcc, size=size@entry=0)
> at ../sysdeps/i386/backtrace.c:141
> #1  0x080ed543 in emacs_backtrace
> (backtrace_limit=backtrace_limit@entry=-1) at sysdep.c:2177
> #2  0x0804f744 in main (argc=<optimized out>, argv=0xbffff6d4) at
> emacs.c:887
> (gdb) 

So we're crashing inside glibc's backtrace? Between this crash and the
bug that commit b74db6347cf5cac1ebd4c604fd5691c588fd8e32 is trying to
work around, maybe we should link against libunwind instead of using the
system backtrace.