FTBFS on arm64: make[4]: *** [../../lisp/cedet/semantic/bovine/c-by.el] Segmentation fault (core dumped)

Bug #1656474 reported by dann frazier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
emacs25 (Ubuntu)
Fix Released
High
Barry Warsaw

Bug Description

emacs25 25.1+1-3ubuntu1 reliably fails to build on the LP arm64 buildds. I wasn't able to reproduce this on bare metal but, while trying to simulate the buildd environment, I have found that it does *sometimes* occur when building in a KVM VM on an X-Gene system.

#0 __flockfile (stream=0x0) at ../sysdeps/pthread/flockfile.c:28
#1 0x00000000004e0cc4 in terminate_due_to_signal (sig=sig@entry=11, backtrace_limit=backtrace_limit@entry=40) at emacs.c:381
#2 0x00000000004f74f8 in handle_fatal_signal (sig=sig@entry=11) at sysdep.c:1601
#3 0x00000000004f7734 in deliver_thread_signal (sig=sig@entry=11, handler=0x4f74e8 <handle_fatal_signal>) at sysdep.c:1575
#4 0x00000000004f77ac in deliver_fatal_thread_signal (sig=11) at sysdep.c:1613
#5 handle_sigsegv (sig=11, siginfo=<optimized out>, arg=<optimized out>) at sysdep.c:1695
#6 <signal handler called>
#7 unchain_marker (marker=marker@entry=0x130ad18) at marker.c:605
#8 0x00000000005334a4 in free_marker (marker=marker@entry=19967257) at alloc.c:3850
#9 0x0000000000505b98 in signal_before_change (preserve_ptr=0x0, end_int=44894, start_int=9854976) at insdel.c:2041
#10 prepare_to_modify_buffer_1 (start=start@entry=11223, end=end@entry=11223, preserve_ptr=preserve_ptr@entry=0x0) at insdel.c:1867
[...]

Tags: ftbfs
Revision history for this message
dann frazier (dannf) wrote :
Changed in emacs25 (Ubuntu):
status: New → Confirmed
Revision history for this message
dann frazier (dannf) wrote :
Revision history for this message
dann frazier (dannf) wrote :

This does not appear to be reproducible w/ pristine upstream 25.1 source built with the following commands:

./autogen.sh

CFLAGS="-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall" CPPFLAGS="-Wdate-time -D_FORTIFY_SOURCE=2" LDFLAGS="-Wl,-Bsymbolic-functions -Wl,-z,relro" REL_ALLOC=no ./configure --build aarch64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs25:/etc/emacs:/usr/local/share/emacs/25.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.1/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --build aarch64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs25:/etc/emacs:/usr/local/share/emacs/25.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.1/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars
make

Jeremy Bícha (jbicha)
Changed in emacs25 (Ubuntu):
importance: Undecided → High
tags: added: ftbfs
Revision history for this message
Balint Reczey (rbalint) wrote :

Debian has a fix for random crashes, this could have been one of them:

Changes:
 emacs25 (25.1+1-3) unstable; urgency=medium
 .
   * Configure with REL_ALLOC=no to fix crashes. Thanks to Santiago
     Vila for reporting the problem, and Sean Whitton for helping test
     the fix. (Closes: 842728)
 .
   * Disable xwidget (webkit) support. Thanks to David Bremner for
     reporting the issue. (Closes: 843462)
 .
   * Depend on liboss4-salsa-dev on hurd and kfreebsd. Thanks to Aaron
     M. Ucko for reporting the problem and Svante Signell for providing
     the fix. (Closes: 840702)

Revision history for this message
Balint Reczey (rbalint) wrote :

Please ignore, this is already in

Barry Warsaw (barry)
Changed in emacs25 (Ubuntu):
assignee: nobody → Barry Warsaw (barry)
status: Confirmed → In Progress
Revision history for this message
Barry Warsaw (barry) wrote :

Building in my PPA with -O0 for arm64 fixes the problem, and I've uploaded 25.1+1-3ubuntu4 with this change, so hopefully that will clear it once it's approved.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package emacs25 - 25.1+1-3ubuntu4

---------------
emacs25 (25.1+1-3ubuntu4) zesty; urgency=medium

  * debian/rules: Add -O0 to CFLAGS on arm64 to prevent FTBFS due to
    segfaults. (LP: #1656474)

 -- Barry Warsaw <email address hidden> Tue, 28 Mar 2017 18:58:12 -0400

Changed in emacs25 (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

For some reasons under pbuilder the ubuntu3 version didn't fail
pbuilder-dist zesty arm64 environment...

Revision history for this message
Barry Warsaw (barry) wrote :

It also doesn't fail on bare metal. We have an arm64 porter box available to us and I did a test build w/dpkg-buildpackage in a chroot. No failure.

I just also tried Debian unstable's Emacs 25.1 in my PPA and it fails in exactly the same way, so we can rule out any Ubuntu deltas, as expected.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.