Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[godot] GitHub workflow fails when building app including GDExtension #2740

Open
badlogic opened this issue Jan 28, 2025 · 1 comment
Open

Comments

@badlogic
Copy link
Collaborator

See https://esotericsoftware.com/forum/d/28029-spine-godot-gdextension-cause-segmentation-fault-when-export-with-github-actions

Includes repro repo.

@AlexanderLife
Copy link

I too have the Segmentation fault on git pull https://github.com/godotengine/godot.git
I thought maybe it was because I was on the gcc 9.4 but I upgraded to gcc 13.1 and a different Segmentation fault happens.

read up about it but it seems like it could be a lot of different things
https://www.geeksforgeeks.org/segmentation-fault-c-cpp/

on gcc-9 in code::blocks I get

-------------- Build: Debug in godot (compiler: GNU GCC Compiler)---------------

Checking if target is up-to-date: make -q -f Makefile Debug
Running command: scons
scons: Reading SConscript files ...
Automatically detected platform: linuxbsd
Auto-detected 12 CPU cores available for build parallelism. Using 11 cores by default. You can override it with the -j or num_jobs arguments.
Building for platform "linuxbsd", architecture "x86_64", target "editor".
Checking for C header file mntent.h... (cached) yes
scons: done reading SConscript files.
scons: Building targets ...
�[34mGenerating �[1mcore/disabled_classes.gen.h�[22;23;24;29m ...�[0m

�[34mGenerating �[1mplatform/linuxbsd/wayland/protocol/viewporter.gen.h�[22;23;24;29m ...�[0m
%3Cstdin%3E:185: element event: validity error : No declaration for attribute type of element event


  •                                                 *
    
  • WARNING: XML failed validation against built-in DTD *
  •                                                 *
    

�[34mGenerating �[1mplatform/linuxbsd/wayland/protocol/wayland.gen.h�[22;23;24;29m ...�[0m

�[34mCompiling �[1mthirdparty/glad/glx.c�[22;23;24;29m ...�[0m
%3Cstdin%3E:185: element event: validity error : No declaration for attribute type of element event


  •                                                 *
    
  • WARNING: XML failed validation against built-in DTD *
  •                                                 *
    

�[34mGenerating �[1mplatform/linuxbsd/wayland/protocol/wayland.gen.c�[22;23;24;29m ...�[0m

�[34mCompiling �[1mthirdparty/harfbuzz/src/hb-font.cc�[22;23;24;29m ...�[0m
during GIMPLE pass: ssa
platform/linuxbsd/x11/display_server_x11.cpp: In member function 'virtual bool InputEventGesture::_property_can_revertv(const StringName&) const':
platform/linuxbsd/x11/display_server_x11.cpp:7203:1: internal compiler error: Segmentation fault
7203 | }
| ^
0x7f93cfdd208f ???
/build/glibc-LcI20x/glibc-2.31/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
0x7f93cfdb3082 __libc_start_main
../csu/libc-start.c:308
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See file:///usr/share/doc/gcc-9/README.Bugs for instructions.
scons: *** [platform/linuxbsd/x11/display_server_x11.linuxbsd.editor.x86_64.o] Error 1
scons: building terminated because of errors.
INFO: Time elapsed: 00:00:23.29
Process terminated with status 2 (0 minute(s), 24 second(s))
3 error(s), 0 warning(s) (0 minute(s), 24 second(s))

and on gcc-13 on the command line I get

scons: Reading SConscript files ...
Automatically detected platform: linuxbsd
Auto-detected 12 CPU cores available for build parallelism. Using 11 cores by default. You can override it with the -j or num_jobs arguments.
Building for platform "linuxbsd", architecture "x86_64", target "editor".
Checking for C header file mntent.h... (cached) yes
scons: done reading SConscript files.
scons: Building targets ...
Generating core/disabled_classes.gen.h ...

Generating platform/linuxbsd/wayland/protocol/xdg_activation.gen.h ...
%3Cstdin%3E:185: element event: validity error : No declaration for attribute type of element event


  •                                                 *
    
  • WARNING: XML failed validation against built-in DTD *
  •                                                 *
    

Generating platform/linuxbsd/wayland/protocol/xdg_decoration.gen.h ...

Generating platform/linuxbsd/wayland/protocol/viewporter.gen.c ...
%3Cstdin%3E:185: element event: validity error : No declaration for attribute type of element event


  •                                                 *
    
  • WARNING: XML failed validation against built-in DTD *
  •                                                 *
    

Compiling platform/linuxbsd/wayland/protocol/viewporter.gen.c ...

Compiling thirdparty/harfbuzz/src/hb-number.cc ...
In file included from ./core/io/resource.h:36,
from ./core/crypto/crypto.h:35,
from main/main.cpp:35:
./servers/text/text_server_extension.h: In member function 'bool TextServerExtension::_gdvirtual__font_render_range_overridden() const':
./core/object/gdvirtual.gen.inc:3594:9: internal compiler error: Segmentation fault
3594 | }
| ^~
3595 | FORCE_INLINE static MethodInfo gdvirtual##m_name##_get_method_info() {
|
./servers/text/text_server_extension.h:340:9: note: in expansion of macro 'GDVIRTUAL4'
340 | GDVIRTUAL4(_font_render_range, RID, const Vector2i &, int64_t, int64_t);
| ^~~~~~~~~~
Compiling thirdparty/harfbuzz/src/hb-ot-cff1-table.cc ...
Compiling thirdparty/harfbuzz/src/hb-ot-cff2-table.cc ...
Compiling thirdparty/harfbuzz/src/hb-ot-color.cc ...
Compiling thirdparty/harfbuzz/src/hb-ot-face.cc ...
Compiling thirdparty/harfbuzz/src/hb-ot-font.cc ...
0xdd3543 crash_signal
../../src/gcc/toplev.cc:314
0x7f1e1fb3208f ???
/build/glibc-LcI20x/glibc-2.31/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
0x72bb6e cp_fold_r
../../src/gcc/cp/cp-gimplify.cc:1044
0x105e093 walk_tree_1(tree_node**, tree_node* ()(tree_node**, int, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >, tree_node ()(tree_node**, int, tree_node* ()(tree_node**, int, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >))
../../src/gcc/tree.cc:11327
0x105e1f4 walk_tree_1(tree_node**, tree_node
()(tree_node**, int, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >, tree_node ()(tree_node**, int, tree_node* ()(tree_node**, int, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >))
../../src/gcc/tree.cc:11558
0x105e1f4 walk_tree_1(tree_node**, tree_node
()(tree_node**, int, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >, tree_node ()(tree_node**, int, tree_node* ()(tree_node**, int, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >))
../../src/gcc/tree.cc:11558
0x105e48e walk_tree_1(tree_node**, tree_node
()(tree_node**, int, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >, tree_node ()(tree_node**, int, tree_node* ()(tree_node**, int, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >))
../../src/gcc/tree.cc:11442
0x726031 cp_fold_function(tree_node
)
../../src/gcc/cp/cp-gimplify.cc:1199
0x75c320 finish_function(bool)
../../src/gcc/cp/decl.cc:18268
0x828ea7 cp_parser_function_definition_after_declarator
../../src/gcc/cp/parser.cc:32016
0x8291b2 cp_parser_late_parsing_for_member
../../src/gcc/cp/parser.cc:32982
0x8010f6 cp_parser_class_specifier
../../src/gcc/cp/parser.cc:26522
0x8020f9 cp_parser_type_specifier
../../src/gcc/cp/parser.cc:19504
0x803094 cp_parser_decl_specifier_seq
../../src/gcc/cp/parser.cc:16057
0x804124 cp_parser_simple_declaration
../../src/gcc/cp/parser.cc:15276
0x833e87 cp_parser_declaration
../../src/gcc/cp/parser.cc:15089
0x8349c9 cp_parser_toplevel_declaration
../../src/gcc/cp/parser.cc:15110
0x8349c9 cp_parser_translation_unit
../../src/gcc/cp/parser.cc:5131
0x8349c9 c_parse_file()
../../src/gcc/cp/parser.cc:49576
0x9238d9 c_common_parse_file()
../../src/gcc/c-family/c-opts.cc:1248
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See file:///usr/share/doc/gcc-13/README.Bugs for instructions.
scons: *** [main/main.linuxbsd.editor.x86_64.o] Error 1
scons: building terminated because of errors.
INFO: Time elapsed: 00:00:23.88

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants