[llvm-bugs] [Bug 37856] New: crash while building application for ppc64 with O3

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jun 19 08:26:40 PDT 2018


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

            Bug ID: 37856
           Summary: crash while building application for ppc64 with O3
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: joel at jms.id.au
                CC: llvm-bugs at lists.llvm.org

Created attachment 20443
  --> https://bugs.llvm.org/attachment.cgi?id=20443&action=edit
source

building a firmware application with clang trunk (Ubuntu package
1:7~svn335024-1~exp1+0~20180619072109.325~1.gbp76c9a0)

Stack dump:
0.      Program arguments: /usr/lib/llvm-7/bin/clang -cc1 -triple
powerpc64--linux-gnu -emit-obj -disable-free -disable-llvm-verifier
-discard-value-names -main-file-name chip.c -mrelocation-model static
-mthread-model posix -mllvm -warn-stack-size=2048 -relaxed-aliasing
-fmath-errno -masm-verbose -mconstructor-aliases -ffreestanding
-fuse-init-array -target-cpu pwr8 -target-feature -vsx -target-feature
-direct-move -target-feature -altivec -target-feature -hard-float -msoft-float
-mfloat-abi soft -target-abi elfv1 -dwarf-column-info -debug-info-kind=limited
-dwarf-version=4 -debugger-tuning=gdb -momit-leaf-frame-pointer
-coverage-notes-file /home/joel/dev/skiboot/core/chip.gcno -nostdsysteminc
-nobuiltininc -resource-dir /usr/lib/llvm-7/lib/clang/7.0.0 -dependency-file
core/chip.d -MT core/chip.o -include /home/joel/dev/skiboot/include/config.h
-isystem /usr/lib/llvm-7/lib/clang/7.0.0/include -I
/home/joel/dev/skiboot/include -I include -I /home/joel/dev/skiboot/libfdt -I
/home/joel/dev/skiboot/libflash -I /home/joel/dev/skiboot/libxz -I
/home/joel/dev/skiboot/libc/include -I /home/joel/dev/skiboot -I
/home/joel/dev/skiboot/libpore -D __SKIBOOT__ -D BITS_PER_LONG=64 -D
HAVE_BIG_ENDIAN -D USE_VALGRIND=1 -O3 -Wjump-misses-init
-Wsuggest-attribute=const -Wsuggest-attribute=noreturn -Wstack-usage=1024 -Wall
-Wundef -Wstrict-prototypes -Wno-trigraphs
-Werror-implicit-function-declaration -Wdeclaration-after-statement
-Wno-pointer-sign -Wextra -Wno-sign-compare -Wmissing-prototypes
-Wmissing-declarations -Wwrite-strings -Wcast-align -Winit-self
-Wno-stringop-truncation -Werror -Wno-cast-align
-Wno-unused-command-line-argument -Wno-unknown-warning-option
-Wno-gnu-variable-sized-type-not-at-end -Wno-address-of-packed-member
-std=gnu11 -fconst-strings -fdebug-compilation-dir /home/joel/dev/skiboot
-ferror-limit 19 -fmessage-length 106 -fno-signed-char -fobjc-runtime=gcc
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp
-o core/chip.o -x c core/chip.c 
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module 'core/chip.c'.
4.      Running pass 'Linux PPC Assembly Printer' on function '@pir_to_core_id'
#0 0x00007efeac0e1d9a llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/lib/llvm-7/bin/../lib/libLLVM-7.so.1+0x8f1d9a)
#1 0x00007efeac0e04a4 llvm::sys::RunSignalHandlers()
(/usr/lib/llvm-7/bin/../lib/libLLVM-7.so.1+0x8f04a4)
#2 0x00007efeac0e05e2 (/usr/lib/llvm-7/bin/../lib/libLLVM-7.so.1+0x8f05e2)
#3 0x00007efeaf6e4890 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x12890)
#4 0x00007efeadcaa076 (/usr/lib/llvm-7/bin/../lib/libLLVM-7.so.1+0x24ba076)
#5 0x00007efeadcae61e (/usr/lib/llvm-7/bin/../lib/libLLVM-7.so.1+0x24be61e)
#6 0x00007efead12d395 llvm::MCELFStreamer::EmitInstToData(llvm::MCInst const&,
llvm::MCSubtargetInfo const&)
(/usr/lib/llvm-7/bin/../lib/libLLVM-7.so.1+0x193d395)
#7 0x00007efead13d172 llvm::MCObjectStreamer::EmitInstructionImpl(llvm::MCInst
const&, llvm::MCSubtargetInfo const&)
(/usr/lib/llvm-7/bin/../lib/libLLVM-7.so.1+0x194d172)
#8 0x00007efead13d1ab llvm::MCObjectStreamer::EmitInstruction(llvm::MCInst
const&, llvm::MCSubtargetInfo const&, bool)
(/usr/lib/llvm-7/bin/../lib/libLLVM-7.so.1+0x194d1ab)
#9 0x00007efeadbd1908 (/usr/lib/llvm-7/bin/../lib/libLLVM-7.so.1+0x23e1908)
#10 0x00007efeadbd3a33 (/usr/lib/llvm-7/bin/../lib/libLLVM-7.so.1+0x23e3a33)
#11 0x00007efeac76e930 llvm::AsmPrinter::EmitFunctionBody()
(/usr/lib/llvm-7/bin/../lib/libLLVM-7.so.1+0xf7e930)
#12 0x00007efeadbcd26c (/usr/lib/llvm-7/bin/../lib/libLLVM-7.so.1+0x23dd26c)
#13 0x00007efeac3a51d0
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/usr/lib/llvm-7/bin/../lib/libLLVM-7.so.1+0xbb51d0)
#14 0x00007efeac1ccc58 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/usr/lib/llvm-7/bin/../lib/libLLVM-7.so.1+0x9dcc58)
#15 0x00007efeac1ccca3 llvm::FPPassManager::runOnModule(llvm::Module&)
(/usr/lib/llvm-7/bin/../lib/libLLVM-7.so.1+0x9dcca3)
#16 0x00007efeac1cc457 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/usr/lib/llvm-7/bin/../lib/libLLVM-7.so.1+0x9dc457)
#17 0x00005576d46e86da 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> >)
(/usr/lib/llvm-7/bin/clang+0x4e56da)
#18 0x00005576d4ce37e4 (/usr/lib/llvm-7/bin/clang+0xae07e4)
#19 0x00005576d537c4d9 clang::ParseAST(clang::Sema&, bool, bool)
(/usr/lib/llvm-7/bin/clang+0x11794d9)
#20 0x00005576d4ce2967 clang::CodeGenAction::ExecuteAction()
(/usr/lib/llvm-7/bin/clang+0xadf967)
#21 0x00005576d4b14486 clang::FrontendAction::Execute()
(/usr/lib/llvm-7/bin/clang+0x911486)
#22 0x00005576d4adbf2c
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/usr/lib/llvm-7/bin/clang+0x8d8f2c)
#23 0x00005576d4bc714b
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/usr/lib/llvm-7/bin/clang+0x9c414b)
#24 0x00005576d4689e68 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/usr/lib/llvm-7/bin/clang+0x486e68)
#25 0x00005576d467799e main (/usr/lib/llvm-7/bin/clang+0x47499e)
#26 0x00007efeaa8afb97 __libc_start_main
/build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:344:0
#27 0x00005576d468771a _start (/usr/lib/llvm-7/bin/clang+0x48471a)
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: powerpc64--linux-gnu
Thread model: posix
InstalledDir: /usr/bin

-- 
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/20180619/4832c6f2/attachment-0001.html>


More information about the llvm-bugs mailing list