-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Package request: cppcheck #2951
Comments
Potentially related to android/ndk#289, but I tried the workarounds to no prevail, and the NDK version is supposedly already patched. I wonder if this might alternatively be a system library issue, which is one of the reasons I suggested providing the system C/C++ libraries ourselves in #2874. |
Could you provide example code that causes error? |
Oh you mean tests from cppcheck |
Yes, when you run It also occasionally happens when running cppcheck itself, so it isn't just a problem with the testsuite. Side note: Keep your sanity, and before you build, go to line 83 of the Makefile and remove the |
it works fine in aarch64 but segfaults in arm. |
Yeah, I have been noticing weird stuff like that. I was trying to test a custom version of binutils, and it works on x86, x86_64, and ARMv7, but not Aarch64. 🤔 Is this NDK release just really broken? |
Package is available in unstable-packages repository.
|
I have already tried building cppcheck on my LG G3. It successfully compiles, but when tested, there are crashes in __cxa_end_cleanup.
It seems to occur whenever an exception is caught, as removing the throws prevents the crash, but causes tests to fail.
Notable crashes are ErrorLogger::ErrorMessage::deserialize and TestGarbage::wrong_syntax1 (the crash is in TestGarbage::checkCode).
GDB shows that the program crashes because __cxa_end_cleanup calls itself recursively, then the program aborts because of the stack overflow. It is really difficult to debug, as I am not very good with GDB.
I have compiled both HEAD and the latest release with both clang++-7 and g++-8 (from its-pointless).
LG G3 (LG D851)
Qualcomm Snapdragon 801 (ARMv7a)
LineageOS 15.1
The text was updated successfully, but these errors were encountered: