Recently I've encountered a problem of rustc on Alpine: linking against any share libraries works fine but results in a binary which generate SegFault errors all the time? Could I get some help here?
Below is a simple and reproducible example, tested on Alpine 3.18:
did you run the program under gdb? the debugger should be able to catch the signal and show the actual offending instruction location and the call stack.
the alpine community repository does have rust available. there's only stable rust though, nightly is unavailable.
oh, that explains why @jonh and I didn't encounter the crash. the crt-static feature is turned off by default by the apk community package maintainer. see this patch: