bugGNU Octave - Bugs: bug #54043, Octave crashes if eigs is called...

 
 

bug #54043: Octave crashes if eigs is called with singular B matrix

Submitter:  None
Submitted:  Sun 03 Jun 2018 09:50:08 AM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  None
Originator Name:  Octave user Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 4.2.2
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 03 Jun 2018 06:49:53 PM UTC, comment #2: 

Indeed, on 4.2.1 I get a segmentation fault, but on
4.4.0 I get the same result as Dan wrote in comment #1.

Closing as fixed.

Avinoam Kalma <avinoam>
Group Member
Sun 03 Jun 2018 04:13:00 PM UTC, comment #1: 

This may have been fixed.  With the latest development code I'm seeing:


octave:5> [v, lambda] = eigs(K, M);
error: __eigs__: eigs: The matrix B is not positive definite
error: called from
    eigs at line 285 column 18


and the try/catch has no issues.

Dan Sebald <sebald>
Sun 03 Jun 2018 09:50:08 AM UTC, original submission:  

According to the documention, eigs can be used only for positive definite A and B matrices. However if matrix A or B are not positive definite, an error code should be returned or an exception should be thrown.

If you run the following example then octave crashes.


clear all;
load eigs_test.mat;
try
[v, lambda] = eigs(K, M);
catch
end_try_catch
fprintf(stderr, "test OK\n");


Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #44283:  eigs_test.m added by None (128B - application/octet-stream)
file #44284:  eigs_test.mat added by None (107KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by avinoam (Posted a comment)
  • -email is unavailable- added by sebald (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-06-03 avinoam StatusNone Fixed
        Open/ClosedOpen Closed
    2018-06-03 None Attached File- Added eigs_test.m, #44283
        Attached File- Added eigs_test.mat, #44284

    Back to the top

    Powered by Savane 3.13-bb6a.
    Corresponding source code