thspeer
September 23, 2010, 1:42pm
#1
Hello,
I am trying to use the multinomial distribution provided by the GSLRandomEngine tools in MathMore.
Specifically:
ROOT::Math::GSLRngMT * random = new GSLRngMT();
random->Initialize();
vector evtsPerChannel = random->Multinomial(n, probabilities);
and I get a malloc problem when calling the Multinomial method:
*** glibc detected *** /afs/cern.ch/cms/sw/slc5_ia32_gcc434/lcg/root/5.22.00d-cms8/bin/root.exe: malloc(): memory corruption: 0x08a3fa40 ***
Would you know what the problem is?
Thanks!
Thomas.
Axel
September 23, 2010, 2:54pm
#2
Hi Thomas,
can you run your code compiled (.x MyCode.C+ instead of .x MyCode.C) and check that it still happens?
Cheers, Axel.
thspeer
September 23, 2010, 3:05pm
#3
Hello,
This is what I am already doing.
Cheers,
Thomas.
moneta
September 24, 2010, 6:54am
#4
Hi Thomas,
you are running a very old version 5.22.00.d There is a bug in that routine which has been fixed in the latest development releases and in the 5.26 patches last January.
Cheers, Lorenzo