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
Rare(?) random(?) crash on Android #4086
Comments
I tracked it down to |
A random memory overwrite would be quite bad. Is it possible to run with asan on android? |
It should be(https://developer.android.com/ndk/guides/asan), but on my arm phone I didnt get this to work back then. |
Ok, managed to make it run under android 11 and 10, but nothing useful from asan Under the emulator i couldn't reproduce it at all |
Might be timing related if it doesn't happen in emulator. Some race condition. But not sure how to figure out more, thread sanitizer might be worth a shot. |
the ndk seems to not support it yet. Anyway I tracked the issue down before SDL_main function is even called, so it's either a global variable or an issue outside of DDNets scope, I'll just try some SDL versions or other versions for the other libs. I'll set this issue as goal for the pr |
Ok apparently (non const, globally initialized) global variables under android are generally dangerous, didn't know That's from 2015, but that's actually something i see in the debugger too, and might be one of the issues |
Ok i fixed it with std::exit, just required to not use SDL_Quit at std::atexit |
When joining my local server.
Maybe even just the first time you start the client with a clean config
Had this on arm32 and arm64 once
This is the automatic crashlog by the system:
The text was updated successfully, but these errors were encountered: