[WIP]: Test fair root
DON'T MERGE THIS MR!!!
It is a test of FairRootManager.
Many unsuccessful calls of GetObject() lead to a segmentation violation.
In this test I only added this code:
for(int iter=0; iter<10000; iter++){ FairRootManager::Instance()->GetObject("BlaBlaBla"); }
to the STS hitfinder.
DON'T MERGE THIS MR!!!
Edited by Sergey Gorbunov
Merge request reports
Activity
Filter activity
assigned to @f.uhlig
requested review from @v.friese
I am able to reproduce the problem using the following small macro
int test_fairrootmanager(TString filename) { int counter = 0; for (int iter = 0; iter < 10000; iter++) { std::cout << ++counter << std::endl; FairRootManager::Instance()->GetObject("BlaBlaBla"); } return 1; }
This should allow me to find the cause of the problem.
I found the cause of the problem. There was a fixed size array in the FairRootManger which overruns due to improper handling of none existing branches.
There is probably an easy fix which needs some testing on the FairRoot side to avoid breaking existing code.
Please register or sign in to reply