Skip to content

Instantly share code, notes, and snippets.

@stelleg
Created October 11, 2017 21:48
Show Gist options
  • Save stelleg/6c5f123985711bc537bc4bdf6568a1a6 to your computer and use it in GitHub Desktop.
Save stelleg/6c5f123985711bc537bc4bdf6568a1a6 to your computer and use it in GitHub Desktop.
../../build/bin/clang -ftapir=openmp -fopenmp -O3 -g -o nqueens_tapir nqueens.c
#0 0x0000000003e9dd59 llvm::sys::PrintStackTrace(llvm::raw_ostream&) /dev/shm/parallel-ir/lib/Support/Unix/Signals.inc:398:0
#1 0x0000000003e9ddea PrintStackTraceSignalHandler(void*) /dev/shm/parallel-ir/lib/Support/Unix/Signals.inc:462:0
#2 0x0000000003e9c32e llvm::sys::RunSignalHandlers() /dev/shm/parallel-ir/lib/Support/Signals.cpp:49:0
#3 0x0000000003e9d6f1 SignalHandler(int) /dev/shm/parallel-ir/lib/Support/Unix/Signals.inc:252:0
#4 0x00002ace8572b370 __restore_rt (/lib64/libpthread.so.0+0xf370)
#5 0x0000000001f8d278 llvm::Value::getSubclassDataFromValue() const /dev/shm/parallel-ir/include/llvm/IR/Value.h:655:0
#6 0x00000000020725ca llvm::Function::hasLazyArguments() const /dev/shm/parallel-ir/include/llvm/IR/Function.h:103:0
#7 0x00000000020725f0 llvm::Function::CheckLazyArguments() const /dev/shm/parallel-ir/include/llvm/IR/Function.h:108:0
#8 0x00000000023b5dd0 llvm::Function::arg_end() /dev/shm/parallel-ir/include/llvm/IR/Function.h:606:0
#9 0x00000000023b5e0d llvm::Function::args() /dev/shm/parallel-ir/include/llvm/IR/Function.h:614:0
#10 0x0000000004e0dc21 llvm::tapir::OpenMPABI::postProcessFunction(llvm::Function&) /dev/shm/parallel-ir/lib/Transforms/Tapir/OpenMPABI.cpp:690:0
#11 0x0000000004e1697b (anonymous namespace)::LowerTapirToTarget::processFunction(llvm::Function&, llvm::DominatorTree&, llvm::AssumptionCache&) /dev/shm/parallel-ir/lib/Transforms/Tapir/TapirToTarget.cpp:138:0
#12 0x0000000004e16c40 (anonymous namespace)::LowerTapirToTarget::runOnModule(llvm::Module&) /dev/shm/parallel-ir/lib/Transforms/Tapir/TapirToTarget.cpp:169:0
#13 0x00000000037f7fcb (anonymous namespace)::MPPassManager::runOnModule(llvm::Module&) /dev/shm/parallel-ir/lib/IR/LegacyPassManager.cpp:1591:0
#14 0x00000000037f86bc llvm::legacy::PassManagerImpl::run(llvm::Module&) /dev/shm/parallel-ir/lib/IR/LegacyPassManager.cpp:1694:0
#15 0x00000000037f88fd llvm::legacy::PassManager::run(llvm::Module&) /dev/shm/parallel-ir/lib/IR/LegacyPassManager.cpp:1726:0
#16 0x0000000004115a99 (anonymous namespace)::EmitAssemblyHelper::EmitAssembly(clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream> >) /dev/shm/parallel-ir/tools/clang/lib/CodeGen/BackendUtil.cpp:830:0
#17 0x0000000004117ab4 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> >) /dev/shm/parallel-ir/tools/clang/lib/CodeGen/BackendUtil.cpp:1179:0
#18 0x0000000004be0129 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) /dev/shm/parallel-ir/tools/clang/lib/CodeGen/CodeGenAction.cpp:263:0
#19 0x000000000587698a clang::ParseAST(clang::Sema&, bool, bool) /dev/shm/parallel-ir/tools/clang/lib/Parse/ParseAST.cpp:161:0
#20 0x00000000047197b6 clang::ASTFrontendAction::ExecuteAction() /dev/shm/parallel-ir/tools/clang/lib/Frontend/FrontendAction.cpp:1005:0
#21 0x0000000004bde1a0 clang::CodeGenAction::ExecuteAction() /dev/shm/parallel-ir/tools/clang/lib/CodeGen/CodeGenAction.cpp:993:0
#22 0x00000000047191f7 clang::FrontendAction::Execute() /dev/shm/parallel-ir/tools/clang/lib/Frontend/FrontendAction.cpp:906:0
#23 0x00000000046bbcfe clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) /dev/shm/parallel-ir/tools/clang/lib/Frontend/CompilerInstance.cpp:981:0
#24 0x000000000484ca01 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) /dev/shm/parallel-ir/tools/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:251:0
#25 0x0000000001f6fd00 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) /dev/shm/parallel-ir/tools/clang/tools/driver/cc1_main.cpp:221:0
#26 0x0000000001f65b0c ExecuteCC1Tool(llvm::ArrayRef<char const*>, llvm::StringRef) /dev/shm/parallel-ir/tools/clang/tools/driver/driver.cpp:306:0
#27 0x0000000001f6669b main /dev/shm/parallel-ir/tools/clang/tools/driver/driver.cpp:387:0
#28 0x00002ace86a40b35 __libc_start_main (/lib64/libc.so.6+0x21b35)
#29 0x0000000001f633b9 _start (/dev/shm/build/bin/clang-5.0+0x1f633b9)
Stack dump:
0. Program arguments: /dev/shm/build/bin/clang-5.0 -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name nqueens.c -mrelocation-model static -mthread-model posix -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=limited -dwarf-version=4 -debugger-tuning=gdb -resource-dir /dev/shm/build/lib/clang/5.0.0 -internal-isystem /usr/local/include -internal-isystem /dev/shm/build/lib/clang/5.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -fdebug-compilation-dir /dev/shm/openmpir-clang/benchmarks -ferror-limit 19 -fmessage-length 132 -ftapir=openmp -fopenmp -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o /tmp/nqueens-0dfaf8.o -x c nqueens.c
1. <eof> parser at end of file
2. Per-module optimization passes
3. Running pass 'Simple Lowering of Tapir to Target ABI' on module 'nqueens.c'.
clang-5.0: error: unable to execute command: Segmentation fault (core dumped)
clang-5.0: error: clang frontend command failed due to signal (use -v to see invocation)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment