Bug #1383

Make check fails on CentOS 7 system

Added by Knödlseder Jürgen almost 10 years ago. Updated almost 10 years ago.

Status:ClosedStart date:12/11/2014
Priority:NormalDue date:
Assigned To:Knödlseder Jürgen% Done:

100%

Category:-
Target version:1.0.0
Duration:

Description

Valentina Fioretti <> reported a problem in the unit tests when installing GammaLib on CentOS 7. Attached the check log and the test report. I could reproduce the problem on a new CentOS 7 VM. Here the relevant part:

Test CTA effective area classes: ................ ok
Test CTA PSF classes: ............................. ok
Test CTA energy dispersion classes: ............FF. NOK
Test CTA response classes: .. ok
Test CTA ON/OFF analysis: . ok

The problem occurred with the latest gammalib-00-09-00 release.

check.log (34 KB) Knödlseder Jürgen, 12/11/2014 05:58 PM


Recurrence

No recurrence.

History

#1 Updated by Knödlseder Jürgen almost 10 years ago

  • Status changed from New to In Progress
  • Assigned To set to Knödlseder Jürgen
  • % Done changed from 0 to 10

Problem reproduced on new CentOS VM.

#2 Updated by Knödlseder Jürgen almost 10 years ago

  • Status changed from In Progress to Closed
  • Target version set to 1.0.0
  • % Done changed from 10 to 100

The problem has been identified. It was due to storing the reference to a temporary variable which does not guarantee the validity of the variable value. This apparently only created a problem in CentOS 7, probably due to the specific compiler version that comes with that distribution.

Now a local copy of the temporary variable is made, so that it becomes non-temporary. The reference to this non-temporary variable is then stored.

Also available in: Atom PDF