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: Mon, 08 May 2023 21:34:22 +0200 [thread overview]
Message-ID: <86v8h2k475.fsf@gnu.org> (raw)
In-Reply-To: <835y92dfgd.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 08 May 2023 18:13:06 +0300")
Eli Zaretskii <eliz@gnu.org> writes:
> What you need is to run Emacs under GDB while it (Emacs) executes the
> command which crashes. To find out what is that crashing command, you
> should say:
>
> $ make V=1
Thanks for the detailed instructions; I will play with it, not there yet.
> The recipe goes like this:
>
> sed -n 's/.*\[\(.*\)]$/\1/p' BACKTRACE | addr2line -C -f -i -p -e BINDIR/EMACS-BINARY
>
> (It is broken in the manual into two lines, because the line is long,
> but it is a single long command that runs Sed and pipes its output
> into addr2line, a program that comes with GNU Binutils.)
Yes, I think I grasped that one. The problem I'm facing is that my
lisp/emacs_backtrace.txt looks like this:
Backtrace:
00007ff61166a12e
00007ff611538be1
00007ff611559601
00007ff6116ce84a
00007ff9b7977ff0
...
and the sed command doesn't match on the addresses above. It works for
the example given in the manual like this:
Backtrace:
emacs[0x5094e4]
emacs[0x4ed3e6]
emacs[0x4ed504]
/lib64/libpthread.so.0[0x375220efe0]
/lib64/libpthread.so.0(read+0xe)[0x375220e08e]
emacs[0x509af6]
emacs[0x5acc26]
So in my case, sed returns nothing which is piped into addr2line.
> Can you show a full C compilation command of one of the C source
> files? Like this:
>
> $ cd /path/to/emacs/src
> $ make data.o -W data.c V=1
>
> I'd like to see all of the compiler's command-line options your build
> uses.
It looks like this; line-breaks added manually:
--8<---------------cut here---------------start------------->8---
../lib-src/make-docfile -d . -g dispnew.o frame.o scroll.o \
xdisp.o menu.o window.o charset.o coding.o category.o ccl.o \
character.o chartab.o bidi.o term.o terminal.o xfaces.o \
emacs.o keyboard.o macros.o keymap.o sysdep.o bignum.o buffer.o \
filelock.o insdel.o marker.o minibuf.o fileio.o dired.o cmds.o \
casetab.o casefiddle.o indent.o search.o regex-emacs.o undo.o \
alloc.o pdumper.o data.o doc.o editfns.o callint.o eval.o \
floatfns.o fns.o sort.o font.o print.o lread.o emacs-module.o \
syntax.o bytecode.o comp.o dynlib.o process.o gnutls.o callproc.o \
region-cache.o sound.o timefns.o atimer.o doprnt.o intervals.o \
textprop.o composite.o xml.o lcms.o w32notify.o profiler.o \
decompress.o thread.o systhread.o sqlite.o treesit.o itree.o \
hbfont.o w32fns.o w32menu.o w32reg.o w32font.o w32term.o w32xfns.o \
w32select.o w32uniscribe.o w32cygwinx.o w32.o w32console.o \
w32heap.o w32inevt.o w32proc.o w32image.o fontset.o fringe.o \
image.o json.o > globals.tmp
../build-aux/move-if-change globals.tmp globals.h
echo timestamp > gl-stamp
gcc -c -mtune=generic \
-DUSE_CRT_DLL=1 \
-I /d/arash/Dev/Emacs/emacs-build-test/nt/inc -Demacs \
-I. -I. -I../lib -I../lib -mtune=generic \
-isystem C:/msys64/mingw64/include/librsvg-2.0 \
-isystem C:/msys64/mingw64/include/glib-2.0 \
-isystem C:/msys64/mingw64/lib/glib-2.0/include \
-isystem C:/msys64/mingw64/include/gdk-pixbuf-2.0 \
-isystem C:/msys64/mingw64/include/libpng16 \
-isystem C:/msys64/mingw64/include/webp \
-DLIBDEFLATE_DLL \
-isystem C:/msys64/mingw64/include/cairo \
-isystem C:/msys64/mingw64/include/freetype2 \
-isystem C:/msys64/mingw64/include/harfbuzz \
-isystem C:/msys64/mingw64/include/pixman-1 \
-isystem C:/msys64/mingw64/include/libxml2 \
-isystem C:/msys64/mingw64/include/webp \
-isystem C:/msys64/mingw64/include/harfbuzz \
-isystem C:/msys64/mingw64/include/freetype2 \
-isystem C:/msys64/mingw64/include/libpng16 \
-isystem C:/msys64/mingw64/include/glib-2.0 \
-isystem C:/msys64/mingw64/lib/glib-2.0/include \
-MMD -MF deps/data.d -MP \
-isystem C:/msys64/mingw64/include/p11-kit-1 \
-fno-common \
-Wall \
-Warith-conversion \
-Wdate-time \
-Wdisabled-optimization \
-Wdouble-promotion \
-Wduplicated-cond \
-Wextra \
-Wformat-signedness \
-Winit-self \
-Winvalid-pch \
-Wlogical-op \
-Wmissing-declarations \
-Wmissing-include-dirs \
-Wmissing-prototypes \
-Wnested-externs \
-Wnull-dereference \
-Wold-style-definition \
-Wopenmp-simd \
-Wpacked \
-Wpointer-arith \
-Wstrict-prototypes \
-Wsuggest-attribute=noreturn \
-Wsuggest-final-methods \
-Wsuggest-final-types \
-Wtrampolines \
-Wuninitialized \
-Wunknown-pragmas \
-Wunused-macros \
-Wvariadic-macros \
-Wvector-operation-performance \
-Wwrite-strings \
-Warray-bounds=2 \
-Wattribute-alias=2 \
-Wformat=2 \
-Wformat-truncation=2 \
-Wimplicit-fallthrough=5 \
-Wshift-overflow=2 \
-Wuse-after-free=3 \
-Wvla-larger-than=4031 \
-Wno-missing-field-initializers \
-Wno-override-init \
-Wno-sign-compare \
-Wno-type-limits \
-Wno-unused-parameter \
-Wno-format-nonliteral \
-Wno-bidi-chars \
-Wno-pointer-sign \
-g3 -O2 -gdwarf-2 data.c
--8<---------------cut here---------------end--------------->8---
Best, Arash
next prev parent reply other threads:[~2023-05-08 19:34 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 [this message]
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
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=86v8h2k475.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).