-
-
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
Segmentation fault on macOS #1534
Comments
Hm, that code isn't doing anything unsafe... @carllerche possibly a threadpool bug? |
Are you using an old version of OSX? There's a bug in some versions of the linker which can cause crashes when interacting with thread locals: rust-lang/rust#50586 |
@sfackler I'm running 10.12.6 I tried it on another computer running 10.13.4 and that worked. Then I tested with Thanks, now I have a workaround and can continue with my project 👍 Edit: Hmm, but now I get another issue. With |
Okey, so I found a way to get this to work on 10.12.6. Add |
Well, I would still like to figure out if it is a bug in Tokio or not. It sounds like it is not a Tokio bug, but I'm not sure what the best way to confirm this would be. |
I, uh... wat? If this happens with thread locals, shouldn't it also occur often with the futures crate accessing the current task, and in Tokio accessing the current reactor and timer and stuff? Sorry for the false alarm about the Tokio threadpool. |
So, can I just close this as a bug in macOS? |
Hi and thanks for an awesome crate!
With the latest version of hyper (0.12.0) I get a strange crash with this simple example code.
Everything compiles, but when I try to call the server with:
It crashes.
This is the details I get: https://gist.github.com/logaritmisk/22d5202559e1d1c52e4f69d6ce4e4262
Strange thing is that it works when I don't compile with the release profile or if I use the current nightly.
I think this is the commit that "broke" my example.
It works on:
Versions of rustc:
rustc 1.26.1 (827013a31 2018-05-25)
rustc 1.27.0-beta.8 (fe75e4464 2018-05-26)
rustc 1.28.0-nightly (4ecf12bf0 2018-06-02)
Let me know if you want more information of if there is something I should test :)
The text was updated successfully, but these errors were encountered: