From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Rob Browning Newsgroups: gmane.emacs.devel Subject: Re: Emacs 25.1 build failures on Ubuntu arm64 Date: Tue, 01 Aug 2017 09:55:32 -0500 Message-ID: <87lgn3e3rv.fsf@trouble.defaultvalue.org> References: <20170328203040.0a1e0b98@subdivisions.wooz.org> <838tno6s7h.fsf@gnu.org> <20170329164648.367ab5a8@subdivisions.wooz.org> <20170329175742.1f52ad68@subdivisions.wooz.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1501599376 7781 195.159.176.226 (1 Aug 2017 14:56:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 1 Aug 2017 14:56:16 +0000 (UTC) To: Barry Warsaw , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 01 16:56:12 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dcYaf-0001mL-MN for ged-emacs-devel@m.gmane.org; Tue, 01 Aug 2017 16:56:09 +0200 Original-Received: from localhost ([::1]:43066 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcYal-0008Mk-KL for ged-emacs-devel@m.gmane.org; Tue, 01 Aug 2017 10:56:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58518) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcYaG-00086P-4Z for emacs-devel@gnu.org; Tue, 01 Aug 2017 10:55:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dcYaA-0002y9-T3 for emacs-devel@gnu.org; Tue, 01 Aug 2017 10:55:44 -0400 Original-Received: from defaultvalue.org ([70.85.129.156]:49380) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcYaA-0002xw-NW for emacs-devel@gnu.org; Tue, 01 Aug 2017 10:55:38 -0400 Original-Received: from trouble.defaultvalue.org (localhost [127.0.0.1]) (Authenticated sender: rlb@defaultvalue.org) by defaultvalue.org (Postfix) with ESMTPSA id 075C5200A5; Tue, 1 Aug 2017 09:55:34 -0500 (CDT) Original-Received: by trouble.defaultvalue.org (Postfix, from userid 1000) id DF6A614E0AD; Tue, 1 Aug 2017 09:55:32 -0500 (CDT) In-Reply-To: <20170329175742.1f52ad68@subdivisions.wooz.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 70.85.129.156 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:217205 Archived-At: Barry Warsaw writes: > On Mar 29, 2017, at 04:46 PM, Barry Warsaw wrote: > >>I'll see if I can do a build of the Debian version of 25.1 in an Ubuntu 17.04 >>PPA to see if there are any different results. > > Indeed, Debian unstable's version of Emacs 25.1 also fails with the same > segfault in the Ubuntu 17.04 PPA, as expected. We can rule out any Ubuntu > deltas. > > https://launchpadlibrarian.net/313465977/buildlog_ubuntu-zesty-arm64.emacs25_25.1+1-4~ppa0_BUILDING.txt.gz I spent a bit of time on one of the porterboxes and gathered a little more information, though in the end, we just added -O0 on arm64 for now as well. I was able to reproduce this on asachi using a git checkout of origin/emacs-25.2 (i.e. clean upstream tree, no debian adjustments), though I did emulate our VPATH build (see below). One notable oddity -- while trying to narrow down the cause, I found that the crash could be reliably triggered by adding the .git dir to the (copied) build tree. For example, this either builds, or crashes, depending on whether or not the .git dir is introduced. rm -rf debian mkdir -p debian/build-src cp -a $(ls -A | egrep -v '^(\.git|\.pc|debian)$') debian/build-src # If this line is removed, the build works fine, otherwise it crashes cp -a .git debian/build-src/ pushd debian/build-src ./autogen.sh popd mkdir debian/build-x cd debian/build-x ../build-src/configure ... make -j When the build crashes, it's always while trying to produce c-by.el, and the crash looks similar to the one reported earlier in this thread, i.e.: Starting program: /home/rlb/git/emacs25-25.2+1/debian/build-x/src/emacs -batch --no-site-file --no-site-lisp -l semantic/bovine/grammar -f bovine-batch-make-parser -o /home/rlb/git/emacs25-25.2+1/debian/build-x/../../../emacs25-25.2+1/debian/build-src/lisp/cedet/semantic/bovine/c-by.el /home/rlb/git/emacs25-25.2+1/debian/build-x/../../../emacs25-25.2+1/debian/build-src/admin/grammars/c.by [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1". [New Thread 0xffffb36dbe10 (LWP 22399)] ../../../build-src/lisp/emacs-lisp/eieio.el: `eieio-object-name-string' is an obsolete generic function (as of 25.1); use `eieio-named' instead. ../../../build-src/lisp/emacs-lisp/eieio-base.el: `eieio-object-name-string' is an obsolete generic function (as of 25.1); use `eieio-named' instead. ../../../build-src/lisp/cedet/semantic/db-ref.el: Obsolete name arg "DEBUG" to constructor semanticdb-ref-adebug Thread 1 "emacs" received signal SIGSEGV, Segmentation fault. unchain_marker (marker=marker@entry=0x188d850) at ./debian/build-src/src/marker.c:605 605 ./debian/build-src/src/marker.c: No such file or directory. (gdb) where #0 unchain_marker (marker=marker@entry=0x188d850) at ./debian/build-src/src/marker.c:605 #1 0x000000000053608c in free_marker (marker=marker@entry=25745489) at ./debian/build-src/src/alloc.c:3850 #2 0x0000000000508688 in signal_before_change (preserve_ptr=0x0, end_int=9894256, start_int=9890072) at ./debian/build-src/src/insdel.c:2041 ... I wondered if the presence of the .git dir was altering the behavior of autogen.sh (or something else) in a way that exposes the problem. Hope this helps -- Rob Browning rlb @defaultvalue.org and @debian.org GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4