Multinomial method in MathMore

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.

Hi Thomas,

can you run your code compiled (.x MyCode.C+ instead of .x MyCode.C) and check that it still happens?

Cheers, Axel.

Hello,

This is what I am already doing.

Cheers,

Thomas.

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