[llvm-bugs] [Bug 48574] New: clang frontend crash with exit code 139
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Dec 21 20:40:56 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=48574
Bug ID: 48574
Summary: clang frontend crash with exit code 139
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: release blocker
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: ian at ianshome.com
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
neeilans at live.com, richard-llvm at metafoo.co.uk
Created attachment 24312
--> https://bugs.llvm.org/attachment.cgi?id=24312&action=edit
requested code ans run script.
clang: error: clang frontend command failed with exit code 139 (use -v to see
invocation)
Ubuntu clang version
12.0.0-++20201221063813+8ab5770a17fe-1~exp1~20201221174531.2115
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Stack dump:
0. Program arguments: clang++ -fshow-overloads=best
-fno-diagnostics-fixit-info -Wall -Werror -Wno-unknown-warning-option
-Wno-unknown-pragmas -Wnarrowing -Wmismatched-tags
-Warray-bounds-pointer-arithmetic -Wduplicate-method-match -Wmove -Wunused
-Wshadow -Wuninitialized -Wunneeded-member-function -Wdeprecated-copy
-fprofile-instr-generate -fcoverage-mapping
-fdebug-prefix-map=/mnt/ian/ctct_products/cpp/components/socket_can/generated=.
-O3 -MMD -MP -O3 -std=c++17 -DNDEBUG -DFLATBUFFERS_LITTLEENDIAN=1
-DPLATFORM_LINUX
-I../../../../prebuilt/thirdparty_binaries/protobuf-3.10.1/linux-x86_64/include
-I../../../../prebuilt/thirdparty_binaries/cereal-1.3.0/linux-x86_64/include
-I../../../../prebuilt/thirdparty_binaries/openssl-1.1.1h/linux-x86_64/include
-I../../../../prebuilt/thirdparty_binaries/fast-dds-2.0.1/linux-x86_64/include
-I../../../thirdparty -I../../socket_can/src -I../../socket_can/generated/src
-I../../socket_can/generated/src/interface -I../../../tests
-I../../../libraries -I../../../independent_libraries
-I../../../thirdparty/googletest-release-1.10.0/googletest
-I../../../thirdparty/googletest-release-1.10.0/googlemock
-I../../../thirdparty/googletest-release-1.10.0/googletest/include
-I../../../thirdparty/googletest-release-1.10.0/googlemock/include
-I../../../../prebuilt/thirdparty_binaries/flatbuffers-1.12.0/linux-x86_64/include
-I../../../../prebuilt/mosaic/linux-x86_64/include -MMD -MF
obj/linux/release/socket_can_tests/MockSocketCan.o.d -c -o
obj/linux/release/socket_can_tests/MockSocketCan.o
/mnt/ian/ctct_products/cpp/components/socket_can/src/gTest/MockSocketCan.cpp
1. <eof> parser at end of file
2. ../../../thirdparty/mocks/MockFunction.h:502:9: instantiating function
definition 'masuma::test::Call<int, masuma::test::Function<&can_do_restart[0],
masuma::test::Library<&socketcan[0]>, int, const char *>>::operator()<const
char *>'
3. ../../../thirdparty/mocks/MockLibrary.h:58:17: instantiating function
definition 'masuma::test::Library<&socketcan[0]>::lookup<int (*)(const char
*)>'
4. ../../../thirdparty/mocks/MockLibrary.h:36:19: instantiating function
definition 'masuma::test::Library<&socketcan[0]>::open'
#0 0x00007f4edb55a343 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int)
(/usr/lib/x86_64-linux-gnu/libLLVM-12.so.1+0xb3d343)
#1 0x00007f4edb558680 llvm::sys::RunSignalHandlers()
(/usr/lib/x86_64-linux-gnu/libLLVM-12.so.1+0xb3b680)
#2 0x00007f4edb559a9d llvm::sys::CleanupOnSignal(unsigned long)
(/usr/lib/x86_64-linux-gnu/libLLVM-12.so.1+0xb3ca9d)
#3 0x00007f4edb4aa196 (/usr/lib/x86_64-linux-gnu/libLLVM-12.so.1+0xa8d196)
#4 0x00007f4ee2ba2980 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x12980)
#5 0x00007f4ee0b0ad50 (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.12+0xbd3d50)
#6 0x00007f4ee0b0a9db clang::Expr::IgnoreParens()
(/usr/lib/x86_64-linux-gnu/libclang-cpp.so.12+0xbd39db)
#7 0x00007f4ee101f69c (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.12+0x10e869c)
#8 0x00007f4ee101f436 (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.12+0x10e8436)
#9 0x00007f4ee101f635 (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.12+0x10e8635)
#10 0x00007f4ee101f635 (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.12+0x10e8635)
#11 0x00007f4ee101efb8 (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.12+0x10e7fb8)
#12 0x00007f4ee1005a5e clang::Sema::AddInitializerToDecl(clang::Decl*,
clang::Expr*, bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.12+0x10cea5e)
#13 0x00007f4ee1461217
clang::Sema::InstantiateVariableInitializer(clang::VarDecl*, clang::VarDecl*,
clang::MultiLevelTemplateArgumentList const&)
(/usr/lib/x86_64-linux-gnu/libclang-cpp.so.12+0x152a217)
#14 0x00007f4ee14561f1 clang::Sema::BuildVariableInstantiation(clang::VarDecl*,
clang::VarDecl*, clang::MultiLevelTemplateArgumentList const&,
llvm::SmallVector<clang::Sema::LateInstantiatedAttribute, 16u>*,
clang::DeclContext*, clang::LocalInstantiationScope*, bool,
clang::VarTemplateSpecializationDecl*)
(/usr/lib/x86_64-linux-gnu/libclang-cpp.so.12+0x151f1f1)
#15 0x00007f4ee1455a79
clang::TemplateDeclInstantiator::VisitVarDecl(clang::VarDecl*, bool,
llvm::ArrayRef<clang::BindingDecl*>*)
(/usr/lib/x86_64-linux-gnu/libclang-cpp.so.12+0x151ea79)
#16 0x00007f4ee1469e74 (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.12+0x1532e74)
#17 0x00007f4ee0ec154b
clang::Sema::runWithSufficientStackSpace(clang::SourceLocation,
llvm::function_ref<void ()>)
(/usr/lib/x86_64-linux-gnu/libclang-cpp.so.12+0xf8a54b)
#18 0x00007f4ee146263b clang::Sema::SubstDecl(clang::Decl*,
clang::DeclContext*, clang::MultiLevelTemplateArgumentList const&)
(/usr/lib/x86_64-linux-gnu/libclang-cpp.so.12+0x152b63b)
#19 0x00007f4ee14468aa (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.12+0x150f8aa)
#20 0x00007f4ee14428ce (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.12+0x150b8ce)
#21 0x00007f4ee142ccb1 clang::Sema::SubstStmt(clang::Stmt*,
clang::MultiLevelTemplateArgumentList const&)
(/usr/lib/x86_64-linux-gnu/libclang-cpp.so.12+0x14f5cb1)
#22 0x00007f4ee1464c5e
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool, bool)
(/usr/lib/x86_64-linux-gnu/libclang-cpp.so.12+0x152dc5e)
#23 0x00007f4ee14670d5 clang::Sema::PerformPendingInstantiations(bool)
(/usr/lib/x86_64-linux-gnu/libclang-cpp.so.12+0x15300d5)
#24 0x00007f4ee1464e0b
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool, bool)
(/usr/lib/x86_64-linux-gnu/libclang-cpp.so.12+0x152de0b)
#25 0x00007f4ee14670d5 clang::Sema::PerformPendingInstantiations(bool)
(/usr/lib/x86_64-linux-gnu/libclang-cpp.so.12+0x15300d5)
#26 0x00007f4ee1464e0b
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool, bool)
(/usr/lib/x86_64-linux-gnu/libclang-cpp.so.12+0x152de0b)
#27 0x00007f4ee14670d5 clang::Sema::PerformPendingInstantiations(bool)
(/usr/lib/x86_64-linux-gnu/libclang-cpp.so.12+0x15300d5)
#28 0x00007f4ee0ec2dd6
clang::Sema::ActOnEndOfTranslationUnitFragment(clang::Sema::TUFragmentKind)
(/usr/lib/x86_64-linux-gnu/libclang-cpp.so.12+0xf8bdd6)
#29 0x00007f4ee0ec342f clang::Sema::ActOnEndOfTranslationUnit()
(/usr/lib/x86_64-linux-gnu/libclang-cpp.so.12+0xf8c42f)
#30 0x00007f4ee09242ac
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&, bool)
(/usr/lib/x86_64-linux-gnu/libclang-cpp.so.12+0x9ed2ac)
#31 0x00007f4ee0876b1d clang::ParseAST(clang::Sema&, bool, bool)
(/usr/lib/x86_64-linux-gnu/libclang-cpp.so.12+0x93fb1d)
#32 0x00007f4ee1e067a8 clang::FrontendAction::Execute()
(/usr/lib/x86_64-linux-gnu/libclang-cpp.so.12+0x1ecf7a8)
#33 0x00007f4ee1da21d1
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/usr/lib/x86_64-linux-gnu/libclang-cpp.so.12+0x1e6b1d1)
#34 0x00007f4ee1e6a3e2
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/usr/lib/x86_64-linux-gnu/libclang-cpp.so.12+0x1f333e2)
#35 0x0000000000412887 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/usr/lib/llvm-12/bin/clang+0x412887)
#36 0x0000000000410b7e (/usr/lib/llvm-12/bin/clang+0x410b7e)
#37 0x00007f4ee1ac28d2 (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.12+0x1b8b8d2)
#38 0x00007f4edb4a9f6d
llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>)
(/usr/lib/x86_64-linux-gnu/libLLVM-12.so.1+0xa8cf6d)
#39 0x00007f4ee1ac20b9
clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef>
>, std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >*, bool*) const
(/usr/lib/x86_64-linux-gnu/libclang-cpp.so.12+0x1b8b0b9)
#40 0x00007f4ee1a97992
clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&,
clang::driver::Command const*&) const
(/usr/lib/x86_64-linux-gnu/libclang-cpp.so.12+0x1b60992)
#41 0x00007f4ee1a97d47
clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&,
llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const
(/usr/lib/x86_64-linux-gnu/libclang-cpp.so.12+0x1b60d47)
#42 0x00007f4ee1aac72c
clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&,
llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&)
(/usr/lib/x86_64-linux-gnu/libclang-cpp.so.12+0x1b7572c)
#43 0x0000000000410461 main (/usr/lib/llvm-12/bin/clang+0x410461)
#44 0x00007f4ed9cc3bf7 __libc_start_main
/build/glibc-S9d2JN/glibc-2.27/csu/../csu/libc-start.c:344:0
#45 0x000000000040dd7a _start (/usr/lib/llvm-12/bin/clang+0x40dd7a)
--
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/20201222/8dcc2b30/attachment-0001.html>
More information about the llvm-bugs
mailing list