Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
app-editors/emacs-30.1-r1 fails: Segfault
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
leyvi
Apprentice
Apprentice


Joined: 08 Sep 2023
Posts: 189

PostPosted: Wed Mar 12, 2025 6:28 pm    Post subject: app-editors/emacs-30.1-r1 fails: Segfault Reply with quote

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
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 2204

PostPosted: Wed Mar 12, 2025 6:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum