bugGNU Octave - Bugs: bug #40325, sprand throws oob

 
 

bug #40325: sprand throws oob

Submitted by:  David Spies <dspyz>
Submitted on:  Mon 21 Oct 2013 06:13:13 AM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: David Bateman <dbateman>
Originator Name: Open/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Mon 21 Oct 2013 06:29:33 PM UTC, comment #3:

Ok, that's a pretty stupid bug for me to introduce. Ok it's fixed in the changeset

http://hg.savannah.gnu.org/hgweb/octave/rev/e3ac73be7894

D.

David Bateman <dbateman>
Project MemberIn charge of this item.
Mon 21 Oct 2013 01:35:58 PM UTC, comment #2:

Oh, by the way, this isn't a "crash". A crash is when the operating system kills Octave, not merely when the Octave interpreter emits errors.

Jordi GutiƩrrez Hermoso <jordigh>
Project Administrator
Mon 21 Oct 2013 01:34:50 PM UTC, comment #1:

There's an off-by-1 error in David's computation for the j index vector, which only shows up nondeterministically when you pick a large enough matrix that what should be 1's end up being 0's.

Jordi GutiƩrrez Hermoso <jordigh>
Project Administrator
Mon 21 Oct 2013 06:13:13 AM UTC, original submission:

a = sprand(100000,100000,0.0001);
error: sparse: subscript indices must be either positive integers less than 2^31 or logicals
error: called from:
error: /home/dspies/octave/scripts/sparse/private/__sprand_impl__.m at line 78, column 5
error: /home/dspies/octave/scripts/sparse/sprand.m at line 50, column 7

David Spies <dspyz>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by dbateman (Posted a comment)
  • -unavailable- added by jordigh (Posted a comment)
  • -unavailable- added by dspyz (Submitted the item)
  •  

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

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 21 Oct 2013 06:29:33 PM UTCdbatemanStatusConfirmed=>Fixed
      Assigned toNone=>dbateman
      Open/ClosedOpen=>Closed
    Mon 21 Oct 2013 01:35:58 PM UTCjordighItem GroupSegfault, Bus Error, etc.=>Incorrect Result
    Mon 21 Oct 2013 01:34:50 PM UTCjordighStatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup1