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#63365: 30.0.50; GCC 13.1 breaks building Emacs with native-compilation Date: Thu, 01 Jun 2023 04:49:07 -0400 Message-ID: References: <86wn1jtezk.fsf@gnu.org> <86v8h2k475.fsf@gnu.org> <83r0rqaycc.fsf@gnu.org> <86wn1h3dpz.fsf@gnu.org> <835y91brfv.fsf@gnu.org> <86fs849xb0.fsf@gnu.org> <83ild08i8j.fsf@gnu.org> <86y1lwmfcw.fsf@gnu.org> <83ild06sb5.fsf@gnu.org> <83a5yc6m2e.fsf@gnu.org> <86lehbi6pu.fsf@gnu.org> <83r0r3jjka.fsf@gnu.org> <86wn0unbjd.fsf@gnu.org> <83fs7ijou6.fsf@gnu.org> <867csujb31.fsf@gnu.org> <835y8ej9f3.fsf@gnu.org> <86zg5psmnj.fsf@gnu.org> <83h6rxhrmd.fsf@gnu.org> <3C16E19D-FB9F-4EEF-85C2-8A6643663E25@gmail.com> <8A3309DB-D869-4D4B-9B04-DC18D0BCD890@gmail.com> <83wn0nd14k.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24909"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 63365@debbugs.gnu.org, arash@gnu.org, =?UTF-8?Q?Andr=C3=A1s?= Svraka , akrl@sdf.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 01 12:33:03 2023 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 1q4fc3-00066J-4a for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 01 Jun 2023 12:33:01 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q4fbB-0006L4-IE; Thu, 01 Jun 2023 06:32:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q4fbA-0006Jz-An for bug-gnu-emacs@gnu.org; Thu, 01 Jun 2023 06:32:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q4fbA-00067s-2F for bug-gnu-emacs@gnu.org; Thu, 01 Jun 2023 06:32:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q4fb9-0003IJ-Tg for bug-gnu-emacs@gnu.org; Thu, 01 Jun 2023 06:32:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Jun 2023 10:32:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63365 X-GNU-PR-Package: emacs Original-Received: via spool by 63365-submit@debbugs.gnu.org id=B63365.168561550612583 (code B ref 63365); Thu, 01 Jun 2023 10:32:03 +0000 Original-Received: (at 63365) by debbugs.gnu.org; 1 Jun 2023 10:31:46 +0000 Original-Received: from localhost ([127.0.0.1]:37095 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q4far-0003Gl-BR for submit@debbugs.gnu.org; Thu, 01 Jun 2023 06:31:46 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40378) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q4dzd-0000Ar-Ef for 63365@debbugs.gnu.org; Thu, 01 Jun 2023 04:49:14 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q4dzX-0006Ki-J6; Thu, 01 Jun 2023 04:49:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=Fv5/IngXmQY8yycT6OzXCz8qb/lj6yhmwsfgtaPo48E=; b=gGWFEgPxZzsw0j2qWhxz juLOvT+EvcZv0Uke+oPzFw4KzVfeOdx+Q8xSc3qR0gwKs7Rciq9SkH2VuYdL0kCEBF0D1034s0/EI +m+6O4q5khyp7SXReU1ZPLKhXzX/BjHvzlVAb+ety9KoijwXB7gnXY5dOvFTspixpN3ASW/RKXSAd TtKbbGzVi+kcQrkVnDga8sqaaq6qADstl4DKMBOvYiqEJouWM1tENZGMkuic9KQKG1zGZyoLRUnSz R+irIZ5Hk8xQC3n3Xwp1vTXnzgSJR0NPVp9qSmvCgu0mkTjb4YKOyBg17CNqNskADIze4qgAK/91n 4oKongaJ1O3xcw==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1q4dzX-00009r-7I; Thu, 01 Jun 2023 04:49:07 -0400 In-Reply-To: <83wn0nd14k.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 01 Jun 2023 11:42:51 +0300") X-Mailman-Approved-At: Thu, 01 Jun 2023 06:31:36 -0400 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:262691 Archived-At: Eli Zaretskii writes: >> From: Andr=C3=A1s Svraka >> Date: Thu, 1 Jun 2023 09:37:26 +0200 >> Cc: Eli Zaretskii , >> Arash Esbati , >> akrl@sdf.org >>=20 >> Thread 1 (Thread 6872.0xb48): >> #0 0x00007ffc3a8911c4 in win32u!NtUserWaitMessage () from C:\Windows\Sy= stem32\win32u.dll >> #1 0x00007ffc3cbfb25c in USER32!EndDialog () from C:\Windows\System32\u= ser32.dll >> #2 0x00007ffc3cbfb797 in USER32!EndDialog () from C:\Windows\System32\u= ser32.dll >> #3 0x00007ffc3cc1ef66 in USER32!SoftModalMessageBox () from C:\Windows\= System32\user32.dll >> #4 0x00007ffc3cc1d8a1 in USER32!DrawStateA () from C:\Windows\System32\= user32.dll >> #5 0x00007ffc3cc1e695 in USER32!MessageBoxTimeoutW () from C:\Windows\S= ystem32\user32.dll >> #6 0x00007ffc3cc1e488 in USER32!MessageBoxTimeoutA () from C:\Windows\S= ystem32\user32.dll >> #7 0x00007ffc3cc1e09e in USER32!MessageBoxA () from C:\Windows\System32= \user32.dll >> #8 0x00007ff6747977d5 in emacs_abort () >> #9 0x00007ff674696308 in terminate_due_to_signal () >> #10 0x00007ff6746af949 in deliver_fatal_thread_signal () > > This means Emacs crashed during native compilation, and is waiting for > "someone" to respond to the Abort dialog. Since you are running CI > unattended, it might be a good idea to modify lisp/Makefile to pass > > --eval '(setq w32-disable-abort-dialog t)' > > option on the batch compilation command line. > > Why Emacs crashed is a separate issue: > >> #11 0x00007ff6747f4992 in _gnu_exception_handler (exception_data=3D0x121= dfa2d0) at C:/M/B/src/mingw-w64/mingw-w64-crt/crt/crt_handler.c:213 >> #12 0x00007ffc3a7c55f0 in ucrtbase!__C_specific_handler () from C:\Windo= ws\System32\ucrtbase.dll >> #13 0x00007ffc3d2643af in ntdll!.chkstk () from C:\Windows\SYSTEM32\ntdl= l.dll >> #14 0x00007ffc3d1f170e in ntdll!RtlVirtualUnwind2 () from C:\Windows\SYS= TEM32\ntdll.dll >> #15 0x00007ffc3d2633be in ntdll!KiUserExceptionDispatcher () from C:\Win= dows\SYSTEM32\ntdll.dll >> #16 0x00007ff6747359d1 in print_object () >> #17 0x00007ff6747373a1 in Fprin1_to_string () >> #18 0x00007ffc0e2c267b in F616e6f6e796d6f75732d6c616d626461_anonymous_la= mbda_9 (par_0=3D0x19dd0292503, par_1=3D) from c:\_\B\src\bui= ld-UCRT64\native-lisp\28.2-16aa216e\byte-opt-9c5f25f5-718f7647.eln >> #19 0x00007ff67471640f in Ffuncall () >> #20 0x00007ffc0e2c4007 in >> F627974652d6f7074696d697a652d666f726d_byte_optimize_form_0 >> (par_0=3D, par_1=3D0x0) from >> c:\_\B\src\build-UCRT64\native-lisp\28.2-16aa216e\byte-opt-9c5f25f5-718f= 764--Type >> for more, q to quit, c to continue without paging--c >> 7.eln > > This tells that the crash was inside print_object, which was called by > prin1-to-string, probably because Emacs tried to print some invalid > Lisp object. Since there are no line numbers in the backtrace, I > cannot tell more. > > I also understand that the crash is avoided by using lower > optimization levels, and perhaps other non-default GCC options could > be involved. So the jury is still out on whether this is an Emacs bug > or a (MinGW) GCC bug. Didn't had the time to follow this thread carefully, but I think would be interesting to know if someone did try a native compiled Emacs on GCC 13.1. Andrea