Project

General

Profile

Bug #1625

Segmentation Fault with different Recon and Simulation geometries

Added by Hunt, Christopher over 7 years ago.

Status:
Open
Priority:
Normal
Assignee:
Category:
Simulation
Target version:
-
Start date:
12 February 2015
Due date:
% Done:

0%

Estimated time:
Workflow:
New Issue

Description

In running MAUS where the simulation_geometry_filename and the reconstruction_geometry_filename differ, segmentation faults have been found to occur.

Verified by Durga using a recent release.

I believe that the BTSolenoid class stores a static list of field maps for the simulation geometry, and hands out pointers to those fields. When the reconstruction geometry is initialised, BTFieldConstructor clears the list and causes new field maps to be inserted, without taking care of the old set of pointers.

I stumbled upon a fudge-fix by commenting out line 74 in src/legacy/BeamTools/BTFieldConstructor.cc:
BTSolenoid::ClearStaticMaps()

But I don't think that's the correct way to solve the problem.

Attached is a Valgrind output file showing where the segfault is thrown from.


Files

valgrind_out.txt (267 KB) valgrind_out.txt Valgrind output Hunt, Christopher, 12 February 2015 17:45

No data to display

Also available in: Atom PDF