From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arash Esbati Newsgroups: gmane.emacs.bugs Subject: bug#63365: 30.0.50; GCC 13.1 breaks building Emacs with native-compilation Date: Sat, 27 May 2023 12:57:38 +0200 Message-ID: <867csujb31.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> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34836"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 63365@debbugs.gnu.org, akrl@sdf.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 27 13:00:30 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 1q2rev-0008uZ-FY for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 May 2023 13:00:29 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q2reX-0000BK-6Y; Sat, 27 May 2023 07:00:06 -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 1q2reV-0000B9-JM for bug-gnu-emacs@gnu.org; Sat, 27 May 2023 07:00:03 -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 1q2reU-0006kW-9g for bug-gnu-emacs@gnu.org; Sat, 27 May 2023 07:00:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q2reU-0003PU-57 for bug-gnu-emacs@gnu.org; Sat, 27 May 2023 07:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Arash Esbati Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 May 2023 11:00:02 +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.168518514912988 (code B ref 63365); Sat, 27 May 2023 11:00:02 +0000 Original-Received: (at 63365) by debbugs.gnu.org; 27 May 2023 10:59:09 +0000 Original-Received: from localhost ([127.0.0.1]:51436 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q2rdc-0003NP-GF for submit@debbugs.gnu.org; Sat, 27 May 2023 06:59:08 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49728) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q2rda-0003My-O1 for 63365@debbugs.gnu.org; Sat, 27 May 2023 06:59:07 -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 1q2rdV-0006ei-5l; Sat, 27 May 2023 06:59:01 -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=GV5lygZBA0BLLFgo0GZ+1AnD8X6kFwBbrU2yIXZG0Yw=; b=dGcN7DVXDDqTDZjbYX/Q hWJGbwcAn66EeLgdU9GBa+W94MeEQKJCgGMkcWGyvRULuiKWom3CKfMddIHbGwcEiZWtCU7cDg/vN qRs0rvp8WhbZdGhz2f0G8/0knT3kiEiUDJxolXDfd3qlLdfB0n6fQvZqfWcQ7P/kaSapUx+VDediw i8ZY0MwnECrY3r5Uy3zoyFeIVAKgRtPG6S+OsNyMTSNX31OxVkFPYBO9AZsGDuo5Tq0uZtfWH9FzL KQI8T0rL86OlylNJI0TQ/cZcpIC63hWN38OW2bEfLyp7XHM6dzn7TuifsXu9gTLeoWn4FkONfvQPJ ZMLz7JkuugmZEQ==; Original-Received: from p5b326c3d.dip0.t-ipconnect.de ([91.50.108.61] helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q2rdU-0000BT-KG; Sat, 27 May 2023 06:59:00 -0400 In-Reply-To: <83fs7ijou6.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 27 May 2023 09:00:33 +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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:262470 Archived-At: --=-=-= Content-Type: text/plain Eli Zaretskii writes: > Is this what you get for all the addresses in emacs_backtrace.txt? > Some of them, especially the ones close to the top, are expected to > yield nothing, but not all of them. > > Also, try doing the same after letting the program run to the > beginning of the 'main' function, like this: > > cd emacs-build-test/src > gdb ./emacs.exe > (gdb) start run -batch --no-site-file --no-site-lisp ... > > (with the rest of the arguments you saw in the crashed command). Ok, I tried it with the addresses emitted during compilation of apropos.el and for some of them, the result of '(gdb) list *0xNNNN' is attached. Is this what you're looking for? If so, I will do the exercise for all of the addresses and post the result. Best, Arash --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=addresses.txt (gdb) list *0x00007ff60c14a12e 0x7ff60c14a12e is in emacs_abort (w32fns.c:11103). 11098 hm_kernel32 = LoadLibrary ("Kernel32.dll"); 11099 s_pfn_CaptureStackBackTrace = (CaptureStackBackTrace_proc) 11100 get_proc_addr (hm_kernel32, "RtlCaptureStackBackTrace"); 11101 } 11102 if (s_pfn_CaptureStackBackTrace) 11103 return s_pfn_CaptureStackBackTrace (0, min (BACKTRACE_LIMIT_MAX, limit), 11104 buffer, NULL); 11105 return 0; 11106 } 11107 (gdb) list *0x00007ff60c018be1 0x7ff60c018be1 is in terminate_due_to_signal (emacs.c:459). 454 have to unblock it if we want to really receive it. */ 455 #ifndef MSDOS 456 { 457 sigset_t unblocked; 458 sigemptyset (&unblocked); 459 sigaddset (&unblocked, sig); 460 pthread_sigmask (SIG_UNBLOCK, &unblocked, 0); 461 } 462 #endif 463 (gdb) list *0x00007ff60c039601 0x7ff60c039601 is at sysdep.c:1793. 1788 { 1789 deliver_process_signal (sig, handle_fatal_signal); 1790 } 1791 1792 static void 1793 deliver_fatal_thread_signal (int sig) 1794 { 1795 deliver_thread_signal (sig, handle_fatal_signal); 1796 } 1797 (gdb) list *0x00007ff60c1ae84a 0x7ff60c1ae84a is in _gnu_exception_handler (C:/M/B/src/mingw-w64/mingw-w64-crt/crt/crt_handler.c:210). 205 C:/M/B/src/mingw-w64/mingw-w64-crt/crt/crt_handler.c: No such file or directory. (gdb) list *0x00007ff60c09e1b0 0x7ff60c09e1b0 is in styled_format (editfns.c:3460). 3455 and in that case, we won't know it here. */ 3456 3457 /* True if the output should be a multibyte string, 3458 which is true if any of the inputs is one. */ 3459 bool multibyte = multibyte_format; 3460 for (ptrdiff_t i = 1; !multibyte && i < nargs; i++) 3461 if (STRINGP (args[i]) && STRING_MULTIBYTE (args[i])) 3462 multibyte = true; 3463 3464 Lisp_Object quoting_style = message ? Ftext_quoting_style () : Qnil; (gdb) list *0x00007ff60c0a80fa 0x7ff60c0a80fa is in Ffuncall (eval.c:3008). 3003 maybe_gc (); 3004 3005 if (debug_on_next_call) 3006 do_debug_on_call (Qlambda, count); 3007 3008 Lisp_Object val = funcall_general (args[0], nargs - 1, args + 1); 3009 3010 lisp_eval_depth--; 3011 if (backtrace_debug_on_exit (specpdl_ref_to_ptr (count))) 3012 val = call_debugger (list2 (Qexit, val)); (gdb) list *0x00007ff60c0a86ca 0x7ff60c0a86ca is in Fapply (eval.c:2635). 2630 2631 if (numargs == 0) 2632 return Ffuncall (max (1, nargs - 1), args); 2633 else if (numargs == 1) 2634 { 2635 args [nargs - 1] = XCAR (spread_arg); 2636 return Ffuncall (nargs, args); 2637 } 2638 2639 numargs += nargs - 2; (gdb) list *0x00007ff60c0a80fa 0x7ff60c0a80fa is in Ffuncall (eval.c:3008). 3003 maybe_gc (); 3004 3005 if (debug_on_next_call) 3006 do_debug_on_call (Qlambda, count); 3007 3008 Lisp_Object val = funcall_general (args[0], nargs - 1, args + 1); 3009 3010 lisp_eval_depth--; 3011 if (backtrace_debug_on_exit (specpdl_ref_to_ptr (count))) 3012 val = call_debugger (list2 (Qexit, val)); (gdb) list *0x00007ff60c0a86ca 0x7ff60c0a86ca is in Fapply (eval.c:2635). 2630 2631 if (numargs == 0) 2632 return Ffuncall (max (1, nargs - 1), args); 2633 else if (numargs == 1) 2634 { 2635 args [nargs - 1] = XCAR (spread_arg); 2636 return Ffuncall (nargs, args); 2637 } 2638 2639 numargs += nargs - 2; --=-=-=--