[llvm-bugs] [Bug 51001] New: crash when building musl src/math/exp.c for powerpcspe
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Jul 6 16:43:46 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=51001
Bug ID: 51001
Summary: crash when building musl src/math/exp.c for powerpcspe
Product: new-bugs
Version: 12.0
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: patrick.oppenlander at gmail.com
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org
Stack dump:
0. Program arguments: powerpcspe-clang-linux-musl-cc -std=c99 -nostdinc
-ffreestanding -frounding-math -Wa,--noexecstack -D_XOPEN_SOURCE=700
-I./arch/powerpc -I./arch/generic -Iobj/src/internal -I./src/include
-I./src/internal -Iobj/include -I./include -Os -pipe -fomit-frame-pointer
-fno-unwind-tables -fno-asynchronous-unwind-tables -ffunction-sections
-fdata-sections -w -Wno-pointer-to-int-cast
-Werror=implicit-function-declaration -Werror=implicit-int -Werror=pointer-sign
-Werror=pointer-arith -Werror=int-conversion -Werror=incompatible-pointer-types
-Qunused-arguments -Waddress -Warray-bounds -Wchar-subscripts
-Wduplicate-decl-specifier -Winit-self -Wreturn-type -Wsequence-point
-Wstrict-aliasing -Wunused-function -Wunused-label -Wunused-variable -fPIC -c
-o obj/src/math/exp.lo src/math/exp.c
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'src/math/exp.c'.
4. Running pass 'PowerPC DAG->DAG Pattern Instruction Selection' on
function '@exp'
#0 0x000055c2758d3d8e llvm::sys::PrintStackTrace(llvm::raw_ostream&, int)
(/opt/cross/musl-clang/clang/bin/clang-12+0x1837d8e)
#1 0x000055c2758d28eb llvm::sys::RunSignalHandlers()
(/opt/cross/musl-clang/clang/bin/clang-12+0x18368eb)
#2 0x000055c275888f3f (anonymous
namespace)::CrashRecoveryContextImpl::HandleCrash(int, unsigned long)
(/opt/cross/musl-clang/clang/bin/clang-12+0x17ecf3f)
#3 0x000055c2758893de CrashRecoverySignalHandler(int)
(/opt/cross/musl-clang/clang/bin/clang-12+0x17ed3de)
#4 0x00007fbd0cb68870 __restore_rt (/usr/lib/libpthread.so.0+0x13870)
#5 0x000055c275fb80d5 llvm::SDUse::set(llvm::SDValue const&)
(/opt/cross/musl-clang/clang/bin/clang-12+0x1f1c0d5)
#6 0x000055c275fd989f llvm::SelectionDAG::ReplaceAllUsesWith(llvm::SDNode*,
llvm::SDValue const*) (/opt/cross/musl-clang/clang/bin/clang-12+0x1f3d89f)
#7 0x000055c275f7b457 (anonymous
namespace)::SelectionDAGLegalize::ReplaceNode(llvm::SDNode*, llvm::SDValue
const*) (/opt/cross/musl-clang/clang/bin/clang-12+0x1edf457)
#8 0x000055c275f86abd (anonymous
namespace)::SelectionDAGLegalize::LegalizeOp(llvm::SDNode*)
(/opt/cross/musl-clang/clang/bin/clang-12+0x1eeaabd)
#9 0x000055c275f8b0e2 llvm::SelectionDAG::Legalize()
(/opt/cross/musl-clang/clang/bin/clang-12+0x1eef0e2)
#10 0x000055c275fdec61 llvm::SelectionDAGISel::CodeGenAndEmitDAG()
(/opt/cross/musl-clang/clang/bin/clang-12+0x1f42c61)
#11 0x000055c275fe10bd
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&)
(/opt/cross/musl-clang/clang/bin/clang-12+0x1f450bd)
#12 0x000055c275fe17b8
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(/opt/cross/musl-clang/clang/bin/clang-12+0x1f457b8)
#13 0x000055c2750067ea (anonymous
namespace)::PPCDAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(/opt/cross/musl-clang/clang/bin/clang-12+0xf6a7ea)
#14 0x000055c27539ca6d
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.0)
(/opt/cross/musl-clang/clang/bin/clang-12+0x1300a6d)
#15 0x000055c27559fa88 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/opt/cross/musl-clang/clang/bin/clang-12+0x1503a88)
#16 0x000055c27559fe0b llvm::FPPassManager::runOnModule(llvm::Module&)
(/opt/cross/musl-clang/clang/bin/clang-12+0x1503e0b)
#17 0x000055c27559f65c llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/opt/cross/musl-clang/clang/bin/clang-12+0x150365c)
#18 0x000055c2759f6364 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> >)
(/opt/cross/musl-clang/clang/bin/clang-12+0x195a364)
#19 0x000055c276074fc6
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/opt/cross/musl-clang/clang/bin/clang-12+0x1fd8fc6)
#20 0x000055c2765899e3 clang::ParseAST(clang::Sema&, bool, bool)
(/opt/cross/musl-clang/clang/bin/clang-12+0x24ed9e3)
#21 0x000055c275d36759 clang::FrontendAction::Execute()
(/opt/cross/musl-clang/clang/bin/clang-12+0x1c9a759)
#22 0x000055c275d05b48
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/opt/cross/musl-clang/clang/bin/clang-12+0x1c69b48)
#23 0x000055c275d8a9fa
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/opt/cross/musl-clang/clang/bin/clang-12+0x1cee9fa)
#24 0x000055c274cbb50e cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/opt/cross/musl-clang/clang/bin/clang-12+0xc1f50e)
#25 0x000055c274cb997e ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&)
(/opt/cross/musl-clang/clang/bin/clang-12+0xc1d97e)
#26 0x000055c275c728ce 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::'lambda'()>(long)
(/opt/cross/musl-clang/clang/bin/clang-12+0x1bd68ce)
#27 0x000055c2758890d5
llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>)
(/opt/cross/musl-clang/clang/bin/clang-12+0x17ed0d5)
#28 0x000055c275c72efd
clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef>
>, std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >*, bool*) const (.part.0)
(/opt/cross/musl-clang/clang/bin/clang-12+0x1bd6efd)
#29 0x000055c275c5d034
clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&,
clang::driver::Command const*&) const
(/opt/cross/musl-clang/clang/bin/clang-12+0x1bc1034)
#30 0x000055c275c5d15c
clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&,
llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const
(/opt/cross/musl-clang/clang/bin/clang-12+0x1bc115c)
#31 0x000055c275c62371
clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&,
llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&)
(/opt/cross/musl-clang/clang/bin/clang-12+0x1bc6371)
#32 0x000055c274c34bd3 main (/opt/cross/musl-clang/clang/bin/clang-12+0xb98bd3)
#33 0x00007fbd0c59db25 __libc_start_main (/usr/lib/libc.so.6+0x27b25)
#34 0x000055c274cb919e _start
(/opt/cross/musl-clang/clang/bin/clang-12+0xc1d19e)
clang-12: error: clang frontend command failed with exit code 139 (use -v to
see invocation)
clang version 12.0.0 (/home/patrick/src/toolchain/pkg/musl-cross-make
d6c4bfdaa2e6c31006d49f5255398113bab5df31)
Target: powerpcspe-clang-linux-musl
Thread model: posix
InstalledDir: /opt/cross/musl-clang/bin
clang-12: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-12: note: diagnostic msg: /tmp/exp-d3bf84.c
clang-12: note: diagnostic msg: /tmp/exp-d3bf84.sh
clang-12: note: diagnostic msg:
********************
--
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/20210706/b54271ac/attachment.html>
More information about the llvm-bugs
mailing list