octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #51950] Segfault during a sparse QR factorizat


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #51950] Segfault during a sparse QR factorization
Date: Wed, 6 Sep 2017 15:23:28 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Follow-up Comment #5, bug #51950 (project octave):

Marco - I agree, I think the matrix has to be the result of a QR
factorization.

In particular, qr may return an R matrix that is malformed, that has entries
that are out of bounds. For example


>> A = sprandn (5, 6, 0.1);
>> [~, R] = qr (A)
>> R
R =

Compressed Column Sparse (rows = 5, cols = 6, nnz = 3 [10%])

  (2, 2) -> -0.486301514709148
  (5, 5) -> -0.0638896858969156
  (6, 6) ->  0.290030632873829



Notice the size of the matrix R is 5×6, but it has an element at index (6,6).
This matrix crashes the subsequent qr(R) because it contains an element that
is out-of-bounds.

So the real bug here is that qr may return an R matrix with an element like
this shown above. I don't have the knowledge of the algorithm or the libraries
involved to dig further at the moment, someone want to look into this?

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51950>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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