Open Quuxplusone opened 6 years ago
clang-bug.tar.gz
Created attachment 19748 Clang diagnostic msg 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 5.0.0-3 (tags/RELEASE_500/final) Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/bin clang: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script. clang: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang: note: diagnostic msg: /tmp/wico-7049ee.cpp clang: note: diagnostic msg: /tmp/wico-7049ee.sh clang: note: diagnostic msg: Compiling src/mame/drivers/next.cpp... #0 0x00007fac0a52adfa llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/usr/lib/llvm-5.0/bin/../lib/libLLVM-5.0.so.1+0x7aadfa) #1 0x00007fac0a529016 llvm::sys::RunSignalHandlers() (/usr/lib/llvm- 5.0/bin/../lib/libLLVM-5.0.so.1+0x7a9016) #2 0x00007fac0a52914b (/usr/lib/llvm-5.0/bin/../lib/libLLVM-5.0.so.1+0x7a914b) #3 0x00007fac0d39b150 __restore_rt (/lib/x86_64-linux- gnu/libpthread.so.0+0x13150) #4 0x0000557f13af96de clang::ParmVarDecl::getDefaultArg() (/usr/lib/llvm- 5.0/bin/clang+0x17a16de) #5 0x0000557f135a774b clang::Sema::SubstParmVarDecl(clang::ParmVarDecl*, clang::MultiLevelTemplateArgumentList const&, int, llvm::Optional<unsigned int>, bool) (/usr/lib/llvm-5.0/bin/clang+0x124f74b) #6 0x0000557f135a8863 (/usr/lib/llvm-5.0/bin/clang+0x1250863) #7 0x0000557f135a9e3a (/usr/lib/llvm-5.0/bin/clang+0x1251e3a) #8 0x0000557f135aaeba (/usr/lib/llvm-5.0/bin/clang+0x1252eba) #9 0x0000557f135ad85b (/usr/lib/llvm-5.0/bin/clang+0x125585b) #10 0x0000557f135b1b1b (/usr/lib/llvm-5.0/bin/clang+0x1259b1b) #11 0x0000557f135b5280 (/usr/lib/llvm-5.0/bin/clang+0x125d280) #12 0x0000557f135b1004 (/usr/lib/llvm-5.0/bin/clang+0x1259004) #13 0x0000557f135b176e (/usr/lib/llvm-5.0/bin/clang+0x125976e) #14 0x0000557f135b5e4f (/usr/lib/llvm-5.0/bin/clang+0x125de4f) #15 0x0000557f135aaa78 (/usr/lib/llvm-5.0/bin/clang+0x1252a78) #16 0x0000557f135ad85b (/usr/lib/llvm-5.0/bin/clang+0x125585b) #17 0x0000557f135b624f clang::Sema::SubstType(clang::TypeSourceInfo*, clang::MultiLevelTemplateArgumentList const&, clang::SourceLocation, clang::DeclarationName, bool) (/usr/lib/llvm-5.0/bin/clang+0x125e24f) #18 0x0000557f1350b07f (/usr/lib/llvm-5.0/bin/clang+0x11b307f) #19 0x0000557f1351f6d6 clang::Sema::CheckTemplateArgumentList(clang::TemplateDecl*, clang::SourceLocation, clang::TemplateArgumentListInfo&, bool, llvm::SmallVectorImpl<clang::TemplateArgument>&, bool) (/usr/lib/llvm- 5.0/bin/clang+0x11c76d6) #20 0x0000557f1351fe8a clang::Sema::CheckTemplateIdType(clang::TemplateName, clang::SourceLocation, clang::TemplateArgumentListInfo&) (/usr/lib/llvm- 5.0/bin/clang+0x11c7e8a) #21 0x0000557f135b5776 (/usr/lib/llvm-5.0/bin/clang+0x125d776) #22 0x0000557f135abbd4 (/usr/lib/llvm-5.0/bin/clang+0x1253bd4) #23 0x0000557f135ad85b (/usr/lib/llvm-5.0/bin/clang+0x125585b) #24 0x0000557f135b1b1b (/usr/lib/llvm-5.0/bin/clang+0x1259b1b) #25 0x0000557f135b5280 (/usr/lib/llvm-5.0/bin/clang+0x125d280) #26 0x0000557f135abbd4 (/usr/lib/llvm-5.0/bin/clang+0x1253bd4) #27 0x0000557f135c1cf1 clang::Sema::SubstFunctionDeclType(clang::TypeSourceInfo*, clang::MultiLevelTemplateArgumentList const&, clang::SourceLocation, clang::DeclarationName, clang::CXXRecordDecl*, unsigned int) (/usr/lib/llvm- 5.0/bin/clang+0x1269cf1) #28 0x0000557f135c4d22 clang::TemplateDeclInstantiator::VisitDecl(clang::Decl*) (/usr/lib/llvm-5.0/bin/clang+0x126cd22) #29 0x0000557f135d66d0 clang::TemplateDeclInstantiator::VisitCXXMethodDecl(clang::CXXMethodDecl*, clang::TemplateParameterList*, bool) (/usr/lib/llvm-5.0/bin/clang+0x127e6d0) #30 0x0000557f135d3d2e clang::Sema::SubstDecl(clang::Decl*, clang::DeclContext*, clang::MultiLevelTemplateArgumentList const&) (/usr/lib/llvm-5.0/bin/clang+0x127bd2e) #31 0x0000557f1358da3f clang::Sema::FinishTemplateArgumentDeduction(clang::FunctionTemplateDecl*, llvm::SmallVectorImpl<clang::DeducedTemplateArgument>&, unsigned int, clang::FunctionDecl*&, clang::sema::TemplateDeductionInfo&, llvm::SmallVectorImpl<clang::Sema::OriginalCallArg> const*, bool, llvm::function_ref<bool ()>) (/usr/lib/llvm-5.0/bin/clang+0x1235a3f) #32 0x0000557f135926be clang::Sema::DeduceTemplateArguments(clang::FunctionTemplateDecl*, clang::TemplateArgumentListInfo*, llvm::ArrayRef<clang::Expr*>, clang::FunctionDecl*&, clang::sema::TemplateDeductionInfo&, bool, llvm::function_ref<bool (llvm::ArrayRef<clang::QualType>)>) (/usr/lib/llvm- 5.0/bin/clang+0x123a6be) #33 0x0000557f134b3d2b clang::Sema::AddMethodTemplateCandidate(clang::FunctionTemplateDecl*, clang::DeclAccessPair, clang::CXXRecordDecl*, clang::TemplateArgumentListInfo*, clang::QualType, clang::Expr::Classification, llvm::ArrayRef<clang::Expr*>, clang::OverloadCandidateSet&, bool, bool) (/usr/lib/llvm- 5.0/bin/clang+0x115bd2b) #34 0x0000557f134b43c1 clang::Sema::AddMethodCandidate(clang::DeclAccessPair, clang::QualType, clang::Expr::Classification, llvm::ArrayRef<clang::Expr*>, clang::OverloadCandidateSet&, bool) (/usr/lib/llvm-5.0/bin/clang+0x115c3c1) #35 0x0000557f134b45f4 clang::Sema::AddMemberOperatorCandidates(clang::OverloadedOperatorKind, clang::SourceLocation, llvm::ArrayRef<clang::Expr*>, clang::OverloadCandidateSet&, clang::SourceRange) (/usr/lib/llvm- 5.0/bin/clang+0x115c5f4) #36 0x0000557f134bfe32 clang::Sema::CreateOverloadedBinOp(clang::SourceLocation, clang::BinaryOperatorKind, clang::UnresolvedSetImpl const&, clang::Expr*, clang::Expr*) (/usr/lib/llvm-5.0/bin/clang+0x1167e32) #37 0x0000557f132fdb1d (/usr/lib/llvm-5.0/bin/clang+0xfa5b1d) #38 0x0000557f133335cc clang::Sema::BuildBinOp(clang::Scope*, clang::SourceLocation, clang::BinaryOperatorKind, clang::Expr*, clang::Expr*) (/usr/lib/llvm-5.0/bin/clang+0xfdb5cc) #39 0x0000557f135a292d (/usr/lib/llvm-5.0/bin/clang+0x124a92d) #40 0x0000557f135a046c (/usr/lib/llvm-5.0/bin/clang+0x124846c) #41 0x0000557f135ba293 (/usr/lib/llvm-5.0/bin/clang+0x1262293) #42 0x0000557f135bb5fd (/usr/lib/llvm-5.0/bin/clang+0x12635fd) #43 0x0000557f135bc2e8 (/usr/lib/llvm-5.0/bin/clang+0x12642e8) #44 0x0000557f135bb5fd (/usr/lib/llvm-5.0/bin/clang+0x12635fd) #45 0x0000557f135bef18 clang::Sema::SubstStmt(clang::Stmt*, clang::MultiLevelTemplateArgumentList const&) (/usr/lib/llvm- 5.0/bin/clang+0x1266f18) #46 0x0000557f135d6024 clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool, bool) (/usr/lib/llvm-5.0/bin/clang+0x127e024) #47 0x0000557f135d4fc4 clang::Sema::PerformPendingInstantiations(bool) (/usr/lib/llvm-5.0/bin/clang+0x127cfc4) #48 0x0000557f135d5922 clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool, bool) (/usr/lib/llvm-5.0/bin/clang+0x127d922) #49 0x0000557f135d4fc4 clang::Sema::PerformPendingInstantiations(bool) (/usr/lib/llvm-5.0/bin/clang+0x127cfc4) #50 0x0000557f1312ae6d clang::Sema::ActOnEndOfTranslationUnit() (/usr/lib/llvm- 5.0/bin/clang+0xdd2e6d) #51 0x0000557f12f637be clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) (/usr/lib/llvm-5.0/bin/clang+0xc0b7be) #52 0x0000557f12f583d2 clang::ParseAST(clang::Sema&, bool, bool) (/usr/lib/llvm- 5.0/bin/clang+0xc003d2) #53 0x0000557f12d0bc57 clang::CodeGenAction::ExecuteAction() (/usr/lib/llvm- 5.0/bin/clang+0x9b3c57) #54 0x0000557f12b83176 clang::FrontendAction::Execute() (/usr/lib/llvm- 5.0/bin/clang+0x82b176) #55 0x0000557f12b4f82c clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/usr/lib/llvm- 5.0/bin/clang+0x7f782c) #56 0x0000557f12c23cd3 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/usr/lib/llvm- 5.0/bin/clang+0x8cbcd3) #57 0x0000557f12785e78 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/lib/llvm-5.0/bin/clang+0x42de78) #58 0x0000557f12775544 main (/usr/lib/llvm-5.0/bin/clang+0x41d544) #59 0x00007fac08e911c1 __libc_start_main /build/glibc-itYbWN/glibc- 2.26/csu/../csu/libc-start.c:342:0 #60 0x0000557f12783baa _start (/usr/lib/llvm-5.0/bin/clang+0x42bbaa) Stack dump: 0. Program arguments: /usr/lib/llvm-5.0/bin/clang -cc1 -triple x86_64-pc-linux- gnu -emit-obj -disable-free -disable-llvm-verifier -discard-value-names -main- file-name wico.cpp -mrelocation-model static -mthread-model posix -mdisable-fp- elim -relaxed-aliasing -mdisable-tail-calls -fmath-errno -masm-verbose - mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -momit- leaf-frame-pointer -dwarf-column-info -debug-info-kind=line-tables-only -dwarf- version=4 -debugger-tuning=gdb -coverage-notes-file /home/mame/build/mame/build/projects/sdl/mame/gmake-linux- clang/../../../../linux_clang/obj/x64/Debug/src/mame/drivers/wico.gcno - resource-dir /usr/lib/llvm-5.0/lib/clang/5.0.0 -dependency-file ../../../../linux_clang/obj/x64/Debug/src/mame/drivers/wico.d -MT ../../../../linux_clang/obj/x64/Debug/src/mame/drivers/wico.o -MP -include-pch ../../../../linux_clang/obj/x64/Debug/emu.h.gch -D PTR64=1 -D MAME_DEBUG -D MAME_PROFILER -D CRLF=2 -D LSB_FIRST -D FLAC__NO_DLL -D NATIVE_DRC=drcbe_x64 -D LUA_COMPAT_ALL -D LUA_COMPAT_5_1 -D LUA_COMPAT_5_2 -I ../../../../../src/osd -I ../../../../../src/emu -I ../../../../../src/devices -I ../../../../../src/mame -I ../../../../../src/lib -I ../../../../../src/lib/util -I ../../../../../src/lib/netlist -I ../../../../../3rdparty -I ../../../../generated/mame/layout -I ../../../../../3rdparty/libflac/include - internal-isystem /usr/bin/../lib/gcc/x86_64-linux- gnu/7.2.0/../../../../include/c++/7.2.0 -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/x86_64-linux- gnu/c++/7.2.0 -internal-isystem /usr/bin/../lib/gcc/x86_64-linux- gnu/7.2.0/../../../../include/x86_64-linux-gnu/c++/7.2.0 -internal-isystem /usr/bin/../lib/gcc/x86_64-linux- gnu/7.2.0/../../../../include/c++/7.2.0/backward -internal-isystem /usr/include/clang/5.0.0/include/ -internal-isystem /usr/local/include - internal-isystem /usr/lib/llvm-5.0/lib/clang/5.0.0/include -internal-externc- isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include - internal-externc-isystem /usr/include -O3 -Wno-deprecated-declarations -Werror - Wno-unknown-pragmas -Wall -Wcast-align -Wundef -Wformat-security -Wwrite- strings -Wno-sign-compare -Wno-conversion -Wno-cast-align -Wno-tautological- compare -Wno-unused-value -Wno-constant-logical-operand -Wno-missing-braces - Wno-unknown-warning-option -Wno-extern-c-compat -Wno-unknown-attributes -Wno- ignored-qualifiers -Woverloaded-virtual -Wno-terminate -std=c++14 -fdeprecated- macro -fdebug-compilation-dir /home/mame/build/mame/build/projects/sdl/mame/gmake-linux-clang -ferror-limit 19 -fmessage-length 80 -fsanitize=address -fsanitize-blacklist=/usr/lib/llvm- 5.0/lib/clang/5.0.0/asan_blacklist.txt -fsanitize-address-use-after-scope -fno- assume-sane-operator-new -fobjc-runtime=gcc -fcxx-exceptions -fexceptions - fdiagnostics-show-option -fdiagnostics-show-note-include-stack -fcolor- diagnostics -vectorize-loops -vectorize-slp -o ../../../../linux_clang/obj/x64/Debug/src/mame/drivers/wico.o -x c++ ../../../../../src/mame/drivers/wico.cpp 1. <eof> parser at end of file 2. /home/mame/build/mame/build/projects/sdl/mame/gmake-linux- clang/../../../../../src/emu/devdelegate.h:84:19: instantiating function definition 'device_delegate<void (address_space &, unsigned int, unsigned short, unsigned short)>::operator=' 3. /home/mame/build/mame/build/projects/sdl/mame/gmake-linux- clang/../../../../../src/lib/util/delegate.h:514:17: instantiating function definition 'delegate_base<void, address_space &, unsigned int, unsigned short, unsigned short>::operator='
Attached clang-bug.tar.gz (1003971 bytes, application/gzip): Clang diagnostic msg
clang-bug.tar.gz
(1003971 bytes, application/gzip)