| Summary: | missing initialization causes segfault in underground_physics advanced example | ||
|---|---|---|---|
| Product: | Examples/Advanced | Reporter: | gahs |
| Component: | underground_physics | Assignee: | alexander.howard |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 8.1 | ||
| Hardware: | All | ||
| OS: | All | ||
This has been fixed in the latest reference tag and will be in the next release.
In the mean-time just change line 974 in DMXDetectorConstruction.cc from:
LXe_log->SetUserLimits(theUserLimitsForXenon);
to
LXe_log->SetUserLimits(theUserLimitsForDetector);
Thanks,
Alex
|
In examples/advanced/underground_physics/src/DMXDetectorConstruction.cc, "LXe_log->SetUserLimits(theUserLimitsForXenon);" is called, but the variable "theUserLimitsForXenon" is never initialized. This tends to cause segfaults during tracking. The easiest fix is to add theUserLimitsForXenon = 0; to the constructor (line 96 in the file).