Avoid allocation in the signal handler to fix a deadlock
413f499
Fixes #24881 CC rust-lang/backtrace-rs#265