bugGNU Octave - Bugs: bug #53823, svd for fat single complex...


bug #53823: svd for fat single complex matrices crashes octave

Submitted by:  Marco Caliari <caliari>
Submitted on:  Thu 03 May 2018 02:53:45 PM UTC  
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  4.4.0 Operating System:  GNU/Linux

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Fri 04 May 2018 04:16:13 AM UTC, comment #1:

I pushed your change to the stable branch here: http://hg.savannah.gnu.org/hgweb/octave/rev/a8a4b6e6e754.

I modified the commit message to include the bug number in the summary.

Rik <rik5>
Project Administrator
Thu 03 May 2018 02:53:45 PM UTC, original submission:

As reported in the maintainers mailing list

svd(single(randn(30,50) + i*randn(30,50)))

crashes octave. The problem is with the dimension of lrwork. As written here




LAPACK <= 3.6 (which is not so old) has a bug and requires lrwork = 7*min_mn.
The attached changeset fixes the problem for me.

Marco Caliari <caliari>
Project Member


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

Attach Files:

Attached Files
file #44076:  svd.diff added by caliari (1KiB - application/x-tex)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by caliari (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-05-04 rik5 StatusPatch Submitted => Fixed
        Open/ClosedOpen => Closed
    2018-05-03 caliari Attached File- => Added svd.diff, #44076

    Back to the top

    Powered by Savane 3.4