Closed ryanavella closed 10 months ago
Bisected with cargo bisect-rustc
:
regressed nightly: nightly-2024-01-24 searched commit range: https://github.com/rust-lang/rust/compare/d5fd0997291ca0135401a39dff25c8a9c13b8961...5d3d3479d774754856db2db3e439dfb88ef3c52f regressed commit: https://github.com/rust-lang/rust/commit/5d3d3479d774754856db2db3e439dfb88ef3c52f
I think it is probably #120188 (@devnexen) which is awkward because all that change did was enable thread-local support on FreeBSD. 😕
Can reproduce too, however no problem on netbsd (reading no crash neither). It might be valuable to get an insight of what might happen in the system side of things.
Rustc doesn't dlclose any of the libraries it dlopen's. And if you don't use proc macros or a codegen backend other than the default LLVM, it doesn't dlopen any library.
ktrace for the curious:
Apologies if this isn't the right place, it isn't obvious to me if this originates in rustc or should be upstreamed to FreeBSD.
My limited understand of the warnings however suggests it could be a misuse of
thread_local
s on our end.The following comment from cxa_thread_atexit_impl.c seems relevant:
Meta
I can't reproduce this on latest stable, just latest nightly so far.