all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
To: emacs-devel@gnu.org
Subject: Segfault in master
Date: Wed, 04 Mar 2015 17:39:37 +0100	[thread overview]
Message-ID: <877fuw7m46.fsf@fencepost.gnu.org> (raw)


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



             reply	other threads:[~2015-03-04 16:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-04 16:39 David Kastrup [this message]
2015-03-05  4:39 ` Segfault in master Paul Eggert
2015-03-05  9:31   ` Colin Baxter
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 20:01     ` bug#19959: Segfault in master Paul Eggert
2015-03-05 16:19   ` Thomas Fitzsimmons

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877fuw7m46.fsf@fencepost.gnu.org \
    --to=dak@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.