-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
segfault when running basic example on Alpine (musl) #387
Comments
Looks that this may be really GTK or GTK-rs bug(strange that when I run similar commands a while ago, then it worked fine) When running czkawka, then it crash in a little different place
which probably points at this line |
Also any of the |
The problem seems to be related to no shared libraries having been loaded automatically at that point and instead all functions from shared libraries pointing to
However it is linked to the corresponding shared libraries
|
This is some fallout from rust-lang/compiler-team#422 . If you build with |
See rust-lang/rust#82912 for more info on this, TLDR things blow up when using a static musl version and dynamic libraries that are linked against a different dynamic musl. This may be fixed by rust in the future by using dynamic musl on musl systems. |
Thanks for the details! Interestingly, when installing Rust from the Alpine repository, the crash cannot be reproduced. For example, when compiling with the official 1.56.1 version, the binaries crash, but when installing the same version from the Alpine repository, they don't crash. So it seems that they fixed Rust issues on their side. See https://git.alpinelinux.org/aports/tree/community/rust?h=master |
Yes, rust from Alpine’s repos is patched to use -crt-static by default. |
Initializing gtk seems to crash on Alpine Linux (which uses musl). The segmentation fault can be reproduced by running the
basics
example (or any other).To reproduce, use an Alpine Docker container:
Run the following commands to build examples:
And run the
basics
example:You get the following crash:
GDB backtrace from generate core:
The text was updated successfully, but these errors were encountered: