From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#63365: 30.0.50; GCC 13.1 breaks building Emacs with native-compilation Date: Thu, 01 Jun 2023 11:42:51 +0300 Message-ID: <83wn0nd14k.fsf@gnu.org> References: <86wn1jtezk.fsf@gnu.org> <83jzxjcac9.fsf@gnu.org> <86h6smopo6.fsf@gnu.org> <835y92dfgd.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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4276"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63365@debbugs.gnu.org, arash@gnu.org, akrl@sdf.org To: =?UTF-8?Q?Andr=C3=A1s?= Svraka Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 01 10:43:24 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 1q4dtz-0000xn-Lq for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 01 Jun 2023 10:43:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q4dtt-0008G5-85; Thu, 01 Jun 2023 04:43:17 -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 1q4dtf-0008EN-I5 for bug-gnu-emacs@gnu.org; Thu, 01 Jun 2023 04:43:06 -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 1q4dte-000515-Gn for bug-gnu-emacs@gnu.org; Thu, 01 Jun 2023 04:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q4dtd-0008Oh-UZ for bug-gnu-emacs@gnu.org; Thu, 01 Jun 2023 04:43:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Jun 2023 08:43:01 +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.168560893732225 (code B ref 63365); Thu, 01 Jun 2023 08:43:01 +0000 Original-Received: (at 63365) by debbugs.gnu.org; 1 Jun 2023 08:42:17 +0000 Original-Received: from localhost ([127.0.0.1]:36844 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q4dsv-0008Nh-FL for submit@debbugs.gnu.org; Thu, 01 Jun 2023 04:42:17 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50390) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q4dsr-0008NN-5K for 63365@debbugs.gnu.org; Thu, 01 Jun 2023 04:42:16 -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 1q4dsl-0004o0-Ln; Thu, 01 Jun 2023 04:42: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:References:Subject:In-Reply-To:To:From: Date; bh=IKT2gJ0N8za7nNmytq26a6yPOCGoS/pMfWHN843fnGg=; b=GH9kdO1iYdhPnsL4uuXL rBDx3yC6P+/fAtvIQ6lRCRznxYaPWeAOxv7BR8L78h+0VA4O0oetkV3SRRJhq0e3yldHwWTil1hD+ xbefforQ4ewRY3BTV9A2ggU5V5vUaal0SutF69iEAOddjGb6742ujDH2OLZinLYBLx2/Eb/BPmveG 8d5q6cdbxBOjehq2uOowX24R0ca1FISmgDsAiM5LKfICrGa6OQ/NDEUdcu8DF4f7BPNQgz8euRLV3 /fFD5ynbQnNBsnjSF6HOXkQRbipz0J1BSN9cfwHebhAhA9q0fJMLZiUOiWE8DMJTxgHRV5nb45Qq8 2Rfux8cTk6KYnA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q4dsj-0007sY-D7; Thu, 01 Jun 2023 04:42:07 -0400 In-Reply-To: <8A3309DB-D869-4D4B-9B04-DC18D0BCD890@gmail.com> (message from =?UTF-8?Q?Andr=C3=A1s?= Svraka on Thu, 1 Jun 2023 09:37:26 +0200) 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:262688 Archived-At: > From: AndrĂ¡s Svraka > Date: Thu, 1 Jun 2023 09:37:26 +0200 > Cc: Eli Zaretskii , > Arash Esbati , > akrl@sdf.org > > Thread 1 (Thread 6872.0xb48): > #0 0x00007ffc3a8911c4 in win32u!NtUserWaitMessage () from C:\Windows\System32\win32u.dll > #1 0x00007ffc3cbfb25c in USER32!EndDialog () from C:\Windows\System32\user32.dll > #2 0x00007ffc3cbfb797 in USER32!EndDialog () from C:\Windows\System32\user32.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\System32\user32.dll > #6 0x00007ffc3cc1e488 in USER32!MessageBoxTimeoutA () from C:\Windows\System32\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=0x121dfa2d0) at C:/M/B/src/mingw-w64/mingw-w64-crt/crt/crt_handler.c:213 > #12 0x00007ffc3a7c55f0 in ucrtbase!__C_specific_handler () from C:\Windows\System32\ucrtbase.dll > #13 0x00007ffc3d2643af in ntdll!.chkstk () from C:\Windows\SYSTEM32\ntdll.dll > #14 0x00007ffc3d1f170e in ntdll!RtlVirtualUnwind2 () from C:\Windows\SYSTEM32\ntdll.dll > #15 0x00007ffc3d2633be in ntdll!KiUserExceptionDispatcher () from C:\Windows\SYSTEM32\ntdll.dll > #16 0x00007ff6747359d1 in print_object () > #17 0x00007ff6747373a1 in Fprin1_to_string () > #18 0x00007ffc0e2c267b in F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_9 (par_0=0x19dd0292503, par_1=) from c:\_\B\src\build-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=, par_1=0x0) from c:\_\B\src\build-UCRT64\native-lisp\28.2-16aa216e\byte-opt-9c5f25f5-718f764--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. Thanks.