Project

General

Profile

« Previous | Next » 

Revision b8f49888

Added by alanwu (Alan Wu) 8 months ago

Avoid setting RUST_BACKTRACE environment while panicking

The 2024 edition pointed out that setting env vars in multiple threaded
programs is unsafe, due to it being thread unsafe in glibc. Sure don't
want to crash while already crashing! Always grab a backtrace with
force_backtrace().