bugGNU Octave - Bugs: bug #42424, crash when "find" on...

 
 

bug #42424: crash when "find" on sparse matrices is given at least 6 return-values

Submitted by:  David Spies <dspyz>
Submitted on:  Sun 25 May 2014 11:09:50 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Segfault, Bus Error, etc.
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Wed 25 Nov 2015 09:33:21 PM UTC, comment #3:

Even without the more comprehensive fix, there is no need for Octave to segfault just because an extra 6th argument was passed to find. I corrected that problem alone on the stable branch here (http://hg.savannah.gnu.org/hgweb/octave/rev/f819397c0bc1). Closing this report, but leaving bug #42425 open.

Rik <rik5>
Project Administrator
Tue 10 Feb 2015 07:33:02 PM UTC, comment #2:

A patch was supplied, it just nead some testing.

Doug Stewart <dastew>
Sun 25 May 2014 11:17:53 PM UTC, comment #1:

This and bug 42425 are both fixed by calling find with a comprehensive dispatch function that handles all the types in the same way. Here's my patch (18794 at https://dspyz@bitbucket.org/dspyz/octave on top of 18791-18793 in my previous two bugfixes).

(file #31438)

David Spies <dspyz>
Sun 25 May 2014 11:09:50 PM UTC, original submission:

Exactly what it says on the tin:

octave:1> [a,b,c,d,e,f] = find(speye(3));
panic: impossible state reached in file 'corefcn/find.cc' at line 221
panic: Aborted -- stopping myself...
attempting to save variables to 'octave-workspace'...
save to 'octave-workspace' complete
octave exited with signal 6

David Spies <dspyz>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #31438:  dispatch.diff added by dspyz (16KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by dastew (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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 25 Nov 2015 09:33:21 PM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Sun 25 May 2014 11:17:53 PM UTCdspyzAttached File-=>Added dispatch.diff, #31438

    Back to the top


    Powered by Savane 3.1-cleanup1