-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 in alpine docker image while initializing client #1072
Comments
Well that's pretty strange. Could you try debugging a little more, perhaps using |
Here is the strace: Before crash
Crash
|
Additionally, I have Valgrind log here:
|
Ah interesting. It could be the crash is from native-tls... You could file an issue there. Also, you could try disabling native-tls in reqwest and enabling rustls. |
In the past there have been caveats cross-compiling with musl around getting openssl to link correctly. Workarounds involved explicitly adding an Using rustls should sidestep the issue since you'd no longer need to link openssl. |
Enabling rustls works for me! Thanks guys! |
Can you expand on what you mean by enable rustls to sidestep the tls issue? I have been stuck on this for days, and can't get my head wrapped around how to fix this. I have a really simple implementation here where I just create an actix-web route, initialize a new reqwest client, and I segfault when calling the route. I can see that it is related to the TLS failing to do something, but can't seem to get anything to work to fix it. |
This issue can only be reproduced in Alpine docker image: alpine or Rust alpine image: rust:alpine. Debian based images work just fine with the same code.
Min code
Running in actix-web::main
Error log
There isn't any log whatsoever. According to docker exit code 139, there is a segfault occurred.
Possible cause
I don't think it's caused by missing libraries or the log should show what's missing but instead, there are no logs.
Maybe something wrong with alpine's musl libc vs glibc?
The text was updated successfully, but these errors were encountered: