Standalone PROOF macro

Hi,

I am trying to run a standalone program using PROOF but it does a seg fault right after exiting theSlaveBegin method, while in interactive root everything is fine.

here is the interactive root macro:

#include "TDSet.h"
#include "TProof.h"
#include "TProofLog.h"
#include "TSystem.h"
#include <sstream>
#include <iostream>

void getMyData() {
  TDSet *t = new TDSet("PAUReco","PAUReco");
  
  t->Add("root://ccxrasn001:1094//xrootd/users/p/PAU/MonteCarlo/GamJet7_108085_r1215/PAU-00-01-60/group10.phys-sm.mc09_7TeV.00108085.PythiaPhotonJet_Unbinned7.e534_s765_s767_r1215_FromAOD_NTUP-PAU-00-01-60_15.6.8.4_v1.AANT._00001.root.1");

  TProof * p = TProof::Open("ccapl0001.in2p3.fr","workers=1");
  
  p->Load("PAUReco.C++");
  t->Process("PAUReco","");
}

And the standalone code:

[code]#include <stdlib.h>
#include
#include
#include <TROOT.h>
#include <TApplication.h>
#include <TProof.h>
#include <TProofLog.h>
#include <TSystem.h>
#include <TDSet.h>

void getMyData();

int main(int argc, char **argv)
{
//TROOT my_root_app(“myapp”,“myapp”);
TApplication theApp(“App”,&argc,argv);
getMyData();
return 0;
}

void getMyData() {
TDSet *t = new TDSet(“PAUReco”,“PAUReco”);

t->Add(“root://ccxrasn001:1094//xrootd/users/p/PAU/MonteCarlo/GamJet7_108085_r1215/PAU-00-01-60/group10.phys-sm.mc09_7TeV.00108085.PythiaPhotonJet_Unbinned7.e534_s765_s767_r1215_FromAOD_NTUP-PAU-00-01-60_15.6.8.4_v1.AANT._00001.root.1”);

TProof * p = TProof::Open(“ccapl0001.in2p3.fr”,“valgrind=workers”);

p->Load(“PAUReco.C++”);
t->Process(“PAUReco”,"");
}
[/code]

I tested with different TSelector and the result is always the same. Maybe some initialization steps are missing.

Any help would be welcome.

– Remi

Dear Remi,

Could you please:

  1. Specify which ROOT version you are using;
  2. Say a bit more about what you are doing in PAUReco;
  3. Post the backtrace of the crash.

G. Ganis