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

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

[Octave-bug-tracker] [bug #56232] Octave crash when inverting an empty s


From: Rik
Subject: [Octave-bug-tracker] [bug #56232] Octave crash when inverting an empty sparse matrix.
Date: Sun, 28 Apr 2019 17:39:24 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Update of bug #56232 (project octave):

                  Status:                    None => Confirmed              

    _______________________________________________________

Follow-up Comment #1:

Confirmed.  That is exceedingly odd.  I can also confirm that the segfault
goes back through version 4.2.1 so this behavior has probably always been
present, but never quite hit upon.

Slightly longer backtrace to show the full code path


#0  0x00007fc47cabdbfb in SparseMatrix::tinverse (this=0x7fc44fff6110,
mattype=..., 
    address@hidden: 0, address@hidden: 0, calccond=false)
    at liboctave/array/dSparse.cc:734
#1  0x00007fc47cabf271 in SparseMatrix::inverse (this=0x7fc44fff6420,
mattype=..., 
    address@hidden: 0, address@hidden: 0, calc_cond=true)
    at liboctave/array/dSparse.cc:983
#2  0x00007fc47e4b3500 in Finv (args=..., nargout=0) at
libinterp/corefcn/inv.cc:146


Inspecting things in SparseMatrix::inverse, I think (C -C) may be corrupting
the dim_vector within the Sparse representation.




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?56232>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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