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

TMVAGui::mvaeffs crashes when compiled stand-alone

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened (View Workflow)
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: 6.14/00
    • Fix Version/s: 6.16/00
    • Component/s: TMVA
    • Labels:
      None
    • Environment:

      macos 10.12.6

      Description

      Reported in this forum thread: https://root-forum.cern.ch/t/tmva-problem-tmvagui-c-crashing/12363/5

      The crash is triggered by compiling and runing the following:

      #include <string>
      #include <TMVA/mvas.h>
      #include <TMVA/mvaeffs.h>
      #include <TFile.h>
      #include <TMVA/Types.h>
       
      void tmva_plot(std::string infilename) {
          TFile* myFile = TFile::Open(infilename.c_str());
          TMVA::mvas("dataset", infilename, static_cast<TMVA::HistType>(3));
          TMVA::mvaeffs("dataset", infilename);
      }
       
      int main() {
         tmva_plot("TMVA.root");
      }
      

      The error is a segmentation fault:

      *** Break *** segmentation violation

      ...snip...

      #5 0x00007fde29e42cb0 in TGClient::GetRoot() const () from /usr/lib/root/libGui.so

      #6 0x00007fde2c59887c in TMVA::mvaeffs(TString, TString, bool, TString) () from /usr/lib/root/libTMVAGui.so

      #7 0x000055e6f6ee3b7c in tmva_plot (infilename="TMVA.root") at src/TMVAPlot.cpp:26

      #8 0x000055e6f6ee3d56 in main (argc=2, argv=0x7ffcf2e369f8) at src/TMVAPlot.cpp:34

      ===========================================================

        Attachments

          Activity

            People

            • Assignee:
              moneta Lorenzo Moneta
              Reporter:
              kialbert Kim Albertsson (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Actual End: