previously, we only held a lock for printing the backtrace itself. since all threads were printing to the same file descriptor, that meant random output in the default panic hook would be interleaved with the backtrace. now, we hold the lock for the full duration of the hook, and the output is ordered.
6 lines
264 B
Plaintext
6 lines
264 B
Plaintext
thread '<unnamed>' panicked at $DIR/synchronized-panic-handler.rs:10:5:
|
|
oops oh no woe is me
|
|
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
|
thread '<unnamed>' panicked at $DIR/synchronized-panic-handler.rs:10:5:
|
|
oops oh no woe is me
|