From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rob Browning Newsgroups: gmane.emacs.bugs Subject: bug#57789: Emacs 28.1 clone build with native compilation crashes on s390x Date: Sat, 17 Sep 2022 16:00:17 -0500 Message-ID: <87wna1k97i.fsf@trouble.defaultvalue.org> References: <87h71aix5r.fsf@trouble.defaultvalue.org> <83tu5a3cdw.fsf@gnu.org> <87pmfxhfoz.fsf@trouble.defaultvalue.org> <83wna5yuws.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35886"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57789@debbugs.gnu.org To: Eli Zaretskii , Andrea Corallo , Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 17 23:01:33 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oZewP-0009CT-4i for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Sep 2022 23:01:33 +0200 Original-Received: from localhost ([::1]:49792 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oZewN-0007rB-LJ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Sep 2022 17:01:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35804) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZevw-0007pZ-82 for bug-gnu-emacs@gnu.org; Sat, 17 Sep 2022 17:01:22 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48180) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oZevu-00029R-O2 for bug-gnu-emacs@gnu.org; Sat, 17 Sep 2022 17:01:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oZevu-0004Gi-7F for bug-gnu-emacs@gnu.org; Sat, 17 Sep 2022 17:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Rob Browning Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Sep 2022 21:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57789 X-GNU-PR-Package: emacs Original-Received: via spool by 57789-submit@debbugs.gnu.org id=B57789.166344842116344 (code B ref 57789); Sat, 17 Sep 2022 21:01:02 +0000 Original-Received: (at 57789) by debbugs.gnu.org; 17 Sep 2022 21:00:21 +0000 Original-Received: from localhost ([127.0.0.1]:47258 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZevF-0004FX-4y for submit@debbugs.gnu.org; Sat, 17 Sep 2022 17:00:21 -0400 Original-Received: from defaultvalue.org ([45.33.119.55]:59682 ident=postfix) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZevC-0004FJ-9Q for 57789@debbugs.gnu.org; Sat, 17 Sep 2022 17:00:20 -0400 Original-Received: from trouble.defaultvalue.org (localhost [127.0.0.1]) (Authenticated sender: rlb@defaultvalue.org) by defaultvalue.org (Postfix) with ESMTPSA id 819AE2015F; Sat, 17 Sep 2022 16:00:17 -0500 (CDT) Original-Received: by trouble.defaultvalue.org (Postfix, from userid 1000) id 1D36414E081; Sat, 17 Sep 2022 16:00:17 -0500 (CDT) In-Reply-To: <83wna5yuws.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:242909 Archived-At: Eli Zaretskii writes: > Rob Browning writes: > Does the build of the same code with the same options sans > "--with-native-compilation" succeed, or does it also crash with > similar symptoms? Works fine. > You can source it manually from the GDB prompt, when the segfault > happens, and then invoke xbacktrace manually, can't you? Yep. Breakpoint 1 at 0x2aa0004ef30: file emacs.c, line 400. Breakpoint 2 at 0x2aa0010f168: file xterm.c, line 10291. (gdb) xbacktrace "Automatic GC" (0x0) "internal-macroexpand-for-load" (0xffffa6a8) "eval-buffer" (0xffffaa28) "let" (0xffffac10) "let" (0xffffae28) "unwind-protect" (0xffffaff0) "let" (0xffffb1f8) "if" (0xffffb3c8) "load-with-code-conversion" (0xffffb650) "time-since" (0xffffbba8) "comp--native-compile" (0xffffbd38) "batch-native-compile" (0xffffbef0) "batch-byte+native-compile" (0xffffc080) "funcall" (0xffffc078) "if" (0xffffc268) "cond" (0xffffc438) "let*" (0xffffc618) "while" (0xffffc7e8) "let*" (0xffffc9c8) "progn" (0xffffcb98) "if" (0xffffccc0) "let" (0xffffceb8) "let" (0xffffd0b0) "command-line-1" (0xffffd280) "let" (0xffffd570) "command-line" (0xffffd740) "unwind-protect" (0xffffd9f0) "let" (0xffffdbe8) "if" (0xffffddb8) "normal-top-level" (0xffffdf88) > Too bad, it means we have a heisenbug on our hands, which will make it > even harder to debug (as if debugging crashes in GC were not hard > enough already). > > What happens if you modify this variable: > > (defcustom native-comp-debug (if (eq 'windows-nt system-type) 1 0) > > to have the value 1 or even zero, and then rebuild from scratch? does > the build succeed then? No, appears to crash in the same way. > Yes, running the full test suite would be the logical next step. Oh, I had run it, I just meant that I'd likely want to double-check via testing in a loop to try to see if it might be an intermittent failure. Thanks -- 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