emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [scratch/igc] 985247b6bee crash on Linux, KDE, Wayland


From: Pip Cet
Subject: Re: [scratch/igc] 985247b6bee crash on Linux, KDE, Wayland
Date: Thu, 05 Sep 2024 11:09:49 +0000

"Eval EXEC" <execvy@gmail.com> writes:

> Hello,
> I'm helping to test scratch/igc branch, commit: 985247b6bee

Thanks for the reports!

> I build emacs by:
> ```
> make extraclean
> ./autogen.sh \
>   && ./configure CFLAGS='-O3 -mtune=native -march=native' \
>   --prefix=$(realpath ../emacs-build/$(git branch --show-current | sed 
> 's/\//_/g'))\
>   --with-mps=yes \
>   --with-imagemagick  \
>   --with-modules \
>   --without-compress-install \
>   --with-native-compilation  --with-mailutils\
>   --enable-link-time-optimization \
>   --with-tree-sitter --with-xinput2  \
>   --with-dbus  --with-native-compilation=aot \
>   --with-file-notification=inotify\
>   && make -j30 install
> ```

What's your CPU, and which compiler is in use?  "-march=native" means
"optimize for the current CPU", so it's difficult to reproduce crashes
without that knowledge.

I'd recommend these CFLAGS:

-g3 -ggdb -fno-omit-frame-pointer

in addition to what you have.

> #0  0x00007f84a90a2efc in __pthread_kill_implementation () from 
> /nix/store/dbcw19dshdwnxdv5q2g6wldj6syyvq7l-glibc-2.39-52/lib/libc.so.6
> #1  0x00007f84a9052e86 in raise () from 
> /nix/store/dbcw19dshdwnxdv5q2g6wldj6syyvq7l-glibc-2.39-52/lib/libc.so.6
> #2  0x0000000000429886 in terminate_due_to_signal ()
> #3  0x0000000000431d79 in igc_assert_fail.lto_priv[cold] ()
> #4  0x00000000007b0e60 in LockClaim ()
> #5  0x00000000007ddea5 in ArenaEnterLock ()
> #6  0x00000000007e01a1 in mps_ap_fill ()
> #7  0x00000000006e74b6 in alloc_impl.lto_priv ()
> #8  0x000000000060993b in list2 ()
> #9  0x000000000042da87 in xsignal2 ()
> #10 0x000000000042c379 in wrong_type_argument ()
> #11 0x0000000000430730 in get_process.lto_priv[cold] ()
> #12 0x00000000006bd653 in process_send_signal ()
> #13 0x00000000006be017 in kill_buffer_processes ()
> #14 0x000000000058efb5 in shut_down_emacs ()
> #15 0x0000000000429852 in terminate_due_to_signal ()
> #16 0x000000000042a38f in handle_sigsegv.lto_priv[cold] ()
> #17 <signal handler called>
> #18 0x00007f84a905316b in kill () from 
> /nix/store/dbcw19dshdwnxdv5q2g6wldj6syyvq7l-glibc-2.39-52/lib/libc.so.6
> #19 0x00000000007e3919 in sigHandle ()
> #20 <signal handler called>
> #21 0x000000000075d716 in dflt_scan_obj.isra ()
> #22 0x00000000006e288d in dflt_scan ()
> #23 0x00000000007979d6 in amcSegScanNailedRange ()
> #24 0x00000000007b07b2 in amcSegScan ()
> #25 0x00000000007d27fc in traceScanSegRes ()
> #26 0x00000000007d29b9 in traceScanSeg ()
> #27 0x00000000007d31f6 in TraceAdvance ()
> #28 0x00000000007d3771 in TracePoll ()
> #29 0x00000000007d397b in ArenaPoll ()
> #30 0x00000000007e01ef in mps_ap_fill ()
> #31 0x00000000006e74b6 in alloc_impl.lto_priv ()
> #32 0x000000000066f9dc in copy_font_spec ()

Can you disassemble 'copy_font_spec' and 'Flist' by running:

$ gdb /path/to/emacs
(gdb) disass copy_font_spec
(gdb) disass Flist

and post the output?  Also, when you post backtraces, once you've
enabled '-g3 -ggdb', can you try using "bt full" rather than "bt" to get
more useful backtraces?

> What information should I provide to help investigating this?

Ideally, you could run emacs from within gdb and keep the gdb session
open after a crash (but remember to use "handle SIGSEGV nostop pass" if
you don't source .gdbinit which should do that automatically, or it will
stop at the first (harmless) SIGSEGV).  Please let us know if and when
you get a crash that way and we can hopefully debug this further.

Thanks!

Pip




reply via email to

[Prev in Thread] Current Thread [Next in Thread]