-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Noisy compilation on FreeBSD, warns of calling destructor in dlclose'd library #120413
Comments
Bisected with regressed nightly: nightly-2024-01-24 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: kdump
|
std: thread_local::register_dtor fix proposal for FreeBSD. following-up 5d3d347 commit, rust started to spin __cxa_thread_call_dtors warnings even without any TLS usage. using instead home made TLS destructor handler `register_dtor_fallback`. close rust-lang#120413
std: thread_local::register_dtor fix proposal for FreeBSD. following-up 5d3d347 commit, rust started to spin __cxa_thread_call_dtors warnings even without any TLS usage. using instead home made TLS destructor handler `register_dtor_fallback`. close rust-lang#120413
std: thread_local::register_dtor fix proposal for FreeBSD. following-up 5d3d347 commit, rust started to spin __cxa_thread_call_dtors warnings even without any TLS usage. using instead home made TLS destructor handler `register_dtor_fallback`. close rust-lang#120413
Rollup merge of rust-lang#120430 - devnexen:fix_tls_dtor_fbsd, r=cuviper std: thread_local::register_dtor fix proposal for FreeBSD. following-up 5d3d347 commit, rust started to spin __cxa_thread_call_dtors warnings even without any TLS usage. using instead home made TLS destructor handler `register_dtor_fallback`. close rust-lang#120413
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.
The text was updated successfully, but these errors were encountered: