My problem might be related to the topic I opened earlier:
I compiled ROOT, Garfield and Geant4 and checked that ROOT and Garfield are working (well, by compiling the Gem example: Garfield: Getting started).
After that I compiled REST with a set of commands:
cd ~/REST_v2
mkdir build
cd build
make .. -DINSTALL_PREFIX=../install/master/ -DREST_GARFIELD=ON -DREST_G4=ON -DREST_SQL=ON
make -j8 install
At this moment I received no errors.
Unfortunately, when I try to run restRoot or restG4 I get a *** Break *** segmentation violation error.
Here is the entire stack trace of all threads: restRootCrash.txt (7.9 KB)
Both restRoot and restG4 crashes have such message as:
The lines below might hint at the cause of the crash.
You may get help by asking at the ROOT forum http://root.cern.ch/forum
Only if you are really convinced it is a bug in ROOT then please submit a
report at http://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.
But I am not sure how is it related to ROOT incorrect installation.
Could you suggest to me, what I can do in this situation?
P.S.: I had the same issue on another computer with Ubuntu 20.04
What you can always do in such a situation is to compile w/ debugging option: you will then get more details on the origin of the crash (including the line# at stake in the source code).
You do this by adding -DCMAKE_BUILD_TYPE=Debug to the list of options on your cmake command line.
And you can do it for REST and for ROOT.
In the ROOT case, given that compilation takes quite some time, you can have two
installations of it on your laptop, one w/ and one w/o debugging option. Using the latter by default, and switching to the former when you have a crash.
Looks like this is a gcc related problem on Ubuntu 20.04. The map object is not initialized when being called, although it is defined before called. We don’t engage the problem on lower gcc version.
Can you try to modify the code in source/tools/resttools/src/startup.cpp. In line 14, change it to: