[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #40364] segfault when comparing large sparse m
From: |
Andreas Weber |
Subject: |
[Octave-bug-tracker] [bug #40364] segfault when comparing large sparse matrices for equality |
Date: |
Thu, 31 Oct 2013 19:59:52 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130917 Firefox/17.0 Iceweasel/17.0.9 |
Update of bug #40364 (project octave):
Status: None => Confirmed
Summary: Octave consistently segfaults when this method is
run on the attached data => segfault when comparing large sparse matrices for
equality
_______________________________________________________
Follow-up Comment #2:
I want to clarify that my backtrace was the result from David Spies's test
case. In his code there is an
assert(mutex == mutex');
The same segfault can be reproduced with
a=sparse([1, 4.7e4], [1, 4.7e4],[ 1 1]);
x = a == a;
This is because in the constructor in Sparse.h:88
SparseRep (octave_idx_type nr, octave_idx_type nc, octave_idx_type nz = 0)
nz overflows for int32 when called in
Sparse.cc:208: rep = new typename Sparse<T>::SparseRep (nr, nc, nr*nc);
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?40364>
_______________________________________________
Nachricht gesendet von/durch Savannah
http://savannah.gnu.org/