Skip to content
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

detach() should not be used #4089

Open
npoltorapavlo opened this issue Jun 1, 2023 · 2 comments
Open

detach() should not be used #4089

npoltorapavlo opened this issue Jun 1, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@npoltorapavlo
Copy link
Contributor

When plugin deinits, the library is unloaded. Detached thread will be using address that is no longer in the address space of the application. Hence segfault. Crashes like this with empty stack trace are not possible to triage.

https://github.com/search?q=repo%3Ardkcentral%2Frdkservices%20detach()&type=code

@npoltorapavlo
Copy link
Contributor Author

npoltorapavlo commented Jul 26, 2023

empty stack trace examples

14|0|||||0x9414b650
14|1|libpthread-2.31.so|start_thread|/usr/src/debug/glibc/2.31+gitAUTOINC+3ef8be9b89-r0/git/nptl/pthread_create.c|477|0x1
13|0|||||0xafa12a0e
13|1|libstdc++.so.6.0.28|std::execute_native_thread_routine|/usr/src/debug/gcc-runtime/9.3.0-r0/arm-rdk-linux-gnueabi/libstdc++-v3/src/c++11/../../../../../../../../../../work-shared/gcc-9.3.0-r0/gcc-9.3.0/libstdc++-v3/src/c++11/thread.cc|80|0x3
13|2|libpthread-2.31.so|start_thread|/usr/src/debug/glibc/2.31+gitAUTOINC+1094741224-r0/git/nptl/pthread_create.c|477|0x1
22|0|||||0xedae0c6c

@npoltorapavlo npoltorapavlo added the bug Something isn't working label Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant