From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Gergely Czuczy Newsgroups: gmane.emacs.bugs Subject: bug#28308: Build failure on FreeBSD/aarch64 Date: Thu, 31 Aug 2017 18:34:37 +0200 Message-ID: <2e5f41f7-e005-c28f-c04a-79953a804f71@harmless.hu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------20F51CEBFD878334EA53DC6F" X-Trace: blaine.gmane.org 1504197809 30107 195.159.176.226 (31 Aug 2017 16:43:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 31 Aug 2017 16:43:29 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 To: 28308@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 31 18:43:24 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1dnSYg-0006rm-OZ for geb-bug-gnu-emacs@m.gmane.org; Thu, 31 Aug 2017 18:43:10 +0200 Original-Received: from localhost ([::1]:56706 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dnSYm-00061h-5L for geb-bug-gnu-emacs@m.gmane.org; Thu, 31 Aug 2017 12:43:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54021) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dnSYc-0005zk-Kl for bug-gnu-emacs@gnu.org; Thu, 31 Aug 2017 12:43:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dnSYY-0000YX-GT for bug-gnu-emacs@gnu.org; Thu, 31 Aug 2017 12:43:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57377) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dnSYY-0000YJ-DE for bug-gnu-emacs@gnu.org; Thu, 31 Aug 2017 12:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dnSYY-00010g-4f for bug-gnu-emacs@gnu.org; Thu, 31 Aug 2017 12:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gergely Czuczy Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 31 Aug 2017 16:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28308 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15041977363817 (code B ref -1); Thu, 31 Aug 2017 16:43:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 31 Aug 2017 16:42:16 +0000 Original-Received: from localhost ([127.0.0.1]:37825 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dnSXn-0000zU-Hz for submit@debbugs.gnu.org; Thu, 31 Aug 2017 12:42:16 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33152) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dnSQj-0000p6-Fx for submit@debbugs.gnu.org; Thu, 31 Aug 2017 12:34:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dnSQc-0004x7-VC for submit@debbugs.gnu.org; Thu, 31 Aug 2017 12:34:52 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:37266) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dnSQc-0004x3-RM for submit@debbugs.gnu.org; Thu, 31 Aug 2017 12:34:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52351) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dnSQb-00031j-5y for bug-gnu-emacs@gnu.org; Thu, 31 Aug 2017 12:34:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dnSQW-0004vS-58 for bug-gnu-emacs@gnu.org; Thu, 31 Aug 2017 12:34:49 -0400 Original-Received: from marvin.harmless.hu ([195.56.55.204]:65300) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dnSQV-0004uV-P9 for bug-gnu-emacs@gnu.org; Thu, 31 Aug 2017 12:34:44 -0400 Original-Received: from 84-236-24-10.pool.digikabel.hu ([84.236.24.10] helo=[10.219.16.1]) by marvin.harmless.hu with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.88 (FreeBSD)) (envelope-from ) id 1dnSQQ-00023N-UF for bug-gnu-emacs@gnu.org; Thu, 31 Aug 2017 16:34:39 +0000 Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Thu, 31 Aug 2017 12:42:13 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:136411 Archived-At: This is a multi-part message in MIME format. --------------20F51CEBFD878334EA53DC6F Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hello, Emacs was broken on FreeBSD/aarch64 due to the sbrk issue (it got obsoleted on the platform), however the latest git checkout seems to build so far, up to a point, where it segfaults. So, the issue with it is not sbrk. Here are the build logs: mv -f emacs bootstrap-emacs gmake -C ../lisp compile-first EMACS="../src/bootstrap-emacs" gmake[4]: Entering directory '/usr/ports/editors/emacs-devel/work/emacs-f44184f/lisp' EMACSLOADPATH= '../src/bootstrap-emacs' -batch --no-site-file --no-site-lisp --eval '(setq load-prefer-newer t)' -f batch-byte-compile emacs-lisp/macroexp.el Fatal error 11: Segmentation faultgmake[4]: *** [Makefile:297: emacs-lisp/macroexp.elc] Segmentation fault (core dumped) gmake[4]: Leaving directory '/usr/ports/editors/emacs-devel/work/emacs-f44184f/lisp' gmake[3]: *** [Makefile:739: bootstrap-emacs] Error 2 gmake[3]: Leaving directory '/usr/ports/editors/emacs-devel/work/emacs-f44184f/src' gmake[2]: *** [Makefile:416: src] Error 2 gmake[2]: Leaving directory '/usr/ports/editors/emacs-devel/work/emacs-f44184f' -emacs.corepine64:/usr/ports/editors/emacs-devel# lldb work/emacs-f44184f/src/bootstrap-emacs -c work/emacs-f44184f/lisp/bootstrap- (lldb) target create "work/emacs-f44184f/src/bootstrap-emacs" --core "work/emacs-f44184f/lisp/bootstrap-emacs.core" Core file '/usr/ports/editors/emacs-devel/work/emacs-f44184f/lisp/bootstrap-emacs.core' (aarch64) was loaded. (lldb) bt * thread #1, name = 'bootstrap-emacs', stop reason = signal SIGSEGV * frame #0: 0x0000000000158584 bootstrap-emacs`oblookup + 120 frame #1: 0x000000000015843c bootstrap-emacs`intern_1 + 92 frame #2: 0x00000000000fb0cc bootstrap-emacs`Fdo_auto_save + 220 frame #3: 0x00000000000c5bd8 bootstrap-emacs`shut_down_emacs + 216 frame #4: 0x00000000000c5a04 bootstrap-emacs`terminate_due_to_signal + 128 frame #5: 0x00000000000df574 bootstrap-emacs`deliver_fatal_thread_signal + 128 frame #6: 0x00000000000e0ec8 bootstrap-emacs`handle_sigsegv + 164 frame #7: 0x00000000404cfe80 libthr.so.3`handle_signal(actp=0x0000000000539600, sig=11, info=0x0000000000539670, ucp=0x00000000005396c0) at thr_sig.c:244 frame #8: 0x00000000404cf5a4 libthr.so.3`thr_sighandler(sig=11, info=0x0000000000539670, _ucp=0x00000000005396c0) at thr_sig.c:189 frame #9: 0x0000fffffffff000 frame #10: 0x0000000000040190 bootstrap-emacs`__start + 376 frame #11: 0x00000000401c0018 ld-elf.so.1`.rtld_start at rtld_start.S:41 This was produced on -CURRENT if that matters: FreeBSD build-pine64.bealak.harmless.hu 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r322723M: Tue Aug 22 07:25:52 CEST 2017 toor@marvin.harmless.hu:/tank/rpi3/crochet/work.pine64vanilla/obj/arm64.aarch64/tank/rpi3/src/sys/GENERIC-NODEBUG arm64 So, I think this is a different kind of a fault, not related to sbrk, but it pretty much shouldn't do this. Could you please guys take a look at it? Best regards, Gergely PS: For the record here's the FreeBSD-sude report: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221961 --------------20F51CEBFD878334EA53DC6F Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit

Hello,

Emacs was broken on FreeBSD/aarch64 due to the sbrk issue (it got obsoleted on the platform), however the latest git checkout seems to build so far, up to a point, where it segfaults. So, the issue with it is not sbrk. Here are the build logs:

mv -f emacs bootstrap-emacs
gmake -C ../lisp compile-first EMACS="../src/bootstrap-emacs"
gmake[4]: Entering directory '/usr/ports/editors/emacs-devel/work/emacs-f44184f/lisp'
EMACSLOADPATH= '../src/bootstrap-emacs' -batch --no-site-file --no-site-lisp --eval '(setq load-prefer-newer t)'  -f batch-byte-compile emacs-lisp/macroexp.el
Fatal error 11: Segmentation faultgmake[4]: *** [Makefile:297: emacs-lisp/macroexp.elc] Segmentation fault (core dumped)
gmake[4]: Leaving directory '/usr/ports/editors/emacs-devel/work/emacs-f44184f/lisp'
gmake[3]: *** [Makefile:739: bootstrap-emacs] Error 2
gmake[3]: Leaving directory '/usr/ports/editors/emacs-devel/work/emacs-f44184f/src'
gmake[2]: *** [Makefile:416: src] Error 2
gmake[2]: Leaving directory '/usr/ports/editors/emacs-devel/work/emacs-f44184f'


-emacs.corepine64:/usr/ports/editors/emacs-devel# lldb work/emacs-f44184f/src/bootstrap-emacs -c work/emacs-f44184f/lisp/bootstrap-
(lldb) target create "work/emacs-f44184f/src/bootstrap-emacs" --core "work/emacs-f44184f/lisp/bootstrap-emacs.core"
Core file '/usr/ports/editors/emacs-devel/work/emacs-f44184f/lisp/bootstrap-emacs.core' (aarch64) was loaded.
(lldb) bt
* thread #1, name = 'bootstrap-emacs', stop reason = signal SIGSEGV
  * frame #0: 0x0000000000158584 bootstrap-emacs`oblookup + 120
    frame #1: 0x000000000015843c bootstrap-emacs`intern_1 + 92
    frame #2: 0x00000000000fb0cc bootstrap-emacs`Fdo_auto_save + 220
    frame #3: 0x00000000000c5bd8 bootstrap-emacs`shut_down_emacs + 216
    frame #4: 0x00000000000c5a04 bootstrap-emacs`terminate_due_to_signal + 128
    frame #5: 0x00000000000df574 bootstrap-emacs`deliver_fatal_thread_signal + 128
    frame #6: 0x00000000000e0ec8 bootstrap-emacs`handle_sigsegv + 164
    frame #7: 0x00000000404cfe80 libthr.so.3`handle_signal(actp=0x0000000000539600, sig=11, info=0x0000000000539670, ucp=0x00000000005396c0) at thr_sig.c:244
    frame #8: 0x00000000404cf5a4 libthr.so.3`thr_sighandler(sig=11, info=0x0000000000539670, _ucp=0x00000000005396c0) at thr_sig.c:189
    frame #9: 0x0000fffffffff000
    frame #10: 0x0000000000040190 bootstrap-emacs`__start + 376
    frame #11: 0x00000000401c0018 ld-elf.so.1`.rtld_start at rtld_start.S:41

This was produced on -CURRENT if that matters:
FreeBSD build-pine64.bealak.harmless.hu 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r322723M: Tue Aug 22 07:25:52 CEST 2017     toor@marvin.harmless.hu:/tank/rpi3/crochet/work.pine64vanilla/obj/arm64.aarch64/tank/rpi3/src/sys/GENERIC-NODEBUG  arm64

So, I think this is a different kind of a fault, not related to sbrk, but it pretty much shouldn't do this.

Could you please guys take a look at it?

Best regards,
Gergely

PS: For the record here's the FreeBSD-sude report: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221961


--------------20F51CEBFD878334EA53DC6F--