[LLVMbugs] [Bug 23563] New: AMDGPU Promote Alloca crash when promoting indirect call (opencl)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon May 18 12:44:03 PDT 2015


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

            Bug ID: 23563
           Summary: AMDGPU Promote Alloca crash when promoting indirect
                    call (opencl)
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Target Description Classes
          Assignee: unassignedbugs at nondot.org
          Reporter: edb+llvm at sigluy.net
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

#0 0x7eff2e29a896 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
/home/edb/projects/mesa-opencl/llvm-git/lib/Support/Unix/Signals.inc:437:0
#1 0x7eff2e29ac12 PrintStackTraceSignalHandler(void*)
/home/edb/projects/mesa-opencl/llvm-git/lib/Support/Unix/Signals.inc:495:0
#2 0x7eff2e29971f SignalHandler(int)
/home/edb/projects/mesa-opencl/llvm-git/lib/Support/Unix/Signals.inc:210:0
#3 0x7eff2c8600d0 __restore_rt (/lib64/libpthread.so.0+0x100d0)
#4 0x7eff2e423cfa llvm::Function::getFunctionType() const
/home/edb/projects/mesa-opencl/llvm-git/lib/IR/Function.cpp:229:0
#5 0x7eff2e423d1c llvm::Function::isVarArg() const
/home/edb/projects/mesa-opencl/llvm-git/lib/IR/Function.cpp:232:0
#6 0x7eff2e1b666e (anonymous
namespace)::AMDGPUPromoteAlloca::visitAlloca(llvm::AllocaInst&)
/home/edb/projects/mesa-opencl/llvm-git/lib/Target/R600/AMDGPUPromoteAlloca.cpp:374:0
#7 0x7eff2e1b8f01 llvm::InstVisitor<(anonymous namespace)::AMDGPUPromoteAlloca,
void>::visit(llvm::Instruction&)
/home/edb/projects/mesa-opencl/llvm-git/include/llvm/IR/Instruction.def:132:0
#8 0x7eff2e1b8489 void llvm::InstVisitor<(anonymous
namespace)::AMDGPUPromoteAlloca,
void>::visit<llvm::ilist_iterator<llvm::Instruction>
>(llvm::ilist_iterator<llvm::Instruction>,
llvm::ilist_iterator<llvm::Instruction>)
/home/edb/projects/mesa-opencl/llvm-git/include/llvm/IR/InstVisitor.h:91:0
#9 0x7eff2e1b771a llvm::InstVisitor<(anonymous namespace)::AMDGPUPromoteAlloca,
void>::visit(llvm::BasicBlock&)
/home/edb/projects/mesa-opencl/llvm-git/include/llvm/IR/InstVisitor.h:108:0
#10 0x7eff2e1b707b void llvm::InstVisitor<(anonymous
namespace)::AMDGPUPromoteAlloca,
void>::visit<llvm::ilist_iterator<llvm::BasicBlock>
>(llvm::ilist_iterator<llvm::BasicBlock>,
llvm::ilist_iterator<llvm::BasicBlock>)
/home/edb/projects/mesa-opencl/llvm-git/include/llvm/IR/InstVisitor.h:91:0
#11 0x7eff2e1b6afa llvm::InstVisitor<(anonymous
namespace)::AMDGPUPromoteAlloca, void>::visit(llvm::Function&)
/home/edb/projects/mesa-opencl/llvm-git/include/llvm/IR/InstVisitor.h:104:0
#12 0x7eff2e1b502d (anonymous
namespace)::AMDGPUPromoteAlloca::runOnFunction(llvm::Function&)
/home/edb/projects/mesa-opencl/llvm-git/lib/Target/R600/AMDGPUPromoteAlloca.cpp:103:0
#13 0x7eff2e525420 llvm::FPPassManager::runOnFunction(llvm::Function&)
/home/edb/projects/mesa-opencl/llvm-git/lib/IR/LegacyPassManager.cpp:1537:0
#14 0x7eff2e525590 llvm::FPPassManager::runOnModule(llvm::Module&)
/home/edb/projects/mesa-opencl/llvm-git/lib/IR/LegacyPassManager.cpp:1557:0
#15 0x7eff2e5258e4 (anonymous
namespace)::MPPassManager::runOnModule(llvm::Module&)
/home/edb/projects/mesa-opencl/llvm-git/lib/IR/LegacyPassManager.cpp:1615:0
#16 0x7eff2e525f9a llvm::legacy::PassManagerImpl::run(llvm::Module&)
/home/edb/projects/mesa-opencl/llvm-git/lib/IR/LegacyPassManager.cpp:1722:0
#17 0x7eff2e5261bb llvm::legacy::PassManager::run(llvm::Module&)
/home/edb/projects/mesa-opencl/llvm-git/lib/IR/LegacyPassManager.cpp:1756:0
#18 0xe6ee64 (anonymous
namespace)::EmitAssemblyHelper::EmitAssembly(clang::BackendAction,
llvm::raw_pwrite_stream*)
/home/edb/projects/mesa-opencl/llvm-git/tools/clang/lib/CodeGen/BackendUtil.cpp:650:0
#19 0xe6ef17 clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions
const&, llvm::StringRef, llvm::Module*, clang::BackendAction,
llvm::raw_pwrite_stream*)
/home/edb/projects/mesa-opencl/llvm-git/tools/clang/lib/CodeGen/BackendUtil.cpp:666:0
#20 0xe4fcf0 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
/home/edb/projects/mesa-opencl/llvm-git/tools/clang/lib/CodeGen/CodeGenAction.cpp:181:0
#21 0x114ce1e clang::ParseAST(clang::Sema&, bool, bool)
/home/edb/projects/mesa-opencl/llvm-git/tools/clang/lib/Parse/ParseAST.cpp:153:0
#22 0xb43c08 clang::ASTFrontendAction::ExecuteAction()
/home/edb/projects/mesa-opencl/llvm-git/tools/clang/lib/Frontend/FrontendAction.cpp:538:0
#23 0xe52265 clang::CodeGenAction::ExecuteAction()
/home/edb/projects/mesa-opencl/llvm-git/tools/clang/lib/CodeGen/CodeGenAction.cpp:741:0
#24 0xb436c9 clang::FrontendAction::Execute()
/home/edb/projects/mesa-opencl/llvm-git/tools/clang/lib/Frontend/FrontendAction.cpp:443:0
#25 0xb059ad clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
/home/edb/projects/mesa-opencl/llvm-git/tools/clang/lib/Frontend/CompilerInstance.cpp:815:0
#26 0xac53b5 clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
/home/edb/projects/mesa-opencl/llvm-git/tools/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:222:0
#27 0xaafff3 cc1_main(llvm::ArrayRef<char const*>, char const*, void*)
/home/edb/projects/mesa-opencl/llvm-git/tools/clang/tools/driver/cc1_main.cpp:110:0
#28 0xabead1 ExecuteCC1Tool(llvm::ArrayRef<char const*>, llvm::StringRef)
/home/edb/projects/mesa-opencl/llvm-git/tools/clang/tools/driver/driver.cpp:369:0
#29 0xabf094 main
/home/edb/projects/mesa-opencl/llvm-git/tools/clang/tools/driver/driver.cpp:415:0
#30 0x7eff2b416fe0 __libc_start_main (/lib64/libc.so.6+0x1ffe0)
#31 0xaae879 _start
(/home/edb/projects/mesa-opencl/install/llvm/bin/clang+0xaae879)
Stack dump:
0.      Program arguments:
/home/edb/projects/mesa-opencl/install/llvm/bin/clang -cc1 -triple amdgcn-- -S
-disable-free -main-file-name fail-test.cl -mrelocation-model static
-mthread-model posix -mdisable-fp-elim -fmath-errno -no-integrated-as
-mconstructor-aliases -target-linker-version 2.24 -dwarf-column-info
-resource-dir
/home/edb/projects/mesa-opencl/install/llvm/bin/../lib/clang/3.7.0
-fno-dwarf-directory-asm -fdebug-compilation-dir
/home/edb/projects/mesa-opencl/luxmark-hg -ferror-limit 19 -fmessage-length 197
-mstackrealign -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics
-o /tmp/fail-test-7cf29e.s -x cl ./fail-test.cl 
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module './fail-test.cl'.
4.      Running pass 'AMDGPU Promote Alloca' on function
'@AdvancePaths_MK_HIT_NOTHING'
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 3.7.0 (http://llvm.org/git/clang.git
bee9c263f26d5407598792f66a6b865d8572d2c8) (http://llvm.org/git/llvm.git
2bb2ea810545e8a051a8e7b3fd2b27ed92ff4b24)
Target: amdgcn--
Thread model: posix

clang: 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: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/fail-test-ef2564.cl
clang: note: diagnostic msg: /tmp/fail-test-ef2564.sh
clang: 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/20150518/2b685bd1/attachment.html>


More information about the llvm-bugs mailing list