-
Notifications
You must be signed in to change notification settings - Fork 6
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
segment fault in alpine linux #51
Comments
Hej @plusls, could you add some more detail about your setup? Which version of |
I use the rust-magic-sys 0.3.0, and I try to use it in docker image
deps version:
I direct build my program with cargo build --release, without other envirom var. my code:
And I saw that I found that it success link to libmagic I don't know why, the value in |
any progress? @robo9k |
I can reproduce this, but since I'm usually using neither Alpine nor MUSL I don't really know why the shared You can fix this by "dynamically linking" to libc (but this seems to link to
This pretty much seems to be the same as https://users.rust-lang.org/t/segfault-when-linking-against-shared-libraries-on-alpine/98629 and even the |
And in my gdb I found that the reference of
magic_open
is null, I have no ideal why.alpine env:
based on rust:1.76-alpine
The text was updated successfully, but these errors were encountered: