unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Arash Esbati <arash@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 63365@debbugs.gnu.org, akrl@sdf.org
Subject: bug#63365: 30.0.50; GCC 13.1 breaks building Emacs with native-compilation
Date: Sat, 27 May 2023 12:57:38 +0200	[thread overview]
Message-ID: <867csujb31.fsf@gnu.org> (raw)
In-Reply-To: <83fs7ijou6.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 27 May 2023 09:00:33 +0300")

[-- Attachment #1: Type: text/plain, Size: 778 bytes --]

Eli Zaretskii <eliz@gnu.org> 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

[-- Attachment #2: addresses.txt --]
[-- Type: text/plain, Size: 3574 bytes --]

(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;

  reply	other threads:[~2023-05-27 10:57 UTC|newest]

Thread overview: 73+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-08  8:16 bug#63365: 30.0.50; GCC 13.1 breaks building Emacs with native-compilation Arash Esbati
2023-05-08 11:48 ` Eli Zaretskii
2023-05-08 14:36   ` Arash Esbati
2023-05-08 15:13     ` Eli Zaretskii
2023-05-08 19:34       ` Arash Esbati
2023-05-09  5:05         ` Eli Zaretskii
2023-05-09 12:12           ` Arash Esbati
2023-05-09 12:49             ` Eli Zaretskii
2023-05-10 12:37               ` Arash Esbati
2023-05-10 12:48                 ` Eli Zaretskii
2023-05-10 14:27                   ` Arash Esbati
2023-05-10 16:54                     ` Eli Zaretskii
2023-05-10 19:08                       ` Eli Zaretskii
2023-05-11 10:06                         ` Eli Zaretskii
2024-01-26 13:11                           ` Eli Zaretskii
2024-01-26 18:24                             ` Arash Esbati
2024-01-26 18:59                               ` Eli Zaretskii
2024-01-26 20:33                                 ` Arash Esbati
2024-02-01 10:39                                   ` Arash Esbati
2024-02-01 11:02                                     ` Eli Zaretskii
2024-02-01 11:11                                       ` Arash Esbati
2024-02-01 11:27                                         ` Eli Zaretskii
2023-05-26 13:05                         ` Arash Esbati
2023-05-26 13:42                           ` Eli Zaretskii
2023-05-26 19:21                             ` Arash Esbati
2023-05-27  6:00                               ` Eli Zaretskii
2023-05-27 10:57                                 ` Arash Esbati [this message]
2023-05-27 11:33                                   ` Eli Zaretskii
2023-05-27 17:35                                     ` Arash Esbati
2023-05-28  6:55                                       ` Eli Zaretskii
2023-06-01  7:31                                         ` András Svraka
2023-06-01  7:37                                           ` András Svraka
2023-06-01  8:42                                             ` Eli Zaretskii
2023-06-01  8:49                                               ` Andrea Corallo
2023-06-01 15:33                                                 ` András Svraka
2023-06-01 15:30                                               ` András Svraka
2023-06-01 16:25                                                 ` Eli Zaretskii
2023-06-08 10:21                                         ` Arash Esbati
2023-06-08 13:19                                           ` Eli Zaretskii
2023-06-08 14:02                                             ` Andrea Corallo
2023-06-08 14:18                                               ` Eli Zaretskii
2023-06-08 14:39                                                 ` Andrea Corallo
2023-06-08 22:08                                             ` Arash Esbati
2023-06-08 22:27                                         ` Arash Esbati
2023-06-16  9:04 ` Cyril Arnould
2023-06-16 10:31   ` Eli Zaretskii
2023-06-16 14:49     ` Andrea Corallo
2023-06-16 14:52       ` Andrea Corallo
2023-06-22 20:34   ` Arash Esbati
2023-06-23  5:32     ` Eli Zaretskii
2023-06-23 11:41       ` Arash Esbati
2023-06-23 12:15         ` Eli Zaretskii
2023-06-23 12:50           ` Arash Esbati
2023-06-24  9:17           ` Deus Max
2023-06-24  9:21             ` Eli Zaretskii
2023-06-24 14:41               ` Deus Max
2023-06-24 15:05                 ` Eli Zaretskii
2023-06-25 13:51       ` Andrea Corallo
2023-06-25 15:41         ` Eli Zaretskii
2023-06-25 18:11           ` Andrea Corallo
2023-06-25 18:31             ` Eli Zaretskii
2023-06-26  7:03               ` Andrea Corallo
2023-06-26 22:04 ` Cyril Arnould
2023-06-27  2:30   ` Eli Zaretskii
2023-06-27 19:28 ` Cyril Arnould
2023-06-27 20:22   ` Andrea Corallo
2023-06-28 11:37   ` Eli Zaretskii
2023-06-28 23:16 ` Cyril Arnould
2023-06-29  5:20   ` Eli Zaretskii
2023-06-29  6:36 ` Cyril Arnould
2023-06-29  8:21   ` Andrea Corallo
2023-06-29  9:16     ` bug#63365: AW: " Cyril Arnould
     [not found] <AS4PR10MB6110F1445D9658E48521DDD2E358A@AS4PR10MB6110.EURPRD10.PROD.OUTLOOK.COM>
2023-06-20  8:31 ` Andrea Corallo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=867csujb31.fsf@gnu.org \
    --to=arash@gnu.org \
    --cc=63365@debbugs.gnu.org \
    --cc=akrl@sdf.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).