Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upPanic on None when joining on thread which is called yield_now #31316
Comments
This comment has been minimized.
This comment has been minimized.
|
I can reproduce this on playpen but not locally unfortunately. The assertion being tripped here indicates that This would probably be easier to debug if we could reproduce it somewhere where we could debug it, but I would also be happy for now just leaving the assertion in place but switching to using @zonyitoo did you discover this through the playpen itself, or was this something that happened locally? |
alexcrichton
added
T-libs
I-nominated
I-unsound 💥
labels
Jan 31, 2016
This comment has been minimized.
This comment has been minimized.
|
Oh wait after a little more investigation, it looks like this program exhibits similar behavior. It looks like `sched_yield causes the thread to be terminated due to playpen considering it a bad system call. The behavior here appears to be that the thread is immediately terminated and yet I'm removing the nominated/unsound tags as if the thread is being killed this isn't a safety issue, it seems like it's just a bug that may want a better error message. |
alexcrichton
removed
I-nominated
I-unsound 💥
T-libs
labels
Jan 31, 2016
This comment has been minimized.
This comment has been minimized.
|
I discovered it on playpen itself. It seems to works well on my laptop. So it likely is a bug in playpen? |
This comment has been minimized.
This comment has been minimized.
|
In some sense, yes. You could ask the playpen maintainers to add |
This comment has been minimized.
This comment has been minimized.
|
Ok, closing and going to ask playpen maintainers to fix this. |
zonyitoo commentedJan 31, 2016
Minimal test case:
This piece of code will panic with output:
Tested on playpen with stable Rust.