-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 a static binary built on Alpine musl #6934
Comments
looks like a bdwgc bug |
actually, that gdb |
Thanks @RX14 , after continuing:
|
useful... |
Sounds a lot like #4276 |
Compiling with |
Reduced example: raise ""
Duplicate of #4276 |
@j8r does |
I've followed @ysbaddaden 's suggestion. The backtrace is empty, but at least the static linking procudes a working binary. |
I use a library I made, clicr library, which consists of recursive macros.
When compiling this program statically with
crystal build --static cli.cr
in analpine:latest
, running./cli ver
give this result:Code:
In
gdb
, whenrun
and thenbacktrace
, I got:Building the code with dynamic linking works -
crystal build cli.cr && ./cli ver
returns0.1
Crystal version:
The text was updated successfully, but these errors were encountered: