Open matthiaskrgr opened 6 years ago
Thanks! I doubt that this is a simplecpp issue. Because according to the call stack it does not happen during preprocessing. I assume that you don't see any crash with the simplecpp utility.
Ok. From looking at the stacktrace this looked to me like it was happening in simplecpp but I probably interpreted that wrongly then ....
Link to cppcheck trac ticket: https://trac.cppcheck.net/ticket/8585
See https://github.com/danmar/simplecpp/pull/132
BTW, cppcheck's travis/appveyor jobs should also contain --check-config
runs
in none-asan mode, it only displays a bunch of corrupted characters but does not crash, so I doubt we would have found this on travis :/
That is the current state after my - obviously failed - attempt to cure a program termination after a C++ exception was not caught at all.
The code triggering for that is within cppcheck. One might consider some changes within simplecpp, maybe using some suitable pointer class instead of the reference, though within C++03 it would require a few lines of additional code...
@matthiaskrgr Does this problem still exist?
I have built Cppcheck 1.89 dev via CXXFLAGS="-fsanitize=address -Og -g3" make cppcheck
and run ./cppcheck --check-config gui/
and ./cppcheck --check-config ./
.
So it looks like there is no longer an issue.
As pointed out this issue has probably been resolved since quite a while - but we are not testing --check-config
in Cppcheck at all. I filed https://trac.cppcheck.net/ticket/13207 about this and will close this ticket when that has been implemented.
crashes inside simplecpp: