[llvm-bugs] [Bug 34781] New: 'Unknown type' crash with coroutines

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Sep 29 07:44:09 PDT 2017


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

            Bug ID: 34781
           Summary: 'Unknown type' crash with coroutines
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
          Assignee: unassignedbugs at nondot.org
          Reporter: sammccall at google.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 19211
  --> https://bugs.llvm.org/attachment.cgi?id=19211&action=edit
bugpoint-reduced bitcode

Minimized C++ to follow

Unknown type!
UNREACHABLE executed at
/usr/local/google/home/sammccall/src/llvm2/lib/IR/ValueTypes.cpp:287!
clang(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamE+0x33)[0x3faf431]
clang[0x3faf4c2]
clang(_ZN4llvm3sys17RunSignalHandlersEv+0x76)[0x3fad8b0]
clang[0x3faedc9]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x10330)[0x7f7542220330]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x37)[0x7f7541017c37]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x148)[0x7f754101b028]
clang[0x3f32589]
clang(_ZN4llvm3MVT5getVTEPNS_4TypeEb+0x7e)[0x3941a90]
clang(_ZN4llvm3EVT6getEVTEPNS_4TypeEb+0x40)[0x3941c18]
clang[0x201d2cf]
clang(_ZN4llvm15ComputeValueVTsERKNS_14TargetLoweringERKNS_10DataLayoutEPNS_4TypeERNS_15SmallVectorImplINS_3EVTEEEPNS8_ImEEm+0x1bc)[0x3355cb2]
clang(_ZN4llvm19SelectionDAGBuilder20visitTargetIntrinsicERKNS_8CallInstEj+0x36c)[0x4bfa5d2]
clang(_ZN4llvm19SelectionDAGBuilder18visitIntrinsicCallERKNS_8CallInstEj+0x5ca)[0x4c00b78]
clang(_ZN4llvm19SelectionDAGBuilder9visitCallERKNS_8CallInstE+0x1b0)[0x4c0bb60]
clang(_ZN4llvm19SelectionDAGBuilder5visitEjRKNS_4UserE+0x560)[0x4be3fd6]
clang(_ZN4llvm19SelectionDAGBuilder5visitERKNS_11InstructionE+0x9f)[0x4be39d1]
clang(_ZN4llvm16SelectionDAGISel16SelectBasicBlockENS_14ilist_iteratorINS_12ilist_detail12node_optionsINS_11InstructionELb1ELb0EvEELb0ELb1EEES6_Rb+0x85)[0x4c89a95]
clang(_ZN4llvm16SelectionDAGISel20SelectAllBasicBlocksERKNS_8FunctionE+0x1527)[0x4c8f223]
clang(_ZN4llvm16SelectionDAGISel20runOnMachineFunctionERNS_15MachineFunctionE+0x754)[0x4c887b0]
clang[0x2dea7e8]
clang(_ZN4llvm19MachineFunctionPass13runOnFunctionERNS_8FunctionE+0x1c5)[0x347253f]
clang(_ZN4llvm13FPPassManager13runOnFunctionERNS_8FunctionE+0x122)[0x38c48b6]
clang(_ZN4llvm13FPPassManager11runOnModuleERNS_6ModuleE+0x61)[0x38c4a49]
clang[0x38c4de4]
clang(_ZN4llvm6legacy15PassManagerImpl3runERNS_6ModuleE+0x100)[0x38c5534]
clang(_ZN4llvm6legacy11PassManager3runERNS_6ModuleE+0x27)[0x38c5775]
clang[0x424d738]
clang(_ZN5clang17EmitBackendOutputERNS_17DiagnosticsEngineERKNS_19HeaderSearchOptionsERKNS_14CodeGenOptionsERKNS_13TargetOptionsERKNS_11LangOptionsERKN4llvm10DataLayoutEPNSE_6ModuleENS_13BackendActionESt10unique_ptrINSE_17raw_pwrite_streamESt14default_deleteISM_EE+0x3b4)[0x424ebec]
clang[0x4d6af10]
clang(_ZN5clang8ParseASTERNS_4SemaEbb+0x300)[0x59e705f]
clang(_ZN5clang17ASTFrontendAction13ExecuteActionEv+0x142)[0x4883a1e]
clang(_ZN5clang13CodeGenAction13ExecuteActionEv+0x47e)[0x4d68d40]
clang(_ZN5clang14FrontendAction7ExecuteEv+0x87)[0x488348f]
clang(_ZN5clang16CompilerInstance13ExecuteActionERNS_14FrontendActionE+0x4f9)[0x4825cdf]
clang(_ZN5clang25ExecuteCompilerInvocationEPNS_16CompilerInstanceE+0x61f)[0x49bb53a]
clang(_Z8cc1_mainN4llvm8ArrayRefIPKcEES2_Pv+0x44f)[0x1ff5140]
clang[0x1feacd9]
clang(main+0xb17)[0x1feb9c1]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7f7541002f45]
clang[0x1fe8549]
Stack dump:
0.      Program arguments: clang -cc1 -triple x86_64-grtev4-linux-gnu -emit-obj
-target-cpu x86-64 -O2 -std=c++14 -fcoroutines-ts
-fexperimental-new-pass-manager coro1-eaadab.cpp 
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module 'coro1-eaadab.cpp'.
4.      Running pass 'X86 DAG->DAG Instruction Selection' on function
'@_Z4corov'
coro1-eaadab.sh: line 10: 52317 Aborted                 (core dumped) clang
-cc1 -triple x86_64-grtev4-linux-gnu -emit-obj -target-cpu x86-64 -O2
-std=c++14 -fcoroutines-ts -fexperimental-new-pass-manager coro1-eaadab.cpp

-- 
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/20170929/9335fd95/attachment.html>


More information about the llvm-bugs mailing list