I have issues with a (simple) c++ application, in case the sanitizer is enabled. It runs (well /wo). The issue is not, that it claims errors in code. The whole thing terminates with a segfault and I started digging.
Now, at the very bottom, I have the following setup:
On Ubuntu 22.04 with g++-11.4 I compiled a !on-liner!
int main( int argc, char** argv ) { return 0; }
with g++-11 -std=gnu++14 -fsanitize=address -fsanitize=leak -fsanitize=undefined -fstack-protector-all main.cpp
Then: I executed the application several times and once in a while it ends like this:
AddressSanitizer:DEADLYSIGNAL
AddressSanitizer:DEADLYSIGNAL
AddressSanitizer:DEADLYSIGNAL
AddressSanitizer:DEADLYSIGNAL
AddressSanitizer:DEADLYSIGNAL
AddressSanitizer:DEADLYSIGNAL
AddressSanitizer:DEADLYSIGNAL
AddressSanitizer:DEADLYSIGNAL
AddressSanitizer:DEADLYSIGNAL
AddressSanitizer:DEADLYSIGNAL
AddressSanitizer:DEADLYSIGNAL
AddressSanitizer:DEADLYSIGNAL
AddressSanitizer:DEADLYSIGNAL
AddressSanitizer:DEADLYSIGNAL
AddressSanitizer:DEADLYSIGNAL
with an infinit loop.
Any ideas to get further in investigations?
1