Skip to content

Instantly share code, notes, and snippets.

@stelleg
Last active January 18, 2018 18:11
Show Gist options
  • Save stelleg/ec7dbd9c672d12542427ea82cb289693 to your computer and use it in GitHub Desktop.
Save stelleg/ec7dbd9c672d12542427ea82cb289693 to your computer and use it in GitHub Desktop.
simple cilk_for error
clang-5.0: /ram/mnt/local/ssd1/parallel-ir/lib/Analysis/ScalarEvolution.cpp:3671: const llvm::SCEV* llvm::ScalarEvolution::getSCEV(llvm::Value*): Assertion `isSCEVable(V->getType()) && "Value is not SCEVable!"' failed.
#0 0x0000000003aa7438 llvm::sys::PrintStackTrace(llvm::raw_ostream&) /ram/mnt/local/ssd1/parallel-ir/lib/Support/Unix/Signals.inc:398:0
#1 0x0000000003aa74cb PrintStackTraceSignalHandler(void*) /ram/mnt/local/ssd1/parallel-ir/lib/Support/Unix/Signals.inc:462:0
#2 0x0000000003aa59ce llvm::sys::RunSignalHandlers() /ram/mnt/local/ssd1/parallel-ir/lib/Support/Signals.cpp:49:0
#3 0x0000000003aa6dad SignalHandler(int) /ram/mnt/local/ssd1/parallel-ir/lib/Support/Unix/Signals.inc:252:0
#4 0x000014e62abeb5e0 __restore_rt (/lib64/libpthread.so.0+0xf5e0)
#5 0x000014e6297681f7 __GI_raise (/lib64/libc.so.6+0x351f7)
#6 0x000014e6297698e8 __GI_abort (/lib64/libc.so.6+0x368e8)
#7 0x000014e629761266 __assert_fail_base (/lib64/libc.so.6+0x2e266)
#8 0x000014e629761312 (/lib64/libc.so.6+0x2e312)
#9 0x0000000002dbfa47 llvm::ScalarEvolution::getSCEV(llvm::Value*) /ram/mnt/local/ssd1/parallel-ir/lib/Analysis/ScalarEvolution.cpp:3671:0
#10 0x0000000006bc5f2a (anonymous namespace)::DACLoopSpawning::processLoop() /ram/mnt/local/ssd1/parallel-ir/lib/Transforms/Tapir/LoopSpawning.cpp:823:0
#11 0x0000000006bcd3f6 (anonymous namespace)::LoopSpawningImpl::processLoop(llvm::Loop*) /ram/mnt/local/ssd1/parallel-ir/lib/Transforms/Tapir/LoopSpawning.cpp:1984:0
#12 0x0000000006bcccbc (anonymous namespace)::LoopSpawningImpl::run() /ram/mnt/local/ssd1/parallel-ir/lib/Transforms/Tapir/LoopSpawning.cpp:1925:0
#13 0x0000000006bcdb97 (anonymous namespace)::LoopSpawning::runOnFunction(llvm::Function&) /ram/mnt/local/ssd1/parallel-ir/lib/Transforms/Tapir/LoopSpawning.cpp:2116:0
#14 0x00000000033f5ffd llvm::FPPassManager::runOnFunction(llvm::Function&) /ram/mnt/local/ssd1/parallel-ir/lib/IR/LegacyPassManager.cpp:1514:0
#15 0x00000000033f617e llvm::FPPassManager::runOnModule(llvm::Module&) /ram/mnt/local/ssd1/parallel-ir/lib/IR/LegacyPassManager.cpp:1535:0
#16 0x00000000033f64cf (anonymous namespace)::MPPassManager::runOnModule(llvm::Module&) /ram/mnt/local/ssd1/parallel-ir/lib/IR/LegacyPassManager.cpp:1591:0
#17 0x00000000033f6b9f llvm::legacy::PassManagerImpl::run(llvm::Module&) /ram/mnt/local/ssd1/parallel-ir/lib/IR/LegacyPassManager.cpp:1694:0
#18 0x00000000033f6d97 llvm::legacy::PassManager::run(llvm::Module&) /ram/mnt/local/ssd1/parallel-ir/lib/IR/LegacyPassManager.cpp:1726:0
#19 0x0000000003d26509 (anonymous namespace)::EmitAssemblyHelper::EmitAssembly(clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream> >) /ram/mnt/local/ssd1/parallel-ir/tools/clang/lib/CodeGen/BackendUtil.cpp:838:0
#20 0x0000000003d2850c 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> >) /ram/mnt/local/ssd1/parallel-ir/tools/clang/lib/CodeGen/BackendUtil.cpp:1188:0
#21 0x000000000492e670 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) /ram/mnt/local/ssd1/parallel-ir/tools/clang/lib/CodeGen/CodeGenAction.cpp:261:0
#22 0x0000000005232fd7 clang::ParseAST(clang::Sema&, bool, bool) /ram/mnt/local/ssd1/parallel-ir/tools/clang/lib/Parse/ParseAST.cpp:161:0
#23 0x00000000043299fd clang::ASTFrontendAction::ExecuteAction() /ram/mnt/local/ssd1/parallel-ir/tools/clang/lib/Frontend/FrontendAction.cpp:1003:0
#24 0x000000000492c6da clang::CodeGenAction::ExecuteAction() /ram/mnt/local/ssd1/parallel-ir/tools/clang/lib/CodeGen/CodeGenAction.cpp:993:0
#25 0x0000000004329457 clang::FrontendAction::Execute() /ram/mnt/local/ssd1/parallel-ir/tools/clang/lib/Frontend/FrontendAction.cpp:906:0
#26 0x00000000042c9c9d clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) /ram/mnt/local/ssd1/parallel-ir/tools/clang/lib/Frontend/CompilerInstance.cpp:981:0
#27 0x00000000044638e4 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) /ram/mnt/local/ssd1/parallel-ir/tools/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:251:0
#28 0x0000000001b75277 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) /ram/mnt/local/ssd1/parallel-ir/tools/clang/tools/driver/cc1_main.cpp:221:0
#29 0x0000000001b6ab85 ExecuteCC1Tool(llvm::ArrayRef<char const*>, llvm::StringRef) /ram/mnt/local/ssd1/parallel-ir/tools/clang/tools/driver/driver.cpp:306:0
#30 0x0000000001b6b6d7 main /ram/mnt/local/ssd1/parallel-ir/tools/clang/tools/driver/driver.cpp:387:0
#31 0x000014e629754c05 __libc_start_main (/lib64/libc.so.6+0x21c05)
#32 0x0000000001b68459 _start (/ram/mnt/local/ssd1/build/bin/clang-5.0+0x1b68459)
Stack dump:
0. Program arguments: /ram/mnt/local/ssd1/build/bin/clang-5.0 -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name simplefor.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 /ram/mnt/local/ssd1/build/lib/clang/5.0.0 -internal-isystem /usr/local/include -internal-isystem /ram/mnt/local/ssd1/build/lib/clang/5.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -O2 -fdebug-compilation-dir /ram/mnt/local/ssd1/openmpir/benchmarks -ferror-limit 19 -fmessage-length 125 -ftapir=cilk -fopenmp -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -mllvm -fast-openmp -o /tmp/simplefor-58c6fd.o -x c simplefor.c
1. <eof> parser at end of file
2. Per-module optimization passes
3. Running pass 'Function Pass Manager' on module 'simplefor.c'.
4. Running pass 'Loop Spawning' on function '@main'
clang-5.0: error: unable to execute command: Aborted (core dumped)
clang-5.0: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 5.0.0 (https://github.com/wsmoses/Tapir-Clang 549d5ca603cc5dabfd52fe9b3551748ec3dd845c) (george@pn1714976:/home/george/tasks/tapir/parallel-ir 11eb2485a7e8a22099bf0d0fde3af6952707da24)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /ram/mnt/local/ssd1/openmpir/benchmarks/../../build/bin
clang-5.0: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
clang-5.0: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-5.0: note: diagnostic msg: /tmp/simplefor-a78783.c
clang-5.0: note: diagnostic msg: /tmp/simplefor-a78783.sh
clang-5.0: note: diagnostic msg:
********************
make: *** [simplefor_tapir] Error 254
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment