bugGNU Octave - Bugs: bug #31734, SEGFAULT when using sparse...

 
 

bug #31734: SEGFAULT when using sparse matrices with certain index combinations

Submitter:  Rik <rik5>
Submitted:  Mon 22 Nov 2010 09:58:32 PM UTC
   
 
Category:  Interpreter Severity:  4 - Important
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 03 Dec 2010 07:49:22 PM UTC, comment #1: 

This bug does seems to be fixed by jwe's patch, which was lost when savannah was hacked.  I have re-uploaded the patch, applied it to the Mercurial repository, and am closing this report.

(file #22118)

Rik <rik5>
Group administrator
Mon 22 Nov 2010 09:58:32 PM UTC, original submission:  

The indexing for sparse matrices is occasionally broken.  A sample test program is attached.  This bug is not present in 3.2.4, but is present with tip 11285:107e7476a5da.  This is for an x86_64 machine.


spvar = spalloc (30^3, 1, 100);

#for i = [4 1154 3 4] # to cause segfault
for i = [4 1154 3]    # to see bad variable indices
  spvar(i) += i
endfor


Output is


spvar =

Compressed Column Sparse (rows = 27000, cols = 1, nnz = 1 [0.0037%])

  (4, 1) ->  4

spvar =

Compressed Column Sparse (rows = 27000, cols = 1, nnz = 2 [0.0074%])

  (4, 1) ->  4
  (1154, 1) ->  1154

spvar =

Compressed Column Sparse (rows = 27000, cols = 1, nnz = 3 [0.011%])

  (3, 1) ->  3
  (1154, 1) ->  1154
  (-2076787047, 1) ->  1.5526e-316


Rik <rik5>
Group administrator

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #22118:  diffs.txt added by rik5 (1KiB - text/plain)
file #22082:  segtest.m added by rik5 (182B - 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 rik5 (Submitted the item)
  •  

    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
    2010-12-03 rik5 Attached File- Added diffs.txt, #22118
        StatusNone Fixed
        Open/ClosedOpen Closed
    2010-11-22 rik5 Attached File- Added segtest.m, #22082

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code