all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Segfault in master
@ 2015-03-04 16:39 David Kastrup
  2015-03-05  4:39 ` Paul Eggert
  0 siblings, 1 reply; 9+ messages in thread
From: David Kastrup @ 2015-03-04 16:39 UTC (permalink / raw
  To: emacs-devel


I am getting a segfault in master when building:

CCLD     temacs
/bin/mkdir -p ../etc
: paxctl -r temacs
: setfattr -n user.pax.flags -v er temacs
make -C ../lisp update-subdirs
make[3]: Entering directory '/usr/local/tmp/emacs/lisp'
for file in `find . -type d -print`; do case $file in .*/cedet* | .*/leim* ) ;; *) wins="$wins${wins:+ }$file" ;; esac; done; \
for file in $wins; do \
   ./../build-aux/update-subdirs $file; \
done;
make[3]: Leaving directory '/usr/local/tmp/emacs/lisp'
./temacs --batch --load loadup bootstrap
Makefile:830: recipe for target 'bootstrap-emacs' failed
make[2]: *** [bootstrap-emacs] Segmentation fault (core dumped)
make[2]: Leaving directory '/usr/local/tmp/emacs/src'
Makefile:398: recipe for target 'src' failed
make[1]: *** [src] Error 2
make[1]: Leaving directory '/usr/local/tmp/emacs'
GNUmakefile:61: recipe for target 'default' failed
make: *** [default] Error 2

The responsible commit (according to git bisect) is:

commit b74db6347cf5cac1ebd4c604fd5691c588fd8e32
Author: Paul Eggert <eggert@cs.ucla.edu>
Date:   Tue Feb 24 16:34:13 2015 -0800

    Backtrace after malloc arena is corrupted
    
    Without this change, if the malloc arena is corrupted and then
    'backtrace' is called, the backtrace can crash because 'backtrace'
    calls 'malloc'.  For more, please see:
    https://sourceware.org/ml/libc-alpha/2015-02/msg00678.html
    * emacs.c (main): Initialize tables used by 'backtrace'.
    * sysdep.c (emacs_backtrace): Document the newly used part of the API.

:040000 040000 32e54ad6d01fa190110c2f5012cd411c357ed733 c5a043f2a37944a8c9b48b53ea6b2e2ea37eae2d M	src

This corresponds well with the location of the crash:

Program received signal SIGSEGV, Segmentation fault.
__GI___backtrace (array=0xbfffe758, size=0) at ../sysdeps/i386/backtrace.c:141
141	../sysdeps/i386/backtrace.c: No such file or directory.
(gdb) bt
#0  __GI___backtrace (array=0xbfffe758, size=0)
    at ../sysdeps/i386/backtrace.c:141
#1  0x08136f39 in emacs_backtrace (backtrace_limit=-1)
    at ../../emacs/src/sysdep.c:2177
#2  0x08059692 in main (argc=<optimized out>, argv=0xbffff084)
    at ../../emacs/src/emacs.c:887
(gdb) 

I also have
$ gcc --version
gcc (Ubuntu 4.9.1-16ubuntu6) 4.9.1
$ arch
i686
$ cat /proc/version
Linux version 3.11.0-17-generic (buildd@roseapple) (gcc version 4.8.1 (Ubuntu/Linaro 4.8.1-10ubuntu8) ) #31-Ubuntu SMP Mon Feb 3 21:53:31 UTC 2014

-- 
David Kastrup



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-03-05 21:20 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-04 16:39 Segfault in master David Kastrup
2015-03-05  4:39 ` Paul Eggert
2015-03-05  9:31   ` Colin Baxter
2015-03-05 20:01     ` bug#19959: " Paul Eggert
2015-03-05 20:01     ` Paul Eggert
2015-03-02  3:28       ` bug#19980: master: `Backtrace after malloc arena is corrupted` causes segfault during build Eric Hanchrow
2015-03-02  3:38         ` Daniel Colascione
     [not found]         ` <handler.19980.D19959.142558572217560.notifdone@debbugs.gnu.org>
2015-03-05 21:20           ` bug#19980: closed (Re: Segfault in master) Eric Hanchrow
2015-03-05 16:19   ` Segfault in master Thomas Fitzsimmons

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.