[llvm-bugs] [Bug 35486] New: Compiler crash when collapsing two loops in omp distribute parallel for

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Nov 30 15:59:32 PST 2017


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

            Bug ID: 35486
           Summary: Compiler crash when collapsing two loops in omp
                    distribute parallel for
           Product: OpenMP
           Version: unspecified
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Clang Compiler Support
          Assignee: unassignedclangbugs at nondot.org
          Reporter: josem at udel.edu
                CC: llvm-bugs at lists.llvm.org

I am trying to compile this code and it crashes during compilation time. The
problem seems to be related with the initialization of the innerloop with the
outer loop.

#include <stdlib.h>
#include <stdio.h>
#include <omp.h>

int main(){
  int n, npl = 1000;
  int arr[1000];

  #pragma omp target data map (from: arr)
  #pragma omp target teams map (alloc: arr)
  #pragma omp distribute parallel for collapse(2) private(n)
    for (int nonsense = 0; nonsense < 4; nonsense++) {
      for (int n = (1 + nonsense); n <= npl; n+=4) {
        arr[n] = 0;
      }
    }

}

My clang version

   > clang --version
   clang version 3.8.0 (ibmgithub:/CORAL-LLVM-Compilers/clang.git 
   fc73231cc1447f6163740eb12b6f3fd5c69c6a1a) (ibmgithub:/CORAL-LLVM-
   Compilers/llvm.git 47cc905855d51360bcc523d2d290395073d87560)
   Target: powerpc64le-unknown-linux-gnu
   Thread model: posix



The compilation command I am using is:
     > clang -std=c99 -c -O3 -g -fopenmp -fopenmp-targets=nvptx64-nvida-cuda
bugClang.c



Here is the output when it crashes. I am also attaching the core file.

DeclRefExpr for Decl not entered in LocalDeclMap?
UNREACHABLE executed at
/home/compteam/slave0/build_folder_trunk_ibm_inline/src/tools/clang/lib/CodeGen/CGExpr.cpp:2217!
#0 0x0000000011bb7148 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11bb7148)
#1 0x0000000011bb76b8 PrintStackTraceSignalHandler(void*)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11bb76b8)
#2 0x0000000011bb7a84 SignalHandler(int)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11bb7a84)
#3 0x0000100000050478  0x478 __GI_abort
#4 0x0000100000050478 
#5 0x0000100000050478 llvm::llvm_unreachable_internal(char const*, char const*,
unsigned int) (+0x478)
#6 0x0000100000450d70
clang::CodeGen::CodeGenFunction::EmitDeclRefLValue(clang::DeclRefExpr const*)
(/lib64/libc.so.6+0x40d70)
#7 0x0000000011b586ac clang::CodeGen::CodeGenFunction::EmitLValue(clang::Expr
const*)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11b586ac)
#8 0x0000000011fe6fdc
clang::CodeGen::CodeGenFunction::EmitCheckedLValue(clang::Expr const*,
clang::CodeGen::CodeGenFunction::TypeCheckKind)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11fe6fdc)
#9 0x0000000011fda34c clang::StmtVisitorBase<clang::make_ptr, (anonymous
namespace)::ScalarExprEmitter, llvm::Value*>::Visit(clang::Stmt*)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11fda34c)
#10 0x0000000011fe3f38 (anonymous
namespace)::ScalarExprEmitter::VisitCastExpr(clang::CastExpr*)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11fe3f38)
#11 0x000000001202bf6c clang::StmtVisitorBase<clang::make_ptr, (anonymous
namespace)::ScalarExprEmitter, llvm::Value*>::Visit(clang::Stmt*)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x1202bf6c)
#12 0x0000000012035c00 (anonymous
namespace)::ScalarExprEmitter::EmitBinOps(clang::BinaryOperator const*)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x12035c00)
#13 0x0000000012029b1c clang::StmtVisitorBase<clang::make_ptr, (anonymous
namespace)::ScalarExprEmitter, llvm::Value*>::Visit(clang::Stmt*)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x12029b1c)
#14 0x00000000120321c0 clang::StmtVisitorBase<clang::make_ptr, (anonymous
namespace)::ScalarExprEmitter, llvm::Value*>::Visit(clang::Stmt*)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x120321c0)
#15 0x000000001202a4d8
clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x1202a4d8)
#16 0x000000001202a4ac
clang::CodeGen::CodeGenFunction::EmitScalarInit(clang::Expr const*,
clang::ValueDecl const*, clang::CodeGen::LValue, bool)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x1202a4ac)
#17 0x00000000120220f8
clang::CodeGen::CodeGenFunction::EmitExprAsInit(clang::Expr const*,
clang::ValueDecl const*, clang::CodeGen::LValue, bool)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x120220f8)
#18 0x0000000011fbf09c
clang::CodeGen::CodeGenFunction::EmitAutoVarInit(clang::CodeGen::CodeGenFunction::AutoVarEmission
const&)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11fbf09c)
#19 0x0000000011fc2b3c
clang::CodeGen::CodeGenFunction::EmitVarDecl(clang::VarDecl const&)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11fc2b3c)
#20 0x0000000011fc1048 (anonymous
namespace)::OMPLoopScope::OMPLoopScope(clang::CodeGen::CodeGenFunction&,
clang::OMPLoopDirective const&)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11fc1048)
#21 0x0000000011fbd0e4
clang::CodeGen::CodeGenFunction::EmitOMPDistributeLoop(clang::OMPLoopDirective
const&, clang::CodeGen::RegionCodeGenTy const&)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11fbd0e4)
#22 0x0000000011e2b870 void
clang::CodeGen::RegionCodeGenTy::CallbackFn<clang::CodeGen::CodeGenFunction::EmitOMPDistributeParallelForDirective(clang::OMPDistributeParallelForDirective
const&)::$_67>(long, clang::CodeGen::CodeGenFunction&,
clang::CodeGen::PrePostActionTy&)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e2b870)
#23 0x0000000011e30a70 (anonymous
namespace)::CGOpenMPRegionInfo::EmitBody(clang::CodeGen::CodeGenFunction&,
clang::Stmt const*)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e30a70)
#24 0x0000000011e4ee1c
clang::CodeGen::CGOpenMPRuntime::emitInlinedDirective(clang::CodeGen::CodeGenFunction&,
clang::OpenMPDirectiveKind, clang::CodeGen::RegionCodeGenTy const&, bool)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e4ee1c)
#25 0x00000000120e4edc
clang::CodeGen::CodeGenFunction::EmitOMPDistributeParallelForDirective(clang::OMPDistributeParallelForDirective
const&)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x120e4edc)
#26 0x00000000120d1ad4 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt
const*)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x120d1ad4)
#27 0x0000000011e321a0 void
clang::CodeGen::RegionCodeGenTy::CallbackFn<TargetTeamsCodegen(clang::CodeGen::CodeGenFunction&,
clang::CodeGen::PrePostActionTy&, clang::OMPTargetTeamsDirective
const&)::$_114>(long, clang::CodeGen::CodeGenFunction&,
clang::CodeGen::PrePostActionTy&)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e321a0)
#28 0x0000000011e027e0 (anonymous
namespace)::CGOpenMPRegionInfo::EmitBody(clang::CodeGen::CodeGenFunction&,
clang::Stmt const*)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e027e0)
#29 0x0000000011e53974
clang::CodeGen::CodeGenFunction::GenerateOpenMPCapturedStmtFunction(clang::CapturedStmt
const&, bool, unsigned int, unsigned int, bool)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e53974)
#30 0x00000000120e4edc
emitParallelOrTeamsOutlinedFunction(clang::CodeGen::CodeGenModule&,
clang::OMPExecutableDirective const&, clang::VarDecl const*,
clang::OpenMPDirectiveKind, clang::CodeGen::RegionCodeGenTy const&, unsigned
int, unsigned int)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x120e4edc)
#31 0x0000000011e169b8
clang::CodeGen::CGOpenMPRuntime::emitTeamsOutlinedFunction(clang::OMPExecutableDirective
const&, clang::VarDecl const*, clang::OpenMPDirectiveKind,
clang::CodeGen::RegionCodeGenTy const&, unsigned int, unsigned int)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e169b8)
#32 0x00000000120aeb34
emitCommonOMPTeamsDirective(clang::CodeGen::CodeGenFunction&,
clang::OMPExecutableDirective const&, clang::OpenMPDirectiveKind,
clang::CodeGen::RegionCodeGenTy const&, unsigned int, unsigned int)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x120aeb34)
#33 0x00000000120ae934 void
clang::CodeGen::RegionCodeGenTy::CallbackFn<clang::CodeGen::CodeGenFunction::EmitOMPTargetTeamsDirective(clang::OMPTargetTeamsDirective
const&)::$_89>(long, clang::CodeGen::CodeGenFunction&,
clang::CodeGen::PrePostActionTy&)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x120ae934)
#34 0x0000000011e29270 (anonymous
namespace)::CGOpenMPRegionInfo::EmitBody(clang::CodeGen::CodeGenFunction&,
clang::Stmt const*)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e29270)
#35 0x0000000011e53ae4
clang::CodeGen::CodeGenFunction::GenerateOpenMPCapturedStmtFunction(clang::CapturedStmt
const&, bool, unsigned int, unsigned int, bool)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e53ae4)
#36 0x00000000120e4edc
clang::CodeGen::CGOpenMPRuntime::outlineTargetDirective(clang::OMPExecutableDirective
const&, llvm::StringRef, clang::CodeGen::RegionCodeGenTy const&)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x120e4edc)
#37 0x0000000011e169b8
clang::CodeGen::CGOpenMPRuntime::emitTargetOutlinedFunctionHelper(clang::OMPExecutableDirective
const&, llvm::StringRef, llvm::Function*&, llvm::Constant*&, bool,
clang::CodeGen::RegionCodeGenTy const&, unsigned int)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e169b8)
#38 0x00000000120d24a8
clang::CodeGen::CGOpenMPRuntime::emitTargetOutlinedFunction(clang::OMPExecutableDirective
const&, llvm::StringRef, llvm::Function*&, llvm::Constant*&, bool,
clang::CodeGen::RegionCodeGenTy const&, unsigned int)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x120d24a8)
#39 0x00000000120d2874
emitCommonOMPTargetDirective(clang::CodeGen::CodeGenFunction&,
clang::OMPExecutableDirective const&, clang::OpenMPDirectiveKind,
clang::CodeGen::RegionCodeGenTy const&, llvm::ArrayRef<llvm::Value*>,
clang::CodeGen::OMPMapArrays&, clang::CodeGen::OMPTaskDataTy const*)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x120d2874)
#40 0x00000000120d2248
clang::CodeGen::CodeGenFunction::EmitOMPTargetTeamsDirective(clang::OMPTargetTeamsDirective
const&)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x120d2248)
#41 0x0000000011e349a4 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt
const*)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e349a4)
#42 0x0000000011e3646c void
clang::CodeGen::RegionCodeGenTy::CallbackFn<clang::CodeGen::CodeGenFunction::EmitOMPTargetDataDirective(clang::OMPTargetDataDirective
const&)::$_95::operator()(clang::CodeGen::CodeGenFunction&,
clang::CodeGen::PrePostActionTy&)
const::{lambda(clang::CodeGen::CodeGenFunction&,
clang::CodeGen::PrePostActionTy&)#1}>(long, clang::CodeGen::CodeGenFunction&,
clang::CodeGen::PrePostActionTy&)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e3646c)
#43 0x0000000011e02a74
clang::CodeGen::RegionCodeGenTy::operator()(clang::CodeGen::CodeGenFunction&)
const
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e02a74)
#44 0x0000000011e54cd4 void
clang::CodeGen::RegionCodeGenTy::CallbackFn<clang::CodeGen::CodeGenFunction::EmitOMPTargetDataDirective(clang::OMPTargetDataDirective
const&)::$_95::operator()(clang::CodeGen::CodeGenFunction&,
clang::CodeGen::PrePostActionTy&)
const::{lambda(clang::CodeGen::CodeGenFunction&,
clang::CodeGen::PrePostActionTy&)#2}>(long, clang::CodeGen::CodeGenFunction&,
clang::CodeGen::PrePostActionTy&)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e54cd4)
#45 0x00000000120a75fc (anonymous
namespace)::CGOpenMPRegionInfo::EmitBody(clang::CodeGen::CodeGenFunction&,
clang::Stmt const*)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x120a75fc)
#46 0x0000000011e54ba0
clang::CodeGen::CGOpenMPRuntime::emitInlinedDirective(clang::CodeGen::CodeGenFunction&,
clang::OpenMPDirectiveKind, clang::CodeGen::RegionCodeGenTy const&, bool)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e54ba0)
#47 0x00000000120e4edc void
clang::CodeGen::RegionCodeGenTy::CallbackFn<clang::CodeGen::CodeGenFunction::EmitOMPTargetDataDirective(clang::OMPTargetDataDirective
const&)::$_95>(long, clang::CodeGen::CodeGenFunction&,
clang::CodeGen::PrePostActionTy&)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x120e4edc)
#48 0x00000000120d1ad4
clang::CodeGen::CGOpenMPRuntime::emitTargetDataCalls(clang::CodeGen::CodeGenFunction&,
clang::OMPExecutableDirective const&, clang::Expr const*, clang::Expr const*,
clang::CodeGen::RegionCodeGenTy const&,
clang::CodeGen::CGOpenMPRuntime::TargetDataInfo&)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x120d1ad4)
#49 0x0000000011e548ec
clang::CodeGen::CodeGenFunction::EmitOMPTargetDataDirective(clang::OMPTargetDataDirective
const&)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e548ec)
#50 0x00000000120e13a0 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt
const*)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x120e13a0)
#51 0x0000000011e3763c
clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt
const&, bool, clang::CodeGen::AggValueSlot)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e3763c)
#52 0x0000000011e029fc
clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e029fc)
#53 0x0000000011e0c22c
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl,
llvm::GlobalValue*)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e0c22c)
#54 0x0000000011e5d2e8
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl,
llvm::GlobalValue*)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e5d2e8)
#55 0x0000000011e79998
clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e79998)
#56 0x0000000011e72a84
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e72a84)
#57 0x0000000011e76f88 (anonymous
namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e76f88)
#58 0x0000000011e7cb90
clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e7cb90)
#59 0x00000000127c6d6c clang::ParseAST(clang::Sema&, bool, bool)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x127c6d6c)
#60 0x00000000127c4c4c clang::ASTFrontendAction::ExecuteAction()
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x127c4c4c)
#61 0x0000000012dd72a4 clang::CodeGenAction::ExecuteAction()
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x12dd72a4)
#62 0x00000000122fe2dc clang::FrontendAction::Execute()
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x122fe2dc)
#63 0x00000000127c36c0
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x127c36c0)
#64 0x00000000122fda38
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x122fda38)
#65 0x00000000122b8238 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x122b8238)
#66 0x00000000123c1358 main
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x123c1358)
#67 0x0000000010473ee0 generic_start_main.isra.0
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x10473ee0)
#68 0x0000000010471b20 __libc_start_main
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x10471b20)
0  clang-3.8 0x0000000011bb7148 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
+ 120
1  clang-3.8 0x0000000011bb76b8
2  clang-3.8 0x0000000011bb7a84
3            0x0000100000050478 __kernel_sigtramp_rt64 + 0
4  libc.so.6 0x0000100000450d70 abort + 640
5  clang-3.8 0x0000000011b586ac llvm::llvm_unreachable_internal(char const*,
char const*, unsigned int) + 668
6  clang-3.8 0x0000000011fe6fdc
clang::CodeGen::CodeGenFunction::EmitDeclRefLValue(clang::DeclRefExpr const*) +
4828
7  clang-3.8 0x0000000011fda34c
clang::CodeGen::CodeGenFunction::EmitLValue(clang::Expr const*) + 1308
8  clang-3.8 0x0000000011fe3f38
clang::CodeGen::CodeGenFunction::EmitCheckedLValue(clang::Expr const*,
clang::CodeGen::CodeGenFunction::TypeCheckKind) + 248
9  clang-3.8 0x000000001202bf6c
10 clang-3.8 0x0000000012035c00
11 clang-3.8 0x0000000012029b1c
12 clang-3.8 0x00000000120321c0
13 clang-3.8 0x000000001202a4d8
14 clang-3.8 0x000000001202a4ac
15 clang-3.8 0x00000000120220f8
clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) + 168
16 clang-3.8 0x0000000011fbf09c
clang::CodeGen::CodeGenFunction::EmitScalarInit(clang::Expr const*,
clang::ValueDecl const*, clang::CodeGen::LValue, bool) + 380
17 clang-3.8 0x0000000011fc2b3c
clang::CodeGen::CodeGenFunction::EmitExprAsInit(clang::Expr const*,
clang::ValueDecl const*, clang::CodeGen::LValue, bool) + 652
18 clang-3.8 0x0000000011fc1048
clang::CodeGen::CodeGenFunction::EmitAutoVarInit(clang::CodeGen::CodeGenFunction::AutoVarEmission
const&) + 808
19 clang-3.8 0x0000000011fbd0e4
clang::CodeGen::CodeGenFunction::EmitVarDecl(clang::VarDecl const&) + 452
20 clang-3.8 0x0000000011e2b870
21 clang-3.8 0x0000000011e30a70
clang::CodeGen::CodeGenFunction::EmitOMPDistributeLoop(clang::OMPLoopDirective
const&, clang::CodeGen::RegionCodeGenTy const&) + 1440
22 clang-3.8 0x0000000011e4ee1c
23 clang-3.8 0x00000000120e4edc
24 clang-3.8 0x00000000120d1ad4
clang::CodeGen::CGOpenMPRuntime::emitInlinedDirective(clang::CodeGen::CodeGenFunction&,
clang::OpenMPDirectiveKind, clang::CodeGen::RegionCodeGenTy const&, bool) + 388
25 clang-3.8 0x0000000011e321a0
clang::CodeGen::CodeGenFunction::EmitOMPDistributeParallelForDirective(clang::OMPDistributeParallelForDirective
const&) + 304
26 clang-3.8 0x0000000011e027e0
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 1024
27 clang-3.8 0x0000000011e53974
28 clang-3.8 0x00000000120e4edc
29 clang-3.8 0x0000000011e169b8
clang::CodeGen::CodeGenFunction::GenerateOpenMPCapturedStmtFunction(clang::CapturedStmt
const&, bool, unsigned int, unsigned int, bool) + 1656
30 clang-3.8 0x00000000120aeb34
31 clang-3.8 0x00000000120ae934
clang::CodeGen::CGOpenMPRuntime::emitTeamsOutlinedFunction(clang::OMPExecutableDirective
const&, clang::VarDecl const*, clang::OpenMPDirectiveKind,
clang::CodeGen::RegionCodeGenTy const&, unsigned int, unsigned int) + 36
32 clang-3.8 0x0000000011e29270
33 clang-3.8 0x0000000011e53ae4
34 clang-3.8 0x00000000120e4edc
35 clang-3.8 0x0000000011e169b8
clang::CodeGen::CodeGenFunction::GenerateOpenMPCapturedStmtFunction(clang::CapturedStmt
const&, bool, unsigned int, unsigned int, bool) + 1656
36 clang-3.8 0x00000000120d24a8
clang::CodeGen::CGOpenMPRuntime::outlineTargetDirective(clang::OMPExecutableDirective
const&, llvm::StringRef, clang::CodeGen::RegionCodeGenTy const&) + 520
37 clang-3.8 0x00000000120d2874
clang::CodeGen::CGOpenMPRuntime::emitTargetOutlinedFunctionHelper(clang::OMPExecutableDirective
const&, llvm::StringRef, llvm::Function*&, llvm::Constant*&, bool,
clang::CodeGen::RegionCodeGenTy const&, unsigned int) + 708
38 clang-3.8 0x00000000120d2248
clang::CodeGen::CGOpenMPRuntime::emitTargetOutlinedFunction(clang::OMPExecutableDirective
const&, llvm::StringRef, llvm::Function*&, llvm::Constant*&, bool,
clang::CodeGen::RegionCodeGenTy const&, unsigned int) + 88
39 clang-3.8 0x0000000011e349a4
40 clang-3.8 0x0000000011e3646c
clang::CodeGen::CodeGenFunction::EmitOMPTargetTeamsDirective(clang::OMPTargetTeamsDirective
const&) + 348
41 clang-3.8 0x0000000011e02a74
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 1684
42 clang-3.8 0x0000000011e54cd4
43 clang-3.8 0x00000000120a75fc
clang::CodeGen::RegionCodeGenTy::operator()(clang::CodeGen::CodeGenFunction&)
const + 220
44 clang-3.8 0x0000000011e54ba0
45 clang-3.8 0x00000000120e4edc
46 clang-3.8 0x00000000120d1ad4
clang::CodeGen::CGOpenMPRuntime::emitInlinedDirective(clang::CodeGen::CodeGenFunction&,
clang::OpenMPDirectiveKind, clang::CodeGen::RegionCodeGenTy const&, bool) + 388
47 clang-3.8 0x0000000011e548ec
48 clang-3.8 0x00000000120e13a0
clang::CodeGen::CGOpenMPRuntime::emitTargetDataCalls(clang::CodeGen::CodeGenFunction&,
clang::OMPExecutableDirective const&, clang::Expr const*, clang::Expr const*,
clang::CodeGen::RegionCodeGenTy const&,
clang::CodeGen::CGOpenMPRuntime::TargetDataInfo&) + 512
49 clang-3.8 0x0000000011e3763c
clang::CodeGen::CodeGenFunction::EmitOMPTargetDataDirective(clang::OMPTargetDataDirective
const&) + 380
50 clang-3.8 0x0000000011e029fc
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 1564
51 clang-3.8 0x0000000011e0c22c
clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt
const&, bool, clang::CodeGen::AggValueSlot) + 172
52 clang-3.8 0x0000000011e5d2e8
clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 1320
53 clang-3.8 0x0000000011e79998
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl,
llvm::GlobalValue*) + 568
54 clang-3.8 0x0000000011e72a84
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl,
llvm::GlobalValue*) + 292
55 clang-3.8 0x0000000011e76f88
clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 1816
56 clang-3.8 0x0000000011e7cb90
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 304
57 clang-3.8 0x00000000127c6d6c
58 clang-3.8 0x00000000127c4c4c
59 clang-3.8 0x0000000012dd72a4 clang::ParseAST(clang::Sema&, bool, bool) + 564
60 clang-3.8 0x00000000122fe2dc clang::ASTFrontendAction::ExecuteAction() + 236
61 clang-3.8 0x00000000127c36c0 clang::CodeGenAction::ExecuteAction() + 320
62 clang-3.8 0x00000000122fda38 clang::FrontendAction::Execute() + 152
63 clang-3.8 0x00000000122b8238
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 2088
64 clang-3.8 0x00000000123c1358
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 4888
65 clang-3.8 0x0000000010473ee0 cc1_main(llvm::ArrayRef<char const*>, char
const*, void*) + 1760
66 clang-3.8 0x0000000010471b20 main + 12800
67 libc.so.6 0x0000100000434700
68 libc.so.6 0x00001000004348f4 __libc_start_main + 196
Stack dump:
0.      Program arguments:
/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8
-cc1 -triple powerpc64le-unknown-linux-gnu -emit-llvm-bc -emit-llvm-uselists
-disable-free -main-file-name bugClang.c -mrelocation-model pic -pic-level 2
-mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose
-mconstructor-aliases -fuse-init-array -target-cpu ppc64le -mfloat-abi hard
-target-abi elfv2 -dwarf-column-info -debug-info-kind=limited -dwarf-version=4
-debugger-tuning=gdb -coverage-notes-file
/ccs/home/josed/scratchpad/omp/bugClang.gcno -resource-dir
/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/../lib/clang/3.8.0
-c-isystem
/sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/omprtl
-cxx-isystem
/sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/omprtl
-internal-isystem /usr/local/include -internal-isystem
/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/../lib/clang/3.8.0/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include
-internal-isystem /usr/local/include -internal-isystem
/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/../lib/clang/3.8.0/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O3
-std=c99 -fdebug-compilation-dir /ccs/home/josed/scratchpad/omp -ferror-limit
19 -fmessage-length 150 -fopenmp -fno-signed-char -fobjc-runtime=gcc
-fdiagnostics-show-option -vectorize-loops -vectorize-slp -o
/tmp/bugClang-55f70e.bc -x c bugClang.c -fopenmp-targets=nvptx64-nvida-cuda 
1.      <eof> parser at end of file
2.      bugClang.c:5:5: LLVM IR generation of declaration 'main'
3.      bugClang.c:5:5: Generating code for declaration 'main'
clang-3.8: error: unable to execute command: Aborted (core dumped)
clang-3.8: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.8.0 (ibmgithub:/CORAL-LLVM-Compilers/clang.git
fc73231cc1447f6163740eb12b6f3fd5c69c6a1a)
(ibmgithub:/CORAL-LLVM-Compilers/llvm.git
47cc905855d51360bcc523d2d290395073d87560)
Target: powerpc64le-unknown-linux-gnu
Thread model: posix
InstalledDir:
/sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin
clang-3.8: 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-3.8: note: diagnostic msg: Error generating preprocessed source(s).

-- 
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/20171130/717b4789/attachment-0001.html>


More information about the llvm-bugs mailing list