Re: TRandom3-related Seg Fault

From: Axel Naumann <Axel.Naumann_at_cern.ch>
Date: Wed, 13 Apr 2011 08:39:24 +0200


Hi,

And more recent versions of CINT will properly refuse to run non static functions :-)

Cheers, Axel

Richard Ruiz <rruiz_at_fnal.gov> wrote:

Dear Rene,

Thank you! I feel a little silly for not having caught that.

best wishes,
richard

On Wed, Apr 13, 2011 at 12:09 AM, Rene Brun <Rene.Brun_at_cern.ch> wrote:

The TRandomX::Rndm() functions are not static functions!!, doing TRandom3::Rndm() is illegal. You must instantiate an object, ie

    TRandom3 r
     r.Rndm()

Rene

On 13/04/2011 05:31, Richard Ruiz wrote:

Dear All,

I am running into a problem trying to generate a random number with TRandomX::Rndm(), for X = 2,3, which causes a seg fault. See below. Any suggestions on what I can/should do? Yes, this problem occurs after a fresh boot.

Thanks,
richard

Here is my OS info:
Linux version 2.6.35-28-generic (buildd_at_allspice) (gcc version 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5) ) #50-Ubuntu SMP Fri Mar 18 18:42:20 UTC 2011 x86_64

ROOT info:
ROOT 5.18/00b (branches/v5-18-00-patches_at_22563, Apr 06 2010, 02:11:00 on linuxx8664gcc) CINT/ROOT C/C++ Interpreter version 5.16.29, Jan 08, 2008

~/Desktop/PS08$ root -l
TDR Style initialized
TDR Style initialized
root [0] TRandom3::Rndm()

Received on Wed Apr 13 2011 - 08:39:33 CEST

This archive was generated by hypermail 2.2.0 : Thu Apr 14 2011 - 17:50:01 CEST