[llvm-bugs] [Bug 47958] New: Clang 11.0.0 crash when building clang from github master branch

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Oct 23 15:50:25 PDT 2020


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

            Bug ID: 47958
           Summary: Clang 11.0.0 crash when building clang from github
                    master branch
           Product: clang
           Version: 11.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: xw111luoye at gmail.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    neeilans at live.com, richard-llvm at metafoo.co.uk

intermittent crash. Usually a second make clears the issue.

PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: /home/packages/llvm/11.0.0/bin/clang++ -D_DEBUG
-D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
-D__STDC_LIMIT_MACROS
-I/home/yeluo/opt/llvm-clang/build_mirror_offload_master/tools/clang/lib/AST
-I/home/yeluo/opt/llvm-clang/llvm-project/clang/lib/AST
-I/home/yeluo/opt/llvm-clang/llvm-project/clang/include
-I/home/yeluo/opt/llvm-clang/build_mirror_offload_master/tools/clang/include
-I/home/yeluo/opt/llvm-clang/build_mirror_offload_master/include
-I/home/yeluo/opt/llvm-clang/llvm-project/llvm/include -fPIC
-fvisibility-inlines-hidden -Werror=date-time
-Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter
-Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic
-Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default
-Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor
-Wsuggest-override -Wstring-conversion -ffunction-sections -fdata-sections
-fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -fno-exceptions
-UNDEBUG -std=c++14 -o CMakeFiles/obj.clangAST.dir/DeclCXX.cpp.o -c
/home/yeluo/opt/llvm-clang/llvm-project/clang/lib/AST/DeclCXX.cpp 
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module
'/home/yeluo/opt/llvm-clang/llvm-project/clang/lib/AST/DeclCXX.cpp'.
4.      Running pass 'X86 DAG->DAG Instruction Selection' on function
'@_ZNK5clang13CXXRecordDecl15isGenericLambdaEv'
 #0 0x0000000001dbec84 PrintStackTraceSignalHandler(void*)
(/home/packages/llvm/11.0.0/bin/clang+++0x1dbec84)
 #1 0x0000000001dbc84e llvm::sys::RunSignalHandlers()
(/home/packages/llvm/11.0.0/bin/clang+++0x1dbc84e)
 #2 0x0000000001dbde2d llvm::sys::CleanupOnSignal(unsigned long)
(/home/packages/llvm/11.0.0/bin/clang+++0x1dbde2d)
 #3 0x0000000001d48be3 (anonymous
namespace)::CrashRecoveryContextImpl::HandleCrash(int, unsigned long)
(/home/packages/llvm/11.0.0/bin/clang+++0x1d48be3)
 #4 0x0000000001d48d1c CrashRecoverySignalHandler(int)
(/home/packages/llvm/11.0.0/bin/clang+++0x1d48d1c)
 #5 0x00007fda83ee63c0 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x153c0)
 #6 0x00007fda839cea55 _int_free
/build/glibc-ZN95T4/glibc-2.31/malloc/malloc.c:4206:5
 #7 0x0000000002a89d36 llvm::SelectionDAG::computeKnownBits(llvm::SDValue,
llvm::APInt const&, unsigned int) const
(/home/packages/llvm/11.0.0/bin/clang+++0x2a89d36)
 #8 0x0000000002a814b3 llvm::SelectionDAG::computeKnownBits(llvm::SDValue,
unsigned int) const (/home/packages/llvm/11.0.0/bin/clang+++0x2a814b3)
 #9 0x0000000002a816bb llvm::SelectionDAG::MaskedValueIsZero(llvm::SDValue,
llvm::APInt const&, unsigned int) const
(/home/packages/llvm/11.0.0/bin/clang+++0x2a816bb)
#10 0x0000000002972017 (anonymous
namespace)::DAGCombiner::visitAND(llvm::SDNode*)
(/home/packages/llvm/11.0.0/bin/clang+++0x2972017)
#11 0x000000000294a50a (anonymous namespace)::DAGCombiner::visit(llvm::SDNode*)
(/home/packages/llvm/11.0.0/bin/clang+++0x294a50a)
#12 0x00000000029465a1 (anonymous
namespace)::DAGCombiner::combine(llvm::SDNode*)
(/home/packages/llvm/11.0.0/bin/clang+++0x29465a1)
#13 0x00000000029437b4 llvm::SelectionDAG::Combine(llvm::CombineLevel,
llvm::AAResults*, llvm::CodeGenOpt::Level)
(/home/packages/llvm/11.0.0/bin/clang+++0x29437b4)
#14 0x0000000002ac4b21 llvm::SelectionDAGISel::CodeGenAndEmitDAG()
(/home/packages/llvm/11.0.0/bin/clang+++0x2ac4b21)
#15 0x0000000002ac381c
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&)
(/home/packages/llvm/11.0.0/bin/clang+++0x2ac381c)
#16 0x0000000002ac0322
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(/home/packages/llvm/11.0.0/bin/clang+++0x2ac0322)
#17 0x0000000000a46255 (anonymous
namespace)::X86DAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(/home/packages/llvm/11.0.0/bin/clang+++0xa46255)
#18 0x000000000132892d
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/home/packages/llvm/11.0.0/bin/clang+++0x132892d)
#19 0x00000000016ec0e4 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/home/packages/llvm/11.0.0/bin/clang+++0x16ec0e4)
#20 0x00000000016f2878 llvm::FPPassManager::runOnModule(llvm::Module&)
(/home/packages/llvm/11.0.0/bin/clang+++0x16f2878)
#21 0x00000000016ec934 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/home/packages/llvm/11.0.0/bin/clang+++0x16ec934)
#22 0x0000000001fddee5 clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::HeaderSearchOptions const&, clang::CodeGenOptions const&,
clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout
const&, llvm::Module*, clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >)
(/home/packages/llvm/11.0.0/bin/clang+++0x1fddee5)
#23 0x0000000002bc8bc6
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/home/packages/llvm/11.0.0/bin/clang+++0x2bc8bc6)
#24 0x00000000034e8113 clang::ParseAST(clang::Sema&, bool, bool)
(/home/packages/llvm/11.0.0/bin/clang+++0x34e8113)
#25 0x00000000025928e3 clang::FrontendAction::Execute()
(/home/packages/llvm/11.0.0/bin/clang+++0x25928e3)
#26 0x000000000252a3b3
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/home/packages/llvm/11.0.0/bin/clang+++0x252a3b3)
#27 0x000000000263e1d2
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/home/packages/llvm/11.0.0/bin/clang+++0x263e1d2)
#28 0x00000000009c8a4f cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/home/packages/llvm/11.0.0/bin/clang+++0x9c8a4f)
#29 0x00000000009c6bac ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&)
(/home/packages/llvm/11.0.0/bin/clang+++0x9c6bac)
#30 0x00000000023f2b22 void llvm::function_ref<void
()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef>
>, std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >*, bool*) const::$_1>(long)
(/home/packages/llvm/11.0.0/bin/clang+++0x23f2b22)
#31 0x0000000001d48af7
llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>)
(/home/packages/llvm/11.0.0/bin/clang+++0x1d48af7)
#32 0x00000000023f1fdd
clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef>
>, std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >*, bool*) const
(/home/packages/llvm/11.0.0/bin/clang+++0x23f1fdd)
#33 0x00000000023c19bb
clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&,
clang::driver::Command const*&) const
(/home/packages/llvm/11.0.0/bin/clang+++0x23c19bb)
#34 0x00000000023c1da7
clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&,
llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const
(/home/packages/llvm/11.0.0/bin/clang+++0x23c1da7)
#35 0x00000000023d95d8
clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&,
llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&)
(/home/packages/llvm/11.0.0/bin/clang+++0x23d95d8)
#36 0x00000000009c6553 main (/home/packages/llvm/11.0.0/bin/clang+++0x9c6553)
#37 0x00007fda8395c0b3 __libc_start_main
/build/glibc-ZN95T4/glibc-2.31/csu/../csu/libc-start.c:342:3
#38 0x00000000009c394e _start (/home/packages/llvm/11.0.0/bin/clang+++0x9c394e)
clang-11: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 11.0.0 (https://github.com/llvm/llvm-project.git
176249bd6732a8044d457092ed932768724a6f06)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/packages/llvm/11.0.0/bin
clang-11: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-11: note: diagnostic msg: /tmp/DeclCXX-91208f.cpp
clang-11: note: diagnostic msg: /tmp/DeclCXX-91208f.sh
clang-11: note: diagnostic msg: 

********************
make[2]: *** [tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/build.make:394:
tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/DeclCXX.cpp.o] Error 254

-- 
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/20201023/32c0983b/attachment.html>


More information about the llvm-bugs mailing list