[llvm-bugs] [Bug 36384] New: MatchFinder constructor causes segfault

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Feb 14 08:14:04 PST 2018


https://bugs.llvm.org/show_bug.cgi?id=36384

            Bug ID: 36384
           Summary: MatchFinder constructor causes segfault
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jacques at nag.co.uk
                CC: llvm-bugs at lists.llvm.org

Created attachment 19863
  --> https://bugs.llvm.org/attachment.cgi?id=19863&action=edit
Small test code

I'm sure this is not a bug but a user error/config issue, but I thought I'd
report anyway.  This is against current trunk of LLVM/clang (see version number
below)

Can someone just check that this code compiles and runs without segfaulting?

Compile with 

clang++ -O0 -g -std=c++11 -fno-exceptions -fno-rtti
-I${path/to/clang/build}/lib/clang/7.0.0/include
-I${path/to/clang/build}/include main.cpp -o a.out -lLLVMSupport -lpthread
-ltinfo -lclangFrontend  -lclangSerialization -lclangDriver -lclangParse
-lclangSema -lclangAnalysis  -lclangEdit -lclangAST -lclangLex -lclangBasic
-lclangTooling -lclangToolingCore -lclangFormat  -lclangRewrite
-lclangASTMatchers

Run on any source file.

My setup:
clang version 7.0.0 (trunk 324074)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang version 7.0.0 (trunk 324074)
Target: x86_64-unknown-linux-gnu
Thread model: posix

gcc (Ubuntu 5.4.0-6ubuntu1~16.04.6) 5.4.0 20160609



Clang built with

cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX=${path/to/clang/build} -DLLVM_TARGETS_TO_BUILD="X86"
-DBUILD_SHARED_LIBS=true .. 

using gcc

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180214/51c3dc65/attachment.html>


More information about the llvm-bugs mailing list