-
Notifications
You must be signed in to change notification settings - Fork 257
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
[BUG] ndk stl std::thread crash #1017
Comments
We've fixed tons of bugs since then, especially around issues like this. Try with r20. |
(or do I misunderstand and you mean this bug is present in every version since r13?) |
Actually, that's probably your problem. Don't call (if that's not the case, lmk and I'll reopen) |
Another bug that might be the problem (actually seems more likely): #789 |
@DanAlbert I ALREADY use the latest ndk, still has this problem, you can check my code in JNITest.cpp, if use local DllHelper obj for dlopen dlclose, this crash happen. if use global DllHelper no crash |
Yeah, I hadn't fully understood in my first post, but what about the others? I think my most recent post is probably the source of your problems. |
NDK Version: all NDK with APP_STL :=c++_static , tested from NDK 13,
Build system: ndk-build
Host OS: Mac OS
ABI:arm64-v8a
NDK API level: APP_PLATFORM := android-24
Device API level: not set
run this demo on android device with current O or P version,
if set APP_STL := c++_static, crash occurred when outside loop i = 128,
if set APP_STL := gnustl_static, there is no crash.
but after NDK r18, there is only c++_static. I have to use NDK R17 with gnustl_static
test demo and so, the flow is:
demo:
so:
please use this link for debug:
https://github.com/doyee/ndk-bug-thread-crash
JNITest.cpp dlopen(ThreadTest.so)
ThreadTest.so will use std::thread
The text was updated successfully, but these errors were encountered: