https://bugs.kde.org/show_bug.cgi?id=392223
Bug ID: 392223 Summary: segmentation fault Product: clazy Version: unspecified Platform: Other OS: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: general Assignee: unassigned-b...@kde.org Reporter: eric.lemaniss...@gmail.com CC: smart...@kde.org Target Milestone: --- When running the tests, I keep getting segmentation faults. Maybe it is because I am using clang 7.0 ? #0 0x00007f7614995d7a llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/usr/lib/x86_64-linux-gnu/libLLVM-7.so.1+0x8a5d7a) #1 0x00007f7614993f3e llvm::sys::RunSignalHandlers() (/usr/lib/x86_64-linux-gnu/libLLVM-7.so.1+0x8a3f3e) #2 0x00007f761499408c (/usr/lib/x86_64-linux-gnu/libLLVM-7.so.1+0x8a408c) #3 0x00007f7617bf6390 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x11390) #4 0x000000000186b2d8 clang::ast_matchers::MatchFinder::MatchFinder(clang::ast_matchers::MatchFinder::MatchFinderOptions) (/usr/lib/llvm-7/bin/clang+0x186b2d8) #5 0x00007f761147b691 ClazyASTAction::CreateASTConsumer(clang::CompilerInstance&, llvm::StringRef) (../installclazy/lib/ClangLazy.so+0x431691) #6 0x0000000000b4b2d4 clang::FrontendAction::CreateWrappedASTConsumer(clang::CompilerInstance&, llvm::StringRef) (/usr/lib/llvm-7/bin/clang+0xb4b2d4) #7 0x0000000000b50b96 clang::FrontendAction::BeginSourceFile(clang::CompilerInstance&, clang::FrontendInputFile const&) (/usr/lib/llvm-7/bin/clang+0xb50b96) #8 0x0000000000b14d66 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/usr/lib/llvm-7/bin/clang+0xb14d66) #9 0x0000000000bd3e92 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/usr/lib/llvm-7/bin/clang+0xbd3e92) #10 0x0000000000750318 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/lib/llvm-7/bin/clang+0x750318) #11 0x000000000073c8de main (/usr/lib/llvm-7/bin/clang+0x73c8de) #12 0x00007f7613274830 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x20830) #13 0x000000000074dcf9 _start (/usr/lib/llvm-7/bin/clang+0x74dcf9) Stack dump: 0. Program arguments: /usr/lib/llvm-7/bin/clang -cc1 -triple x86_64-pc-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name main.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -dwarf-column-info -debugger-tuning=gdb -coverage-notes-file /home/admin/jenkins/workspace/PhysioFlow/software/staticAnalysis/ClangLazy/tests/main.gcno -resource-dir /usr/lib/llvm-7/lib/clang/7.0.0 -isystem /home/admin/Qt/5.8/gcc_64/include -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0 -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/x86_64-linux-gnu/c++/5.4.0 -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/x86_64-linux-gnu/c++/5.4.0 -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/backward -internal-isystem /usr/include/clang/7.0.0/include/ -internal-isystem /usr/local/include -internal-isystem /usr/lib/llvm-7/lib/clang/7.0.0/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -Wno-unused-value -std=c++14 -fdeprecated-macro -fdebug-compilation-dir /home/admin/jenkins/workspace/PhysioFlow/software/staticAnalysis/ClangLazy/tests -ferror-limit 19 -fmessage-length 0 -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -load ClangLazy.so -add-plugin clang-lazy -plugin-arg-clang-lazy no-inplace-fixits -plugin-arg-clang-lazy wrong-qevent-cast -plugin-arg-clang-lazy enable-all-fixits -o main.o -x c++ wrong-qevent-cast/main.cpp clang: error: unable to execute command: Segmentation fault (core dumped) clang: error: clang frontend command failed due to signal (use -v to see invocation) clang version 7.0.0- (trunk) Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/bin clang: note: diagnostic msg: PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script. clang: note: diagnostic msg: ******************** the invocation is the following: # Crash reproducer for clang version 7.0.0- (trunk) # Driver args: "-Xclang" "-load" "-Xclang" "ClangLazy.so" "-Xclang" "-add-plugin" "-Xclang" "clang-lazy" "-Xclang" "-plugin-arg-clang-lazy" "-Xclang" "no-inplace-fixits" "-Wno-unused-value" "-Qunused-arguments" "-std=c++14" "-isystem" "/home/admin/Qt/5.8/gcc_64/include" "-fPIC" "-c" "-Xclang" "-plugin-arg-clang-lazy" "-Xclang" "wrong-qevent-cast" "-Xclang" "-plugin-arg-clang-lazy" "-Xclang" "enable-all-fixits" "wrong-qevent-cast/main.cpp" # Original command: "/usr/lib/llvm-7/bin/clang" "-cc1" "-triple" "x86_64-pc-linux-gnu" "-emit-obj" "-mrelax-all" "-disable-free" "-disable-llvm-verifier" "-discard-value-names" "-main-file-name" "main.cpp" "-mrelocation-model" "pic" "-pic-level" "2" "-mthread-model" "posix" "-mdisable-fp-elim" "-fmath-errno" "-masm-verbose" "-mconstructor-aliases" "-munwind-tables" "-fuse-init-array" "-target-cpu" "x86-64" "-dwarf-column-info" "-debugger-tuning=gdb" "-coverage-notes-file" "/home/admin/jenkins/workspace/PhysioFlow/software/staticAnalysis/ClangLazy/tests/main.gcno" "-resource-dir" "/usr/lib/llvm-7/lib/clang/7.0.0" "-isystem" "/home/admin/Qt/5.8/gcc_64/include" "-internal-isystem" "/usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0" "-internal-isystem" "/usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/x86_64-linux-gnu/c++/5.4.0" "-internal-isystem" "/usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/x86_64-linux-gnu/c++/5.4.0" "-internal-isystem" "/usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/backward" "-internal-isystem" "/usr/include/clang/7.0.0/include/" "-internal-isystem" "/usr/local/include" "-internal-isystem" "/usr/lib/llvm-7/lib/clang/7.0.0/include" "-internal-externc-isystem" "/usr/include/x86_64-linux-gnu" "-internal-externc-isystem" "/include" "-internal-externc-isystem" "/usr/include" "-Wno-unused-value" "-std=c++14" "-fdeprecated-macro" "-fdebug-compilation-dir" "/home/admin/jenkins/workspace/PhysioFlow/software/staticAnalysis/ClangLazy/tests" "-ferror-limit" "19" "-fmessage-length" "0" "-fobjc-runtime=gcc" "-fcxx-exceptions" "-fexceptions" "-fdiagnostics-show-option" "-load" "ClangLazy.so" "-add-plugin" "clang-lazy" "-plugin-arg-clang-lazy" "no-inplace-fixits" "-plugin-arg-clang-lazy" "wrong-qevent-cast" "-plugin-arg-clang-lazy" "enable-all-fixits" "-o" "main.o" "-x" "c++" "wrong-qevent-cast/main.cpp" "/usr/lib/llvm-7/bin/clang" "-cc1" "-triple" "x86_64-pc-linux-gnu" "-emit-obj" "-mrelax-all" "-disable-free" "-disable-llvm-verifier" "-discard-value-names" "-main-file-name" "main.cpp" "-mrelocation-model" "pic" "-pic-level" "2" "-mthread-model" "posix" "-mdisable-fp-elim" "-fmath-errno" "-masm-verbose" "-mconstructor-aliases" "-munwind-tables" "-fuse-init-array" "-target-cpu" "x86-64" "-dwarf-column-info" "-debugger-tuning=gdb" "-coverage-notes-file" "/home/admin/jenkins/workspace/PhysioFlow/software/staticAnalysis/ClangLazy/tests/main.gcno" "-Wno-unused-value" "-std=c++14" "-fdeprecated-macro" "-ferror-limit" "19" "-fmessage-length" "0" "-fobjc-runtime=gcc" "-fcxx-exceptions" "-fexceptions" "-fdiagnostics-show-option" "-load" "ClangLazy.so" "-add-plugin" "clang-lazy" "-plugin-arg-clang-lazy" "no-inplace-fixits" "-plugin-arg-clang-lazy" "wrong-qevent-cast" "-plugin-arg-clang-lazy" "enable-all-fixits" "-x" "c++" "main-0ebb1b.cpp" -- You are receiving this mail because: You are watching all bug changes.