Running pythia8.C example

I’m trying to run the pythia8.C example on the CERN lxplus system. I believe that I have $PYTHIA8 and $PYTHIA8DATA correctly set. When I run the example it crashes as soon as it hits

/ Create pythia8 object
TPythia8* pythia8 = new TPythia8();

lxplus418.cern.ch >root -l
root [0] .x pythia8.C
************************entry
l************************beforeloading libraries
************************libraries loaded
************************TClone
************************cloned
************************create object

*** Break *** segmentation violation

===========================================================
There was a crash.
This is the entire stack trace of all threads:

#0 0x00002ad1f8cd0d95 in waitpid () from /lib64/libc.so.6
#1 0x00002ad1f8c73741 in do_system () from /lib64/libc.so.6
#2 0x00002ad1f7d507d6 in TUnixSystem::StackTrace() () from /cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc5-gcc43-opt/17.6.0/sw/lcg/app/releases/ROOT/5.34.00/x86_64-slc5-gcc43-opt/root/lib/libCore.so
#3 0x00002ad1f7d500ac in TUnixSystem::DispatchSignals(ESignals) () from /cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc5-gcc43-opt/17.6.0/sw/lcg/app/releases/ROOT/5.34.00/x86_64-slc5-gcc43-opt/root/lib/libCore.so
#4
#5 0x00002ad20085cf95 in Pythia8::HadronLevel::HadronLevel() () from /cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc5-gcc43-opt/17.6.0/AtlasSimulation/17.6.0/InstallArea/external/Pythia8/pythia8/165/x86_64-slc5-gcc43-opt/lib/libpythia8.so
#6 0x00002ad2008502ff in Pythia8::Pythia::Pythia(std::basic_string<char, std::char_traits, std::allocator >) () from /cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc5-gcc43-opt/17.6.0/AtlasSimulation/17.6.0/InstallArea/external/Pythia8/pythia8/165/x86_64-slc5-gcc43-opt/lib/libpythia8.so
#7 0x00002ad204c3441f in TPythia8::TPythia8() () from /cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc5-gcc43-opt/17.6.0/sw/lcg/app/releases/ROOT/5.34.00/x86_64-slc5-gcc43-opt/root/lib/libEGPythia8.so
#8 0x00002ad204c3f85d in G__G__Pythia8_110_0_2(G__value*, char const*, G__param*, int) () from /cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc5-gcc43-opt/17.6.0/sw/lcg/app/releases/ROOT/5.34.00/x86_64-slc5-gcc43-opt/root/lib/libEGPythia8.so
#9 0x00002ad1f93fda1f in Cint::G__ExceptionWrapper(int ()(G__value, char const*, G__param*, int), G__value*, char*, G__param*, int) () from /cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc5-gcc43-opt/17.6.0/sw/lcg/app/releases/ROOT/5.34.00/x86_64-slc5-gcc43-opt/root/lib/libCint.so
#10 0x00002ad1f94af890 in G__execute_call () from /cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc5-gcc43-opt/17.6.0/sw/lcg/app/releases/ROOT/5.34.00/x86_64-slc5-gcc43-opt/root/lib/libCint.so
#11 0x00002ad1f94b069d in G__call_cppfunc () from /cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc5-gcc43-opt/17.6.0/sw/lcg/app/releases/ROOT/5.34.00/x86_64-slc5-gcc43-opt/root/lib/libCint.so
#12 0x00002ad1f948b2b5 in G__interpret_func () from /cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc5-gcc43-opt/17.6.0/sw/lcg/app/releases/ROOT/5.34.00/x86_64-slc5-gcc43-opt/root/lib/libCint.so
#13 0x00002ad1f9478c7c in G__getfunction () from /cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc5-gcc43-opt/17.6.0/sw/lcg/app/releases/ROOT/5.34.00/x86_64-slc5-gcc43-opt/root/lib/libCint.so
#14 0x00002ad1f94a9b4b in G__new_operator () from /cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc5-gcc43-opt/17.6.0/sw/lcg/app/releases/ROOT/5.34.00/x86_64-slc5-gcc43-opt/root/lib/libCint.so
#15 0x00002ad1f9452dcc in G__getexpr () from /cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc5-gcc43-opt/17.6.0/sw/lcg/app/releases/ROOT/5.34.00/x86_64-slc5-gcc43-opt/root/lib/libCint.so
#16 0x00002ad1f943f541 in G__define_var () from /cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc5-gcc43-opt/17.6.0/sw/lcg/app/releases/ROOT/5.34.00/x86_64-slc5-gcc43-opt/root/lib/libCint.so
#17 0x00002ad1f94d92f2 in G__exec_statement () from /cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc5-gcc43-opt/17.6.0/sw/lcg/app/releases/ROOT/5.34.00/x86_64-slc5-gcc43-opt/root/lib/libCint.so
#18 0x00002ad1f948c6f8 in G__interpret_func () from /cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc5-gcc43-opt/17.6.0/sw/lcg/app/releases/ROOT/5.34.00/x86_64-slc5-gcc43-opt/root/lib/libCint.so
#19 0x00002ad1f9478d50 in G__getfunction () from /cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc5-gcc43-opt/17.6.0/sw/lcg/app/releases/ROOT/5.34.00/x86_64-slc5-gcc43-opt/root/lib/libCint.so
#20 0x00002ad1f944c631 in G__getitem () from /cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc5-gcc43-opt/17.6.0/sw/lcg/app/releases/ROOT/5.34.00/x86_64-slc5-gcc43-opt/root/lib/libCint.so
#21 0x00002ad1f944feec in G__getexpr () from /cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc5-gcc43-opt/17.6.0/sw/lcg/app/releases/ROOT/5.34.00/x86_64-slc5-gcc43-opt/root/lib/libCint.so
#22 0x00002ad1f945cbee in G__calc_internal () from /cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc5-gcc43-opt/17.6.0/sw/lcg/app/releases/ROOT/5.34.00/x86_64-slc5-gcc43-opt/root/lib/libCint.so
#23 0x00002ad1f94ec011 in G__process_cmd () from /cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc5-gcc43-opt/17.6.0/sw/lcg/app/releases/ROOT/5.34.00/x86_64-slc5-gcc43-opt/root/lib/libCint.so
#24 0x00002ad1f7d0ccc5 in TCint::ProcessLine(char const*, TInterpreter::EErrorCode*) () from /cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc5-gcc43-opt/17.6.0/sw/lcg/app/releases/ROOT/5.34.00/x86_64-slc5-gcc43-opt/root/lib/libCore.so
#25 0x00002ad1f7d0acf3 in TCint::ProcessLineSynch(char const*, TInterpreter::EErrorCode*) () from /cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc5-gcc43-opt/17.6.0/sw/lcg/app/releases/ROOT/5.34.00/x86_64-slc5-gcc43-opt/root/lib/libCore.so
#26 0x00002ad1f7c600ba in TApplication::ExecuteFile(char const*, int*, bool) () from /cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc5-gcc43-opt/17.6.0/sw/lcg/app/releases/ROOT/5.34.00/x86_64-slc5-gcc43-opt/root/lib/libCore.so
#27 0x00002ad1f7c5dc58 in TApplication::ProcessLine(char const*, bool, int*) () from /cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc5-gcc43-opt/17.6.0/sw/lcg/app/releases/ROOT/5.34.00/x86_64-slc5-gcc43-opt/root/lib/libCore.so
#28 0x00002ad1f84d1bb2 in TRint::HandleTermInput() () from /cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc5-gcc43-opt/17.6.0/sw/lcg/app/releases/ROOT/5.34.00/x86_64-slc5-gcc43-opt/root/lib/libRint.so
#29 0x00002ad1f7d4e704 in TUnixSystem::CheckDescriptors() () from /cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc5-gcc43-opt/17.6.0/sw/lcg/app/releases/ROOT/5.34.00/x86_64-slc5-gcc43-opt/root/lib/libCore.so
#30 0x00002ad1f7d4ed21 in TUnixSystem::DispatchOneEvent(bool) () from /cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc5-gcc43-opt/17.6.0/sw/lcg/app/releases/ROOT/5.34.00/x86_64-slc5-gcc43-opt/root/lib/libCore.so
#31 0x00002ad1f7cc5b46 in TSystem::InnerLoop() () from /cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc5-gcc43-opt/17.6.0/sw/lcg/app/releases/ROOT/5.34.00/x86_64-slc5-gcc43-opt/root/lib/libCore.so
#32 0x00002ad1f7cc7dfc in TSystem::Run() () from /cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc5-gcc43-opt/17.6.0/sw/lcg/app/releases/ROOT/5.34.00/x86_64-slc5-gcc43-opt/root/lib/libCore.so
#33 0x00002ad1f7c5b96f in TApplication::Run(bool) () from /cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc5-gcc43-opt/17.6.0/sw/lcg/app/releases/ROOT/5.34.00/x86_64-slc5-gcc43-opt/root/lib/libCore.so
#34 0x00002ad1f84d3ca3 in TRint::Run(bool) () from /cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc5-gcc43-opt/17.6.0/sw/lcg/app/releases/ROOT/5.34.00/x86_64-slc5-gcc43-opt/root/lib/libRint.so
#35 0x000000000040102d in main ()

The lines below might hint at the cause of the crash.
If they do not help you then please submit a bug report at
root.cern.ch/bugs. Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.

#5 0x00002ad20085cf95 in Pythia8::HadronLevel::HadronLevel() () from /cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc5-gcc43-opt/17.6.0/AtlasSimulation/17.6.0/InstallArea/external/Pythia8/pythia8/165/x86_64-slc5-gcc43-opt/lib/libpythia8.so
#6 0x00002ad2008502ff in Pythia8::Pythia::Pythia(std::basic_string<char, std::char_traits, std::allocator >) () from /cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc5-gcc43-opt/17.6.0/AtlasSimulation/17.6.0/InstallArea/external/Pythia8/pythia8/165/x86_64-slc5-gcc43-opt/lib/libpythia8.so
#7 0x00002ad204c3441f in TPythia8::TPythia8() () from /cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc5-gcc43-opt/17.6.0/sw/lcg/app/releases/ROOT/5.34.00/x86_64-slc5-gcc43-opt/root/lib/libEGPythia8.so

Root > Function pythia8() busy flag cleared

Hi,

ROOT v 5.34.00 has been build with the following version of Pythia8:
/afs/cern.ch/sw/lcg/external/MCGenerators/pythia8/160/
So you should use the same version…

Cheers, Bertrand.

Thanks…that fixed it. btw how do I find out which PYTHIA ( for example) was used to build ROOT?

[quote=“BobOrr”]Thanks…that fixed it. btw how do I find out which PYTHIA ( for example) was used to build ROOT?[/quote] You can look at the config.status file in the _SPI directory of each ROOT release, for example:
/afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.00/x86_64-slc5-gcc43-opt/_SPI/config.status

Cheers, Bertrand.

Thanks again!

You’re welcome! :slight_smile: