Home | News | Documentation | Download

Segmentation Fault when running large data file

Background: I am trying to run an analysis that uses the following repo:

Issue: I am successful when running smaller files (tested up to 260 MB), however with the warning:

Warning in <TClass::Init>: no dictionary for class ROOT::TIOFeatures is available

but when I try use use larger file (1 GB and above), the code crashes and I get:

/var/reana/users/00000000-0000-0000-0000-000000000000/workflows/ae27b428-93f4-4b00-b2e2-460c3f73fbd2/code/lhcbStyle.C:3:1: error: expected unqualified-id
{
^
Error in <ACLiC>: Dictionary generation failed!

 *** Break *** segmentation violation
 Generating stack trace...

Computing environment:
I am using Ubuntu 18.04.2 LTS, with ALIPHYSICS_VERSION=vAN-20170521-1

Could you give me a hint on what is wrong here?

Cheers!

Where is the segmentation violation happening? Does the stack trace provide any hint?

Also, the ACLiC message of the dictionary generation failing, you only get it when using a larger file?

Also, the ACLiC message of the dictionary generation failing, you only get it when using a larger file?

This message occurs regardless of the file size I use.

Where is the segmentation violation happening? Does the stack trace provide any hint?

Here is the “full stack trace”. I run it for two files importing the same custom library and data file:

Processing code/ModelFixing.C("data/D2PiMuMuOS-small.root", "results/tmp/PhiModels.root")...

RooFit v3.60 -- Developed by Wouter Verkerke and David Kirkby 
                Copyright (C) 2000-2013 NIKHEF, University of California & Stanford University
                All rights reserved, please read http://roofit.sourceforge.net/license.txt

Hello there
Info in <TUnixSystem::ACLiC>: creating shared library /var/reana/users/00000000-0000-0000-0000-000000000000/workflows/a7fc7328-a458-4566-af93-d04b1fa90535/code/RooFitHeaders_h.so

 *** Break *** segmentation violation
 Generating stack trace...
Processing code/OSMassFit.C("data/D2PiMuMuOS-small.root", "results/tmp/PhiModels.root", "results/low_dimuon_signal.pdf")...

RooFit v3.60 -- Developed by Wouter Verkerke and David Kirkby 
                Copyright (C) 2000-2013 NIKHEF, University of California & Stanford University
                All rights reserved, please read http://roofit.sourceforge.net/license.txt

Hello there
Info in <TUnixSystem::ACLiC>: creating shared library /var/reana/users/00000000-0000-0000-0000-000000000000/workflows/a7fc7328-a458-4566-af93-d04b1fa90535/code/RooFitHeaders_h.so
Info in <TUnixSystem::ACLiC>: creating shared library /var/reana/users/00000000-0000-0000-0000-000000000000/workflows/a7fc7328-a458-4566-af93-d04b1fa90535/code/lhcbStyle_C.so
In file included from input_line_12:9:
/var/reana/users/00000000-0000-0000-0000-000000000000/workflows/a7fc7328-a458-4566-af93-d04b1fa90535/code/lhcbStyle.C:3:1: error: expected unqualified-id
{
^
Error in <ACLiC>: Dictionary generation failed!

 *** Break *** segmentation violation
 Generating stack trace...

I don’t see any stack trace, but in the second run I see:

In file included from input_line_12:9:
/var/reana/users/00000000-0000-0000-0000-000000000000/workflows/a7fc7328-a458-4566-af93-d04b1fa90535/code/lhcbStyle.C:3:1: error: expected unqualified-id
{
^
Error in <ACLiC>: Dictionary generation failed!

Perhaps you could check what the error in that file is about?

On the other hand, what is it that you are executing? Some RooFit code?

On the other hand, what is it that you are executing? Some RooFit code?

I am executing the scripts in the code folder of this repo, which are indeed some RooFit code. When executing smaller files (e.g. 23 MB), there is no error leading to a segmentation fault. I have uploaded here the logs: massfit.txt (284.2 KB)

Perhaps you could check what the error in that file is about?

I looked up the error: expected unqualified-id, found some issues like this one, but the file in question is the lhcbStyle.C which is a standard for the LHCb collaboration, i.e. taken from here.

From looking at other posts and googling, I found this issue (but the path is valid since it works for smaller files) and this one (with no reply).

I assume it’s some sort of memory problem, but not sure how to solve it.

Try to modify your “lhcbStyle.C” so that it begins with:

{
  // all users - please change the name of this file to lhcbStyle.C
  // Commits to lhcbdocs svn of .C files are not allowed

  // define names for colours
  // ...

Note that this file cannot be compiled. It must be executed as an “interpreted macro”, e.g.: gROOT->Macro("lhcbStyle.C");

Have included your feedback, and now the seg fault occurs after loading the script:

Hello there
Info in <TUnixSystem::ACLiC>: creating shared library /var/reana/users/00000000-0000-0000-0000-000000000000/workflows/2fb3eb86-8b18-4301-b401-36dd5c564b49/code/RooFitHeaders_h.so
-------------------------
Set LHCb Style - Feb 2012
-------------------------

 *** Break *** segmentation violation
 Generating stack trace...
``

It is hard to tell what is going on if we do not get a stack trace…

So the error appearing or not simply depends on the size of the input files you use? Are the files equivalent in schema?

@StephanH any idea why roofit might be crashing here?

1 Like

I don’t think it’s RooFit. It just happens to be in the wrong place when the dictionary-generating function crashes.

I suggest to start root from gdb, preferably using a root version with debug symbols. You might have to ask around if there’s a root with debug symbols being shipped centrally.

1 Like

I am trying to reproduce the error locally, and not using the reana environment, and I get something similar in the following sense:

When running the analysis on a 20 MB file, the analysis carries through with some warnings.

When running larger files, e.g. 1 GB, the analysis breaks, and what I get is:

   ------------------------------------------------------------
  | Welcome to ROOT 6.18/00                  https://root.cern |
  |                               (c) 1995-2019, The ROOT Team |
  | Built for linuxx8664gcc on Jul 08 2019, 17:40:00           |
  | From tag , 25 June 2019                                    |
  | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |
   ------------------------------------------------------------


Processing code/ModelFixing.C("data/1GB/D2PiMuMuOS.root", "PhiModels.root")...

RooFit v3.60 -- Developed by Wouter Verkerke and David Kirkby 
                Copyright (C) 2000-2013 NIKHEF, University of California & Stanford University
                All rights reserved, please read http://roofit.sourceforge.net/license.txt

Running ModelFixing
Error in <TUnixSystem::FindDynamicLibrary>: RooFitHeaders.h[.so | .dll | .dylib | .sl | .dl | .a] does not exist in /home/dprelipc/Documents/root/root_from_source/build/lib:/home/dprelipc/Documents/root/root_from_source/build/lib:.:/home/dprelipc/Documents/root/root_from_source/build/lib:/lib/x86_64-linux-gnu/tls/haswell/x86_64:/lib/x86_64-linux-gnu/tls/haswell:/lib/x86_64-linux-gnu/tls/x86_64:/lib/x86_64-linux-gnu/tls:/lib/x86_64-linux-gnu/haswell/x86_64:/lib/x86_64-linux-gnu/haswell:/lib/x86_64-linux-gnu/x86_64:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu/tls/haswell/x86_64:/usr/lib/x86_64-linux-gnu/tls/haswell:/usr/lib/x86_64-linux-gnu/tls/x86_64:/usr/lib/x86_64-linux-gnu/tls:/usr/lib/x86_64-linux-gnu/haswell/x86_64:/usr/lib/x86_64-linux-gnu/haswell:/usr/lib/x86_64-linux-gnu/x86_64:/usr/lib/x86_64-linux-gnu:/lib/tls/haswell/x86_64:/lib/tls/haswell:/lib/tls/x86_64:/lib/tls:/lib/haswell/x86_64:/lib/haswell:/lib/x86_64:/lib:/usr/lib/tls/haswell/x86_64:/usr/lib/tls/haswell:/usr/lib/tls/x86_64:/usr/lib/tls:/usr/lib/haswell/x86_64:/usr/lib/haswell:/usr/lib/x86_64:/usr/lib
#0  0x00007f4ef0cd9687 in __GI___waitpid (pid=14324, stat_loc=stat_loc
entry=0x7ffc7e525c98, options=options
entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:30
#1  0x00007f4ef0c44067 in do_system (line=<optimised out>) at ../sysdeps/posix/system.c:149
#2  0x00007f4ef18e8763 in TUnixSystem::Exec (shellcmd=<optimised out>, this=0x55ed1cd84b80) at /home/dprelipc/Documents/root/root_from_source/root-6.18.00/core/unix/src/TUnixSystem.cxx:2106
#3  TUnixSystem::StackTrace (this=0x55ed1cd84b80) at /home/dprelipc/Documents/root/root_from_source/root-6.18.00/core/unix/src/TUnixSystem.cxx:2400
#4  0x00007f4eebd2b055 in cling::MultiplexInterpreterCallbacks::PrintStackTrace() () from /home/dprelipc/Documents/root/root_from_source/build/lib/libCling.so
#5  0x00007f4eebd2aa5b in cling_runtime_internal_throwIfInvalidPointer () from /home/dprelipc/Documents/root/root_from_source/build/lib/libCling.so
#6  0x00007f4ef20afd7e in ?? ()
#7  0x0000005b0000006e in ?? ()
#8  0x000055ed1d978160 in ?? ()
#9  0x000055ed1d978000 in ?? ()
#10 0x00007ffc7e528109 in ?? ()
#11 0x010055ed1d978165 in ?? ()
#12 0x00007ffc7e5280f0 in ?? ()
#13 0x00007ffc7e528268 in ?? ()
#14 0x00007ffc7e5282b0 in ?? ()
#15 0x00007ffc7e528280 in ?? ()
#16 0x00007ffc7e528298 in ?? ()
#17 0x00007ffc7e528100 in ?? ()
#18 0x0000000400000000 in ?? ()
#19 0x00007f4ef1c184f8 in vtable for TString () from /home/dprelipc/Documents/root/root_from_source/build/lib/libCore.so
#20 0x99003a656c69660a in ?? ()
#21 0x9999999999999999 in ?? ()
#22 0x158cc2a7efecf100 in ?? ()
#23 0x00007ffc7e5282d0 in ?? ()
#24 0x00007ffc7e528240 in ?? ()
#25 0x00007ffc7e5282c8 in ?? ()
#26 0x00007ffc7e5282e0 in ?? ()
#27 0x00007ffc7e5282f8 in ?? ()
#28 0x00007ffc7e528310 in ?? ()
#29 0x00007ffc7e528328 in ?? ()
#30 0x00007f4ef181ccd4 in TUrl::TUrl (this=0x7ffc7e52a4e0, url=0x55ed1d96dc50 "C", defaultIsFile=<optimised out>) at /home/dprelipc/Documents/root/root_from_source/root-6.18.00/core/base/src/TUrl.cxx:76
#31 0x00007f4ef180e820 in TSystem::FindHelper (this=0x0, path=0x7ffc7e528240 "`\016\306\361N\177", dirptr=0x7f4ef181c44d <TUrl::~TUrl()+141>) at /home/dprelipc/Documents/root/root_from_source/root-6.18.00/core/base/src/TSystem.cxx:764
#32 0x000055ed1e419340 in ?? ()
#33 0x000055ed1d9781c0 in ?? ()
#34 0x00007f4ef184a40e in TList::Clear (this=0x7ffc7e5283e0, option=0x55ed1d977dd0 "(\346\301\361N\177") at /home/dprelipc/Documents/root/root_from_source/root-6.18.00/core/cont/src/TList.cxx:401
#35 0x00007f4ef184a40e in TList::Clear (this=0x55ed1e419340, option=0x3c <error: Cannot access memory at address 0x3c>) at /home/dprelipc/Documents/root/root_from_source/root-6.18.00/core/cont/src/TList.cxx:401
#36 0x000055ed1d9782c0 in ?? ()
#37 0x000055ed1dc09d40 in ?? ()
#38 0x00007ffc7e5284d0 in ?? ()
#39 0x0000000000000000 in ?? ()
Error in <HandleInterpreterException>: Trying to dereference null pointer or trying to call routine taking non-null arguments.
Execution of your code was aborted.
In file included from input_line_8:1:
/home/dprelipc/project/reana/reana-demo-lhcb-d2pimumu/code/ModelFixing.C:166:3: warning: null passed to a callee that requires a non-null argument [-Wnonnull]
  D2PimumuTree->SetBranchStatus("*",0);
```

If you run this with gdb, are you able to find where the null pointer dereference happens?

Error in <TUnixSystem::FindDynamicLibrary>: RooFitHeaders.h[.so | .dll | .dylib | .sl | .dl | .a] does not exist in /home/dprelipc/Documents/root/root_from_source/build/lib:/home/dprelipc/Documents/root/root_from_source/build/lib:.:/home/dprelipc/Documents/root/root_from_source/build/lib:/lib/x86_64-linux-gnu/tls/haswell/x86_64:/lib/x86_64-linux-gnu/tls/haswell:/lib/x86_64-linux-gnu/tls/x86_64:/lib/x86_64-linux-gnu/tls:/lib/x86_64-linux-gnu/haswell/x86_64:/lib/x86_64-linux-gnu/haswell:/lib/x86_64-linux-gnu/x86_64:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu/tls/haswell/x86_64:/usr/lib/x86_64-linux-gnu/tls/haswell:/usr/lib/x86_64-linux-gnu/tls/x86_64:/usr/lib/x86_64-linux-gnu/tls:/usr/lib/x86_64-linux-gnu/haswell/x86_64:/usr/lib/x86_64-linux-gnu/haswell:/usr/lib/x86_64-linux-gnu/x86_64:/usr/lib/x86_64-linux-gnu:/lib/tls/haswell/x86_64:/lib/tls/haswell:/lib/tls/x86_64:/lib/tls:/lib/haswell/x86_64:/lib/haswell:/lib/x86_64:/lib:/usr/lib/tls/haswell/x86_64:/usr/lib/tls/haswell:/usr/lib/tls/x86_64:/usr/lib/tls:/usr/lib/haswell/x86_64:/usr/lib/haswell:/usr/lib/x86_64:/usr/lib

is a bit odd … does your script to load this header?

Also the stack trace seem to indicate that the failure is in ‘interpreted’ code. Try (you might have to fix compilation errors in ModelFixing.C):

root.exe -b -l -q `code/ModelFixing.C+("data/1GB/D2PiMuMuOS.root", "PhiModels.root")`

When doing:

root [0] .x code/ModelFixing.C("data/20MB/D2PiMuMuOS.root", "PhiModels.root")

the code goes through and I get my output files.

When running with gdb, I get:

root [0] .x code/ModelFixing.C++g("data/20MB/D2PiMuMuOS.root", "PhiModels.root")
Info in <TUnixSystem::ACLiC>: creating shared library /home/dprelipc/project/reana/reana-demo-lhcb-d2pimumu/./code/ModelFixing_C.so
In file included from input_line_12:6:
././code/ModelFixing.C:5:17: error: expected namespace name
using namespace RooFit;
                ^
././code/ModelFixing.C:6:17: error: expected namespace name
using namespace TMath;
                ^
././code/ModelFixing.C:10:1: error: unknown type name 'RooAddPdf'
RooAddPdf* CreateModel(RooRealVar* D_MM, RooRealVar* nSig_Dp, RooRealVar* nSig_Ds, RooRealVar...
^
././code/ModelFixing.C:10:24: error: unknown type name 'RooRealVar'
RooAddPdf* CreateModel(RooRealVar* D_MM, RooRealVar* nSig_Dp, RooRealVar* nSig_Ds, RooRealVar...
                       ^
././code/ModelFixing.C:10:42: error: unknown type name 'RooRealVar'
RooAddPdf* CreateModel(RooRealVar* D_MM, RooRealVar* nSig_Dp, RooRealVar* nSig_Ds, RooRealVar...
                                         ^
././code/ModelFixing.C:10:63: error: unknown type name 'RooRealVar'
RooAddPdf* CreateModel(RooRealVar* D_MM, RooRealVar* nSig_Dp, RooRealVar* nSig_Ds, RooRealVar...
                                                              ^
././code/ModelFixing.C:10:84: error: unknown type name 'RooRealVar'
RooAddPdf* CreateModel(RooRealVar* D_MM, RooRealVar* nSig_Dp, RooRealVar* nSig_Ds, RooRealVar...
                                                                                   ^
././code/ModelFixing.C:13:3: error: unknown type name 'RooRealVar'
  RooRealVar *mean_Dp = new RooRealVar("m_{D^+}", "m_{D^+}", 1869.6, 1850.0, 1890.0, "MeV/c^{2}");
  ^
././code/ModelFixing.C:13:29: error: unknown type name 'RooRealVar'
  RooRealVar *mean_Dp = new RooRealVar("m_{D^+}", "m_{D^+}", 1869.6, 1850.0, 1890.0, "MeV/c^{2}");
                            ^
././code/ModelFixing.C:14:3: error: unknown type name 'RooRealVar'
  RooRealVar *sigma1_Dp = new RooRealVar("sigma1_Dp", "sigma1_Dp", 5., 0., 20.0, "MeV/c^{2}");
  ^
././code/ModelFixing.C:14:31: error: unknown type name 'RooRealVar'
  RooRealVar *sigma1_Dp = new RooRealVar("sigma1_Dp", "sigma1_Dp", 5., 0., 20.0, "MeV/c^{2}");
                              ^
././code/ModelFixing.C:15:3: error: unknown type name 'RooRealVar'
  RooRealVar *sigma2_Dp = new RooRealVar("sigma2_Dp", "sigma2_Dp", 10., 5., 40.0, "MeV/c^{2}");
  ^
././code/ModelFixing.C:15:31: error: unknown type name 'RooRealVar'
  RooRealVar *sigma2_Dp = new RooRealVar("sigma2_Dp", "sigma2_Dp", 10., 5., 40.0, "MeV/c^{2}");
                              ^
././code/ModelFixing.C:16:3: error: unknown type name 'RooRealVar'
  RooRealVar *a1_Dp = new RooRealVar("a1_Dp", "a1_Dp", 1., 0.1, 100.);
  ^
././code/ModelFixing.C:16:27: error: unknown type name 'RooRealVar'
  RooRealVar *a1_Dp = new RooRealVar("a1_Dp", "a1_Dp", 1., 0.1, 100.);
                          ^
././code/ModelFixing.C:17:3: error: unknown type name 'RooRealVar'
  RooRealVar *a2_Dp = new RooRealVar("a2_Dp", "a2_Dp", -5., -100, -.1);
  ^
././code/ModelFixing.C:17:27: error: unknown type name 'RooRealVar'
  RooRealVar *a2_Dp = new RooRealVar("a2_Dp", "a2_Dp", -5., -100, -.1);
                          ^
././code/ModelFixing.C:18:3: error: unknown type name 'RooRealVar'
  RooRealVar *n_Dp = new RooRealVar("n_Dp", "n_Dp", 2.);
  ^
././code/ModelFixing.C:18:26: error: unknown type name 'RooRealVar'
  RooRealVar *n_Dp = new RooRealVar("n_Dp", "n_Dp", 2.);
                         ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
Error in <ACLiC>: Dictionary generation failed!

When doing this:

I get:

Error in <TApplication::ExecuteFile>: macro -b -l -q code/ModelFixing.C not found in path .:/home/dprelipc/Documents/root/root_from_source/build/macros

But funnily enough, I can do:

root [0] .x `code/ModelFixing.C+("data/1GB/D2PiMuMuOS.root", "PhiModels.root")`

I thought it was crashing and that what you were trying to understand …

root [0] .x -b -l -q code/ModelFixing.C+....

is not what I meant. I meant on the shell prompt

root.exe -b -l -q  code/ModelFixing.C+....

which is indeed similar to

root.exe -b -l 
root [0] .x  code/ModelFixing.C+....
root [1] .q

About

././code/ModelFixing.C:5:17: error: expected namespace name
using namespace RooFit;
                ^

It sounds like your script is missing a few #include to be 'compilable.
Cheers,
Philippe.

1 Like

Thanks a lot for the help. The code works for smaller files, but not for larger ~1GB files. That’s what I’m trying to figure out.

I get the same as above, namely:

root.exe -b -l -q 'code/ModelFixing.C("data/1GB/D2PiMuMuOS.root", "PhiModels.root")'

Processing code/ModelFixing.C("data/1GB/D2PiMuMuOS.root", "PhiModels.root")...

RooFit v3.60 -- Developed by Wouter Verkerke and David Kirkby 
                Copyright (C) 2000-2013 NIKHEF, University of California & Stanford University
                All rights reserved, please read http://roofit.sourceforge.net/license.txt

Running ModelFixing
Error in <TUnixSystem::FindDynamicLibrary>: RooFitHeaders.h[.so | .dll | .dylib | .sl | .dl | .a] does not exist in /home/dprelipc/Documents/root/root_from_source/build/lib:.:/home/dprelipc/Documents/root/root_from_source/build/lib:/lib/x86_64-linux-gnu/tls/haswell/x86_64:/lib/x86_64-linux-gnu/tls/haswell:/lib/x86_64-linux-gnu/tls/x86_64:/lib/x86_64-linux-gnu/tls:/lib/x86_64-linux-gnu/haswell/x86_64:/lib/x86_64-linux-gnu/haswell:/lib/x86_64-linux-gnu/x86_64:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu/tls/haswell/x86_64:/usr/lib/x86_64-linux-gnu/tls/haswell:/usr/lib/x86_64-linux-gnu/tls/x86_64:/usr/lib/x86_64-linux-gnu/tls:/usr/lib/x86_64-linux-gnu/haswell/x86_64:/usr/lib/x86_64-linux-gnu/haswell:/usr/lib/x86_64-linux-gnu/x86_64:/usr/lib/x86_64-linux-gnu:/lib/tls/haswell/x86_64:/lib/tls/haswell:/lib/tls/x86_64:/lib/tls:/lib/haswell/x86_64:/lib/haswell:/lib/x86_64:/lib:/usr/lib/tls/haswell/x86_64:/usr/lib/tls/haswell:/usr/lib/tls/x86_64:/usr/lib/tls:/usr/lib/haswell/x86_64:/usr/lib/haswell:/usr/lib/x86_64:/usr/lib
#0  0x00007f66f5e13687 in __GI___waitpid (pid=20566, stat_loc=stat_loc
entry=0x7ffefde3d0b8, options=options
entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:30
#1  0x00007f66f5d7e067 in do_system (line=<optimised out>) at ../sysdeps/posix/system.c:149
#2  0x00007f66f6a22763 in TUnixSystem::Exec (shellcmd=<optimised out>, this=0x557eeb757b80) at /home/dprelipc/Documents/root/root_from_source/root-6.18.00/core/unix/src/TUnixSystem.cxx:2106
#3  TUnixSystem::StackTrace (this=0x557eeb757b80) at /home/dprelipc/Documents/root/root_from_source/root-6.18.00/core/unix/src/TUnixSystem.cxx:2400
#4  0x00007f66f0e65055 in cling::MultiplexInterpreterCallbacks::PrintStackTrace() () from /home/dprelipc/Documents/root/root_from_source/build/lib/libCling.so
#5  0x00007f66f0e64a5b in cling_runtime_internal_throwIfInvalidPointer () from /home/dprelipc/Documents/root/root_from_source/build/lib/libCling.so
#6  0x00007f66f71e9d7e in ?? ()
#7  0x0000005b0000006e in ?? ()
#8  0x0000557eecc88ba0 in ?? ()
#9  0x0000557eecc88a40 in ?? ()
#10 0x00007ffefde3f529 in ?? ()
#11 0x0100557eecc88ba5 in ?? ()
#12 0x00007ffefde3f510 in ?? ()
#13 0x00007ffefde3f688 in ?? ()
#14 0x00007ffefde3f6d0 in ?? ()
#15 0x00007ffefde3f6a0 in ?? ()
#16 0x00007ffefde3f6b8 in ?? ()
#17 0x00007ffefde3f520 in ?? ()
#18 0x0000000400000000 in ?? ()
#19 0x00007f66f6d524f8 in vtable for TString () from /home/dprelipc/Documents/root/root_from_source/build/lib/libCore.so
#20 0x99003a656c69660a in ?? ()
#21 0x9999999999999999 in ?? ()
#22 0xd0537471cab64100 in ?? ()
#23 0x00007ffefde3f6f0 in ?? ()
#24 0x00007ffefde3f660 in ?? ()
#25 0x00007ffefde3f6e8 in ?? ()
#26 0x00007ffefde3f700 in ?? ()
#27 0x00007ffefde3f718 in ?? ()
#28 0x00007ffefde3f730 in ?? ()
#29 0x00007ffefde3f748 in ?? ()
#30 0x00007f66f6956cd4 in TUrl::TUrl (this=0x7ffefde41900, url=0x557eecc67b40 "C", defaultIsFile=<optimised out>) at /home/dprelipc/Documents/root/root_from_source/root-6.18.00/core/base/src/TUrl.cxx:76
#31 0x00007f66f6948820 in TSystem::FindHelper (this=0x0, path=0x7ffefde3f660 "`\256\331\366f\177", dirptr=0x7f66f695644d <TUrl::~TUrl()+141>) at /home/dprelipc/Documents/root/root_from_source/root-6.18.00/core/base/src/TSystem.cxx:764
#32 0x0000557eecded320 in ?? ()
#33 0x0000557eecc88c00 in ?? ()
#34 0x00007f66f698440e in TList::Clear (this=0x7ffefde3f800, option=0x557eecc88810 "(\206\325\366f\177") at /home/dprelipc/Documents/root/root_from_source/root-6.18.00/core/cont/src/TList.cxx:401
#35 0x00007f66f698440e in TList::Clear (this=0x557eecded320, option=0x3c <error: Cannot access memory at address 0x3c>) at /home/dprelipc/Documents/root/root_from_source/root-6.18.00/core/cont/src/TList.cxx:401
#36 0x0000557eecc88d00 in ?? ()
#37 0x0000557eec986300 in ?? ()
#38 0x00007ffefde3f8f0 in ?? ()
#39 0x0000000000000000 in ?? ()
Error in <HandleInterpreterException>: Trying to dereference null pointer or trying to call routine taking non-null arguments.
Execution of your code was aborted.
In file included from input_line_8:1:
/home/dprelipc/project/reana/reana-demo-lhcb-d2pimumu/code/ModelFixing.C:166:3: warning: null passed to a callee that requires a non-null argument [-Wnonnull]
  D2PimumuTree->SetBranchStatus("*",0);
  ^~~~~~~~~~~~

hummm

You are missing the + after the script name in that case …

Independently, we can now see:

Error in <TUnixSystem::FindDynamicLibrary>: RooFitHeaders.h

and

Error in <HandleInterpreterException>: Trying to dereference null pointer or trying to call routine taking non-null arguments.
Execution of your code was aborted.
In file included from input_line_8:1:
/home/dprelipc/project/reana/reana-demo-lhcb-d2pimumu/code/ModelFixing.C:166:3: warning: null passed to a callee that requires a non-null argument [-Wnonnull]
  D2PimumuTree->SetBranchStatus("*",0);
  ^~~~~~~~~~~~

The later indicates that D2PimumuTree is still a null pointer during the execution of line 166 of ModelFixing.C

Cheers,
Philippe.

That is the same as running with gdb, right? My output still is:

root.exe -b -l -q 'code/ModelFixing.C+("data/1GB/D2PiMuMuOS.root", "PhiModels.root")'

Processing code/ModelFixing.C+("data/1GB/D2PiMuMuOS.root", "PhiModels.root")...
Info in <TUnixSystem::ACLiC>: creating shared library /home/dprelipc/project/reana/reana-demo-lhcb-d2pimumu/./code/ModelFixing_C.so
In file included from input_line_12:6:
././code/ModelFixing.C:5:17: error: expected namespace name
using namespace RooFit;
                ^
././code/ModelFixing.C:6:17: error: expected namespace name
using namespace TMath;
                ^
././code/ModelFixing.C:10:1: error: unknown type name 'RooAddPdf'
RooAddPdf* CreateModel(RooRealVar* D_MM, RooRealVar* nSig_Dp, RooRealVar...
^
././code/ModelFixing.C:10:24: error: unknown type name 'RooRealVar'
RooAddPdf* CreateModel(RooRealVar* D_MM, RooRealVar* nSig_Dp, RooRealVar...
                       ^
././code/ModelFixing.C:10:42: error: unknown type name 'RooRealVar'
RooAddPdf* CreateModel(RooRealVar* D_MM, RooRealVar* nSig_Dp, RooRealVar...
                                         ^
././code/ModelFixing.C:10:63: error: unknown type name 'RooRealVar'
RooAddPdf* CreateModel(RooRealVar* D_MM, RooRealVar* nSig_Dp, RooRealVar...
                                                              ^
././code/ModelFixing.C:10:84: error: unknown type name 'RooRealVar'
  ...D_MM, RooRealVar* nSig_Dp, RooRealVar* nSig_Ds, RooRealVar* nBkg) {
                                                     ^
././code/ModelFixing.C:13:3: error: unknown type name 'RooRealVar'
  RooRealVar *mean_Dp = new RooRealVar("m_{D^+}", "m_{D^+}", 1869.6, 185...
  ^
././code/ModelFixing.C:13:29: error: unknown type name 'RooRealVar'
  RooRealVar *mean_Dp = new RooRealVar("m_{D^+}", "m_{D^+}", 1869.6, 185...
                            ^
././code/ModelFixing.C:14:3: error: unknown type name 'RooRealVar'
  RooRealVar *sigma1_Dp = new RooRealVar("sigma1_Dp", "sigma1_Dp", 5., 0...
  ^
././code/ModelFixing.C:14:31: error: unknown type name 'RooRealVar'
  RooRealVar *sigma1_Dp = new RooRealVar("sigma1_Dp", "sigma1_Dp", 5., 0...
                              ^
././code/ModelFixing.C:15:3: error: unknown type name 'RooRealVar'
  RooRealVar *sigma2_Dp = new RooRealVar("sigma2_Dp", "sigma2_Dp", 10., ...
  ^
././code/ModelFixing.C:15:31: error: unknown type name 'RooRealVar'
  RooRealVar *sigma2_Dp = new RooRealVar("sigma2_Dp", "sigma2_Dp", 10., ...
                              ^
././code/ModelFixing.C:16:3: error: unknown type name 'RooRealVar'
  RooRealVar *a1_Dp = new RooRealVar("a1_Dp", "a1_Dp", 1., 0.1, 100.);
  ^
././code/ModelFixing.C:16:27: error: unknown type name 'RooRealVar'
  RooRealVar *a1_Dp = new RooRealVar("a1_Dp", "a1_Dp", 1., 0.1, 100.);
                          ^
././code/ModelFixing.C:17:3: error: unknown type name 'RooRealVar'
  RooRealVar *a2_Dp = new RooRealVar("a2_Dp", "a2_Dp", -5., -100, -.1);
  ^
././code/ModelFixing.C:17:27: error: unknown type name 'RooRealVar'
  RooRealVar *a2_Dp = new RooRealVar("a2_Dp", "a2_Dp", -5., -100, -.1);
                          ^
././code/ModelFixing.C:18:3: error: unknown type name 'RooRealVar'
  RooRealVar *n_Dp = new RooRealVar("n_Dp", "n_Dp", 2.);
  ^
././code/ModelFixing.C:18:26: error: unknown type name 'RooRealVar'
  RooRealVar *n_Dp = new RooRealVar("n_Dp", "n_Dp", 2.);
                         ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
Error in <ACLiC>: Dictionary generation failed!

This is what I am trying to figure out, as this does not happen when I try to run a smaller file, e.g. of 20 MB.