[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #37095] Segfault when calling chol () on non-S

From: Jordi Gutiérrez Hermoso
Subject: [Octave-bug-tracker] [bug #37095] Segfault when calling chol () on non-SPD sparse matrix and requesting a second output argument
Date: Tue, 14 Aug 2012 19:58:52 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20110109 Sunzebra/3.6.13

Update of bug #37095 (project octave):

                  Status:               Confirmed => Patch Submitted        


Follow-up Comment #3:

Okay, so the issue is that the Octave code stops computation prematurely if
the cholmod library flags the matrix as not positive definite, and as part of
those computations it's supposed to set the Lsparse pointer to a nonzero
value. When it doesn't do that but the return values are requested anyways, it
attempts to dereference a null pointer and segfaults.

My patch attached here is an attempt to test if more than output argument is
requested, and to plod along even if the matrix fails to be positive definite
and return whatever value cholmod thought should be returned.

If there are no complaints with this patch for a few days, I'll push it.

(file #26361)

Additional Item Attachment:

File name: cholmod.patch                  Size:3 KB


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]