crash when dlopen/dlclose rust-made *.so multi-times on android/ohos aarch64 #135815
Labels
C-bug
Category: This is a bug.
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
crash when dlopen/dlclose rust-made *.so multi-times on android/ohos aarch64
Senario:
Related issues #134820
reproduction code
Here's the translation of the provided text:
Known Information:
TPIDR_EL0
.has_thread_local=true and tls-model=emulated
, but these two compilation options do not seem to take effect when compiling the shared object (suspected that the standard library needs to be recompiled with these options). The implementation ofprintl
is part of the Rust standard library.tls-model=emulated
option affects the rustc compilation behavior (either usingTPIDR_EL0
or emulated TLS, by affecting the LLVM backend).This seems to be a bug in the rustc implementation. In the combination of Android and OHOS target platform options, during the println process, a thread-local variable is implicitly created, and the thread-local resources initialized through lazy_init are not properly released when dlclose is called.
The text was updated successfully, but these errors were encountered: