Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-10309

for loop with undecl ident crashes cling

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Medium
    • Resolution: Unresolved
    • master
    • None
    • Cling
    • None
    • Any

    Description

      From https://root-forum.cern.ch/t/break-segmenation/32363

      for (i = 0;i<12;i++) {}
      

       *** Break *** segmentation violation
      [/Users/axel/build/root/cmake/lib/libCore.so] TUnixSystem::DispatchSignals(ESignals) /Users/axel/build/root/src/core/unix/src/TUnixSystem.cxx:3627
      [/Users/axel/build/root/cmake/lib/libCore.so] SigHandler(ESignals) /Users/axel/build/root/src/core/unix/src/TUnixSystem.cxx:403
      [/Users/axel/build/root/cmake/lib/libCore.so] sighandler(int) /Users/axel/build/root/src/core/unix/src/TUnixSystem.cxx:3605
      [/Users/axel/build/root/cmake/lib/libCore.so] textinput::TerminalConfigUnix::HandleSignal(int) /Users/axel/build/root/src/core/textinput/src/textinput/TerminalConfigUnix.cpp:102
      [/Users/axel/build/root/cmake/lib/libCore.so] (anonymous namespace)::TerminalConfigUnix__handleSignal(int) /Users/axel/build/root/src/core/textinput/src/textinput/TerminalConfigUnix.cpp:37
      [/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info)
      [<unknown binary>] (no debug info)
      [/Users/axel/build/root/cmake/lib/libCling.so] (anonymous namespace)::ScalarExprEmitter::EmitScalarConversion(llvm::Value*, clang::QualType, clang::QualType, clang::SourceLocation, bool) /Users/axel/build/root/src/interpreter/llvm/src/tools/clang/lib/CodeGen/CGExprScalar.cpp:937
      [/Users/axel/build/root/cmake/lib/libCling.so] (anonymous namespace)::ScalarExprEmitter::EmitScalarConversion(llvm::Value*, clang::QualType, clang::QualType, clang::SourceLocation) /Users/axel/build/root/src/interpreter/llvm/src/tools/clang/lib/CodeGen/CGExprScalar.cpp:922
      [/Users/axel/build/root/cmake/lib/libCling.so] clang::CodeGen::CodeGenFunction::EmitScalarConversion(llvm::Value*, clang::QualType, clang::QualType, clang::SourceLocation) /Users/axel/build/root/src/interpreter/llvm/src/tools/clang/lib/CodeGen/CGExprScalar.cpp:3767
      [/Users/axel/build/root/cmake/lib/libCling.so] clang::CodeGen::CodeGenFunction::EvaluateExprAsBool(clang::Expr const*) /Users/axel/build/root/src/interpreter/llvm/src/tools/clang/lib/CodeGen/CGExpr.cpp:149
      [/Users/axel/build/root/cmake/lib/libCling.so] clang::CodeGen::CodeGenFunction::EmitForStmt(clang::ForStmt const&, llvm::ArrayRef<clang::Attr const*>) /Users/axel/build/root/src/interpreter/llvm/src/tools/clang/lib/CodeGen/CGStmt.cpp:889
      [/Users/axel/build/root/cmake/lib/libCling.so] clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) /Users/axel/build/root/src/interpreter/llvm/src/tools/clang/lib/CodeGen/CGStmt.cpp:137
      [/Users/axel/build/root/cmake/lib/libCling.so] clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt const&, bool, clang::CodeGen::AggValueSlot) /Users/axel/build/root/src/interpreter/llvm/src/tools/clang/lib/CodeGen/CGStmt.cpp:380
      [/Users/axel/build/root/cmake/lib/libCling.so] clang::CodeGen::CodeGenFunction::EmitFunctionBody(clang::CodeGen::FunctionArgList&, clang::Stmt const*) /Users/axel/build/root/src/interpreter/llvm/src/tools/clang/lib/CodeGen/CodeGenFunction.cpp:1035
      [/Users/axel/build/root/cmake/lib/libCling.so] clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&) /Users/axel/build/root/src/interpreter/llvm/src/tools/clang/lib/CodeGen/CodeGenFunction.cpp:1206
      [/Users/axel/build/root/cmake/lib/libCling.so] clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl, llvm::GlobalValue*) /Users/axel/build/root/src/interpreter/llvm/src/tools/clang/lib/CodeGen/CodeGenModule.cpp:3212
      [/Users/axel/build/root/cmake/lib/libCling.so] clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl, llvm::GlobalValue*) /Users/axel/build/root/src/interpreter/llvm/src/tools/clang/lib/CodeGen/CodeGenModule.cpp:2042
      [/Users/axel/build/root/cmake/lib/libCling.so] clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) /Users/axel/build/root/src/interpreter/llvm/src/tools/clang/lib/CodeGen/CodeGenModule.cpp:1817
      [/Users/axel/build/root/cmake/lib/libCling.so] clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) /Users/axel/build/root/src/interpreter/llvm/src/tools/clang/lib/CodeGen/CodeGenModule.cpp:3946
      [/Users/axel/build/root/cmake/lib/libCling.so] clang::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) /Users/axel/build/root/src/interpreter/llvm/src/tools/clang/lib/CodeGen/ModuleBuilder.cpp:321
      [/Users/axel/build/root/cmake/lib/libCling.so] clang::MultiplexConsumer::HandleTopLevelDecl(clang::DeclGroupRef) /Users/axel/build/root/src/interpreter/llvm/src/tools/clang/lib/Frontend/MultiplexConsumer.cpp:284
      [/Users/axel/build/root/cmake/lib/libCling.so] cling::DeclCollector::HandleTopLevelDecl(clang::DeclGroupRef) /Users/axel/build/root/src/interpreter/cling/lib/Interpreter/DeclCollector.cpp:234
      [/Users/axel/build/root/cmake/lib/libCling.so] cling::IncrementalParser::ParseInternal(llvm::StringRef) /Users/axel/build/root/src/interpreter/cling/lib/Interpreter/IncrementalParser.cpp:874
      [/Users/axel/build/root/cmake/lib/libCling.so] cling::IncrementalParser::Compile(llvm::StringRef, cling::CompilationOptions const&) /Users/axel/build/root/src/interpreter/cling/lib/Interpreter/IncrementalParser.cpp:782
      

      Attachments

        Activity

          People

            axel Axel Naumann
            axel Axel Naumann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: