close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 18 years ago

Closed 17 years ago

#514 closed defect (fixed)

RandConstrainedMNormal crashes Tol Base

Reported by: mafernandez Owned by: Jorge
Priority: high Milestone:
Component: Math Version: 1.1.5
Severity: major Keywords:
Cc:

Description

The Matrix function RandConstrainedMNormal causes a crash in Tol base when some of the optional arguments are not given. Consider the following example below:

Matrix mu = Col(2.0, 2.0);
Matrix COV = ((1.0, 4/5.0),(4/5.0, 1.0));
Matrix B = ((-1.0, 1.0), (0.0, -1.0));
Matrix b = Col(0.0, 0.0);
Matrix sample = RandConstrainedMNormal(mu, COV, B, b, 1, 100);

Change History (4)

comment:1 Changed 18 years ago by danirus

Hi Miguel Angel,

I've tried the sample code you provide (that is the same provided by the function) and I get a suitable behavior. Removing the two last optional parameters seems to be good as well.

BTW, I'll ckeck this with you tomorrow.

Thanks for your report.
Daniel

comment:2 Changed 17 years ago by Jorge

Owner: changed from danirus to Jorge

i'll take care of this bug

comment:3 Changed 17 years ago by Jorge

Status: newassigned

confirmed

comment:4 Changed 17 years ago by Jorge

Resolution: fixed
Status: assignedclosed

when x0 is not given a null pointer dereference take place.

That bug was introduced between releases r1.7.2.2 and r1.7.2.3 at branch 1.1.5 and between releases r1.8 and r1.9 at branch trunk (1.1.6)

Note: See TracTickets for help on using tickets.