Segfault when testing misra-cpp2008-18-4-1.
dapperfu opened this issue · 5 comments
dapperfu commented
Running:
make VERBOSE=1 -j6 check-tidy-misra
Fails with:
********************
Testing Time: 0.41s
********************
Failing Tests (1):
clang-tidy-misra unit tests :: cpp2008/18-4-1.cpp
Expected Passes : 43
Unexpected Failures: 1
Testing the command by hand just results in a segfault:
./clang-tidy /tmp/build2/tools/clang/tools/extra/clang-tidy/misra/test/cpp2008/Output/18-4-1.cpp.tmp.cpp --checks=misra-cpp2008-18-4-1 -- --std=c++11
Segmentation fault (core dumped)
rettichschnidi commented
Thanks for the report!
Which operating system, compiler and build type are you using?
dapperfu commented
Ubuntu 18.04. Fails on both Ninja and GNUMake.
Commits of the repos:
llvm: 2da9f1a84d08bb39de022bb169d99883c3d96745
clang: d4b57547051f0bd30420c8e53dc46566c70de30f
clang-tools-extra: b7f6587e294d3a6e3dc58cfb89a861ec4643322b
misra: 2135e76
rettichschnidi commented
Release or debug build?
ps: Will not be around for almost one week. Gonna investigate after.
dapperfu commented
Release. Mostly following the build script.
And I'm in no rush.
rettichschnidi commented
It looks like I am able to reproduce the crash with LLVM_USE_SANITIZER set to Address. Will work on it as "soon" as I got time.