View previous topic :: View next topic |
Author |
Message |
leyvi Apprentice

Joined: 08 Sep 2023 Posts: 191
|
Posted: Wed Mar 12, 2025 6:28 pm Post subject: app-editors/emacs-30.1-r1 fails: Segfault |
|
|
app-editors/emacs-30.1-r1 fails to build, due to this happening: Code: | Backtrace:
../src/emacs(+0x18cef0) [0x55a9b1393ef0]
../src/emacs(+0x2c622) [0x55a9b1233622]
../src/emacs(+0x2cb4f) [0x55a9b1233b4f]
../src/emacs(+0x2cb56) [0x55a9b1233b56]
../src/emacs(+0x18afed) [0x55a9b1391fed]
/lib64/libc.so.6(+0x41140) [0x7f565ae4b140]
/usr/lib/gcc/x86_64-pc-linux-gnu/14/libgccjit.so.0(+0xc7d137) [0x7f565c07d137]
/usr/lib/gcc/x86_64-pc-linux-gnu/14/libgccjit.so.0(+0xcc6d08) [0x7f565c0c6d08]
/usr/lib/gcc/x86_64-pc-linux-gnu/14/libgccjit.so.0(+0x1aa40e8) [0x7f565cea40e8]
/usr/lib/gcc/x86_64-pc-linux-gnu/14/libgccjit.so.0(+0x1aa491d) [0x7f565cea491d]
/usr/lib/gcc/x86_64-pc-linux-gnu/14/libgccjit.so.0(+0x1aa492f) [0x7f565cea492f]
/usr/lib/gcc/x86_64-pc-linux-gnu/14/libgccjit.so.0(+0x1a9477f) [0x7f565ce9477f]
/usr/lib/gcc/x86_64-pc-linux-gnu/14/libgccjit.so.0(+0x12fee90) [0x7f565c6fee90]
/usr/lib/gcc/x86_64-pc-linux-gnu/14/libgccjit.so.0(+0x1301501) [0x7f565c701501]
/usr/lib/gcc/x86_64-pc-linux-gnu/14/libgccjit.so.0(+0x1301af9) [0x7f565c701af9]
/usr/lib/gcc/x86_64-pc-linux-gnu/14/libgccjit.so.0(+0x1d1057c) [0x7f565d11057c]
/usr/lib/gcc/x86_64-pc-linux-gnu/14/libgccjit.so.0(+0x1d0fe0d) [0x7f565d10fe0d]
/usr/lib/gcc/x86_64-pc-linux-gnu/14/libgccjit.so.0(+0xc7e628) [0x7f565c07e628]
/usr/lib/gcc/x86_64-pc-linux-gnu/14/libgccjit.so.0(+0xc60ab3) [0x7f565c060ab3]
/usr/lib/gcc/x86_64-pc-linux-gnu/14/libgccjit.so.0(gcc_jit_context_compile_to_file+0x9f) [0x7f565c05887f]
../src/emacs(+0x25e9a0) [0x55a9b14659a0]
../src/emacs(+0x2061ea) [0x55a9b140d1ea]
/var/tmp/portage/app-editors/emacs-30.1-r1/work/emacs-30.1/native-lisp/30.1-7c31b688/comp-7672a6ed-a60aebab.eln(F636f6d702d2d636f6d70696c652d637478742d746f2d66696c65_comp__compile_ctxt_to_file_0+0x192) [0x7f565559a562]
../src/emacs(+0x2061ea) [0x55a9b140d1ea]
/var/tmp/portage/app-editors/emacs-30.1-r1/work/emacs-30.1/native-lisp/30.1-7c31b688/comp-7672a6ed-a60aebab.eln(F636f6d702d2d66696e616c31_comp__final1_0+0x98) [0x7f565559a6f8]
../src/emacs(+0x2061ea) [0x55a9b140d1ea]
/var/tmp/portage/app-editors/emacs-30.1-r1/work/emacs-30.1/native-lisp/30.1-7c31b688/comp-7672a6ed-a60aebab.eln(F636f6d702d2d66696e616c_comp__final_0+0x77) [0x7f565559a8e7]
../src/emacs(+0x2061ea) [0x55a9b140d1ea]
/var/tmp/portage/app-editors/emacs-30.1-r1/work/emacs-30.1/native-lisp/30.1-7c31b688/comp-7672a6ed-a60aebab.eln(F636f6d702d2d6e61746976652d636f6d70696c65_comp__native_compile_0+0x7d6) [0x7f565559cf26]
../src/emacs(+0x2061ea) [0x55a9b140d1ea]
/var/tmp/portage/app-editors/emacs-30.1-r1/work/emacs-30.1/native-lisp/30.1-7c31b688/comp-7672a6ed-a60aebab.eln(F62617463682d6e61746976652d636f6d70696c65_batch_native_compile_0+0x18e) [0x7f565559dafe]
../src/emacs(+0x2061ea) [0x55a9b140d1ea]
/var/tmp/portage/app-editors/emacs-30.1-r1/work/emacs-30.1/native-lisp/30.1-7c31b688/comp-7672a6ed-a60aebab.eln(F62617463682d627974652b6e61746976652d636f6d70696c65_batch_bytenative_compile_0+0x144) [0x7f565559de64]
../src/emacs(+0x2061ea) [0x55a9b140d1ea]
/var/tmp/portage/app-editors/emacs-30.1-r1/work/emacs-30.1/src/../native-lisp/30.1-7c31b688/preloaded/startup-bbc6ea72-bc20aae4.eln(F636f6d6d616e642d6c696e652d31_command_line_1_0+0xcb7) [0x7f56560359d7]
../src/emacs(+0x2061ea) [0x55a9b140d1ea]
/var/tmp/portage/app-editors/emacs-30.1-r1/work/emacs-30.1/src/../native-lisp/30.1-7c31b688/preloaded/startup-bbc6ea72-bc20aae4.eln(F636f6d6d616e642d6c696e65_command_line_0+0x13c4) [0x7f565602ce44]
../src/emacs(+0x2061ea) [0x55a9b140d1ea]
/var/tmp/portage/app-editors/emacs-30.1-r1/work/emacs-30.1/src/../native-lisp/30.1-7c31b688/preloaded/startup-bbc6ea72-bc20aae4.eln(F6e6f726d616c2d746f702d6c6576656c_normal_top_level_0+0xf00) [0x7f5656029420]
../src/emacs(+0x204e0c) [0x55a9b140be0c]
../src/emacs(+0x205663) [0x55a9b140c663]
...
make[3]: *** [Makefile:330: org/org-element.elc] Segmentation fault (core dumped) | The full log file can be found here, and the output of `emerge --info =app-editors/emacs-30.1-r1` can be found here. Does anyone know what the solution is? |
|
Back to top |
|
 |
sam_ Developer


Joined: 14 Aug 2020 Posts: 2209
|
Posted: Wed Mar 12, 2025 6:57 pm Post subject: |
|
|
I think I've mentioned this to you before, but please please don't do -w in *FLAGS. It does not just disable warnings, it also affects errors, and it will confuse configure tests and lead to hard-to-debug issues (not necessarily showing up in the package you think either, as it can break feature detection).
Can you build Emacs and GCC with debugging symbols please (see https://wiki.gentoo.org/wiki/Debugging#Per-package), and then run the failing command under gdb?
Code: |
cd /var/tmp/portage/app-editors/emacs-30.1-r1/work/emacs-30.1/lisp
gdb --args '../src/emacs' -batch --no-site-file --no-site-lisp \
-l ./emacs-lisp/loaddefs-gen.elc \
-f loaddefs-generate--emacs-batch . ./calc ./calendar ./cedet ./cedet/ede ./cedet/semantic ./cedet/semantic/analyze ./cedet/semantic/bovine ./cedet/semantic/decorate ./cedet/semantic/symref ./cedet/semantic/wisent ./cedet/srecode ./emacs-lisp ./emulation ./erc ./eshell ./gnus ./image ./international ./language ./leim ./leim/ja-dic ./leim/quail ./mail ./mh-e ./net ./nxml ./org ./play ./progmodes ./textmodes ./url ./use-package ./vc
|
then inside of gdb, 'r', then 'bt' |
|
Back to top |
|
 |
leyvi Apprentice

Joined: 08 Sep 2023 Posts: 191
|
Posted: Thu Mar 13, 2025 7:10 pm Post subject: |
|
|
Sure, I'll give it a shot tomorrow morning.
Not so relevant, but in my case, removing `-w` from my `*FLAGS` didn't change anything: https://0x0.st/8QsH.log. |
|
Back to top |
|
 |
leyvi Apprentice

Joined: 08 Sep 2023 Posts: 191
|
Posted: Fri Mar 14, 2025 1:19 pm Post subject: |
|
|
Code: | root /var/tmp/portage/app-editors/emacs-30.1-r1/work/emacs-30.1/lisp (0) $ gdb --args '../src/emacs' -batch --no-site-file --no-site-lisp \
-l ./emacs-lisp/loaddefs-gen.elc \
-f loaddefs-generate--emacs-batch . ./calc ./calendar ./cedet ./cedet/ede ./cedet/semantic ./cedet/semantic/analyze ./cedet/semantic/bovine ./cedet/semantic/decorate ./cedet/semantic/symref ./cedet/semantic/wisent ./cedet/srecode ./emacs-lisp ./emulation ./erc ./eshell ./gnus ./image ./international ./language ./leim ./leim/ja-dic ./leim/quail ./mail ./mh-e ./net ./nxml ./org ./play ./progmodes ./textmodes ./url ./use-package ./vc
GNU gdb (Gentoo 16.2 vanilla) 16.2
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.gentoo.org/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ../src/emacs...
(gdb) r
Starting program: /var/tmp/portage/app-editors/emacs-30.1-r1/work/emacs-30.1/src/emacs -batch --no-site-file --no-site-lisp -l ./emacs-lisp/loaddefs-gen.elc -f loaddefs-generate--emacs-batch . ./calc ./calendar ./cedet ./cedet/ede ./cedet/semantic ./cedet/semantic/analyze ./cedet/semantic/bovine ./cedet/semantic/decorate ./cedet/semantic/symref ./cedet/semantic/wisent ./cedet/srecode ./emacs-lisp ./emulation ./erc ./eshell ./gnus ./image ./international ./language ./leim ./leim/ja-dic ./leim/quail ./mail ./mh-e ./net ./nxml ./org ./play ./progmodes ./textmodes ./url ./use-package ./vc
warning: os_agent_id 31724: `Raphael' architecture not supported.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
INFO Scraping 1565 files for loaddefs...
INFO Scraping 1565 files for loaddefs...done
INFO Scraping 24 files for loaddefs...
INFO Scraping 24 files for loaddefs...done
[Inferior 1 (process 2018) exited normally]
(gdb) bt
No stack.
(gdb) | I'm not really sure if this says anything about the problem...
Here's the core dump by the way (xz-compressed): core.
I wonder if `warning: os_agent_id 31724: `Raphael' architecture not supported.` is relevant? |
|
Back to top |
|
 |
sam_ Developer


Joined: 14 Aug 2020 Posts: 2209
|
Posted: Fri Mar 14, 2025 3:16 pm Post subject: |
|
|
Maybe we used the wrong command and another thing is crashing? It indeed ran fine in your output under gdb.
EDIT: yes, sorry, it should be:
Code: |
'../src/emacs' -batch --no-site-file --no-site-lisp --eval "(setq load-prefer-newer t byte-compile-warnings 'all)" --eval "(setq org--inhibit-version-check t)" \
-l comp -f batch-byte+native-compile org/org-element.el
|
|
|
Back to top |
|
 |
|