From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#57789: Emacs 28.1 clone build with native compilation crashes on s390x Date: Fri, 16 Sep 2022 08:39:35 +0000 Message-ID: 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="10247"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 57789@debbugs.gnu.org, Paul Eggert , Rob Browning To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 16 10:42:25 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 1oZ6vZ-0002VG-Bk for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Sep 2022 10:42:25 +0200 Original-Received: from localhost ([::1]:39090 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oZ6vX-0008Sb-9D for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Sep 2022 04:42:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47678) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZ6tI-00061R-FZ for bug-gnu-emacs@gnu.org; Fri, 16 Sep 2022 04:40:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42524) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oZ6tG-0003Qx-4T for bug-gnu-emacs@gnu.org; Fri, 16 Sep 2022 04:40:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oZ6tF-0005Ib-UW for bug-gnu-emacs@gnu.org; Fri, 16 Sep 2022 04:40:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Sep 2022 08:40:01 +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.166331759120345 (code B ref 57789); Fri, 16 Sep 2022 08:40:01 +0000 Original-Received: (at 57789) by debbugs.gnu.org; 16 Sep 2022 08:39:51 +0000 Original-Received: from localhost ([127.0.0.1]:41602 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZ6t4-0005I5-VD for submit@debbugs.gnu.org; Fri, 16 Sep 2022 04:39:51 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:58799) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZ6t2-0005Hv-85 for 57789@debbugs.gnu.org; Fri, 16 Sep 2022 04:39:49 -0400 Original-Received: from ma.sdf.org (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 28G8dZX5027378 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Fri, 16 Sep 2022 08:39:36 GMT In-Reply-To: <83wna5yuws.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 15 Sep 2022 10:10:59 +0300") 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:242705 Archived-At: Eli Zaretskii writes: >> From: Rob Browning >> Cc: 57789@debbugs.gnu.org >> Date: Wed, 14 Sep 2022 15:19:24 -0500 >> >> Eli Zaretskii writes: >> >> > Please run the crashing command under GDB, and when it segfaults, >> > produce the C-level and Lisp-level backtrace, and post them here. >> >> Starting from scratch with the emacs-28.1 commit I can reproduce the >> failure when building via >> >> ./configure --prefix=/home/rlb/opt/emacs-tmp --with-native-compilation >> >> It crashes with the same segfault repeatably, i.e. if you run make >> again, it crashes again on the previously mentioned "... -l comp -f >> batch-byte+native-compile international/titdic-cnv.el" invocation. That >> crash output is attached below. >> >> After adjusting the Makefile.in invocation so I could run it with gdb in >> exactly the same environment once it's failing on that command, I >> captured the backtrace and included it below. > > Thanks. The backtrace indicates that the crash is in GC. This > probably means we have some fundamental problem on that architecture. > Andrea, any advice for how to investigate? Mmmh one cheap way to maybe gather more info is to have a run under valgrind. Other than that I typically start debugging with GDB and possibly rr. Like what is (or was) the object the GC is crashing on? Why? What's the last piece of code that touched it? Why? IIUC here we have no debug symbols so this makes it very difficult. BTW the fact that -g has an impact on the crash is very odd Andrea