You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If harfbuzz is system-provided instead of builtin when building Godot, loading GDMP library will cause immediate crash on said builds.
This is a problem because unlike official Godot editor that has everything builtin, distribution packagers might configure Godot to use system library for some modules (e.g. Arch, Flatpak), and users of these builds will run into such issue.
The crash is triggered by calling std::call_once during static initialization of the library.
j20001970
changed the title
Segmentation fault when loading the library if certain module of the editor is system-provided
Segmentation fault when loading the library if Godot is built with system-provided harfbuzzDec 27, 2024
If
harfbuzz
is system-provided instead of builtin when building Godot, loading GDMP library will cause immediate crash on said builds.This is a problem because unlike official Godot editor that has everything builtin, distribution packagers might configure Godot to use system library for some modules (e.g. Arch, Flatpak), and users of these builds will run into such issue.
The crash is triggered by calling
std::call_once
during static initialization of the library.Upstream issue: godotengine/godot#91401
Known workarounds:
LD_PRELOAD
environment variable.icu4c
the same way asharfbuzz
when building Godot, however writing to stdout from GDExtension will lead to segfault ificu4c
is system-provided. (Writing to stdout from GDExtension crash the engine with system-providedicu4c
godotengine/godot#100301)The text was updated successfully, but these errors were encountered: