Skip to content
This repository has been archived by the owner on Dec 31, 2020. It is now read-only.

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

Open
dapperfu opened this issue Jun 27, 2018 · 5 comments
Open

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

dapperfu opened this issue Jun 27, 2018 · 5 comments

Comments

@dapperfu
Copy link

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
Copy link
Owner

Thanks for the report!

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

@dapperfu
Copy link
Author

Ubuntu 18.04. Fails on both Ninja and GNUMake.

Commits of the repos:

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

@rettichschnidi
Copy link
Owner

Release or debug build?

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

@dapperfu
Copy link
Author

dapperfu commented Jul 6, 2018

Release. Mostly following the build script.

And I'm in no rush.

@rettichschnidi
Copy link
Owner

rettichschnidi commented Sep 3, 2018

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants