-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Panics don't lock stderr while printing panic info #124995
Copy link
Copy link
Open
Labels
A-panicArea: Panicking machineryArea: Panicking machineryC-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-panicArea: Panicking machineryArea: Panicking machineryC-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Panics don't seem to lock stderr while printing, so if multiple threads panic at once, this will happen:
As you can see, i forgot a
todo!()in the code and 4 threads executed it at the same timeMeta
rustc --version --verbose: