Is it a bug in rust that it lets me call eprintln
in the drop
of a thread_local
object, but it crashes at runtime?
@Alex Crichton ^ -- working on porting my sigaltstack code from C++ to Rust and hitting this error
@Dan Gohman its definitely dubious yeah, although not necessarily a bug
Dtors in tls run in an extremely limited context
But we probably should panic in linstd
hm no this is definitely a bug
I'll dig in
It looks like it definitely is the eprintln, which I was only using for debugging, so I have a workaround, which is to not use eprintln :-}
@Dan Gohman https://github.com/rust-lang/rust/pull/69955
Last updated: Nov 22 2024 at 16:03 UTC