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 Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  dev Operating 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 Files:
   
   
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
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by dastew (Posted a comment)
  • -email is unavailable- added by dspyz (Submitted the item)
  •  

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

    Only project members can vote.

     

     

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-11-25 rik5 StatusNone => Fixed
        Open/ClosedOpen => Closed
    2014-05-25 dspyz Attached File- => Added dispatch.diff, #31438

    Back to the top


    Powered by Savane 3.5