GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » TpcRecoTester segmentation when built with cmake
Re: TpcRecoTester segmentation when built with cmake [message #4572 is a reply to message #4570] Tue, 26 June 2007 15:06 Go to previous messageGo to previous message
Florian Uhlig is currently offline  Florian Uhlig
Messages: 424
Registered: May 2007
first-grade participant
From: *gsi.de
Hi Sebastian

This feature (bug???) has to do that somehow the linking of the
libraries is a little different for cmake generated and automake
generated libraries. The difference is in the handling of undifined mathematical calculations. With automake the result of
a devision by zero is NaN (Not a Number). With this result the program goes on and does all his calculations. Any mathematical operation with a NaN gives as a result NaN.
With cmake the result of such an operation is a exeception and
the program crashes.
If you look in your code at TpcConfMapFit.cxx line 102 as given
in the error message you will find the following line

double b=0.5/state[1][0];

If state[1][0] is 0 than this operation is not defined and you
crash. You should check the variable before the devision and decide what to do whenn the variable is zero.

In my opinion this is a problem and the program should stop at that point signaling an error.

I am looking for that difference between cmake and the autotools for some time, but up to now i didn't find where the difference comes in during the building process.

I hope this helps to understand the error message.

Ciao

Florian
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: change in tpc/ due to cmake
Next Topic: Bug in Tpc (rev. 1070)
Goto Forum:
  


Current Time: Tue May 19 10:20:07 CEST 2026

Total time taken to generate the page: 0.00786 seconds