Description
Godot version
4.4.stable
godot-cpp version
System information
Ubuntu Linux 22.04
Issue description
This may be a me problem, but I'm not sure, so just making an issue to track it, just in case :-)
At the moment, if I use cmake to build the tests, and try to run them, I get this crash:
*** stack smashing detected ***: terminated
Godot Engine v4.4.stable.official.4c311cbee - https://godotengine.org
ERROR: Tests failed to complete
When I'm testing @enetheru's PRs, I do frequently run the tests, and I even tried rolling back to older versions that I thought I had tested, but at the moment they all crash, unless I go all the way back to 7d3870b
I tried doing a git bisect
to find if there was a particular commit that broke it, but it's super hard to do because godot-cpp and Godot compatibility are intertwined and I'd need to pair with a Godot build from the same time period to be sure that that wasn't the cause of the crashes.
(Git bisect did conclude that 5c9529f was the first bad one, but I tried modifying current master
to roll back those changes and use classdb_register_extension_class3
- it still crashed with the "stack smashing" error. So, I think my bisect was tainted by not matching with older Godot builds?)
However, if I build the tests using scons
, then they run fine :-/
It's super weird!
Steps to reproduce
I'm building the tests like this:
mkdir cmake-build
cd cmake-build
cmake .. -DGODOTCPP_ENABLE_TESTING=YES -G Ninja
cmake --build . -target godot-cpp.test.template_debug
cd ..
... and then running them like this:
cd test
GODOT=/path/to/godot ./run-tests.sh
I'd love if anyone else on Linux could test and see if this is just me, or if there's a real problem here :-)
Minimal reproduction project
This is with the tests that come with the godot-cpp repo in the test/
directory