clang-tidy-misra icon indicating copy to clipboard operation
clang-tidy-misra copied to clipboard

Segfault when testing misra-cpp2008-18-4-1.

Open dapperfu opened this issue 6 years ago • 5 comments

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)

dapperfu avatar Jun 27 '18 01:06 dapperfu

Thanks for the report!

Which operating system, compiler and build type are you using?

rettichschnidi avatar Jun 28 '18 00:06 rettichschnidi

Ubuntu 18.04. Fails on both Ninja and GNUMake.

Commits of the repos:

llvm: 2da9f1a84d08bb39de022bb169d99883c3d96745 clang: d4b57547051f0bd30420c8e53dc46566c70de30f clang-tools-extra: b7f6587e294d3a6e3dc58cfb89a861ec4643322b misra: 2135e7674eba594ac9b23a6272fddaf61bc4a809

dapperfu avatar Jun 28 '18 03:06 dapperfu

Release or debug build?

ps: Will not be around for almost one week. Gonna investigate after.

rettichschnidi avatar Jun 28 '18 17:06 rettichschnidi

Release. Mostly following the build script.

And I'm in no rush.

dapperfu avatar Jul 06 '18 23:07 dapperfu

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.

rettichschnidi avatar Sep 03 '18 06:09 rettichschnidi