bugGNU Octave - Bugs: bug #29851, Random result with 1(find([1 1] !=...

 
 

bug #29851: Random result with 1(find([1 1] != 0)), should result in "index out of bounds", but doesn't.

Submitter:  Jarno Rajahalme <jarno>
Submitted:  Tue 11 May 2010 03:06:41 AM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  highegg
Originator Name:  Jarno Rajahalme Open/Closed:  * Closed
Release:  * dev Operating System:  * Mac OS
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 11 May 2010 05:29:58 AM UTC, comment #1: 

A fix is online:
http://hg.savannah.gnu.org/hgweb/octave/rev/6fb954475e21

btw, you don't need to save in order to find out the internal type of a value, you can use the "typeinfo" function for that (not to be confused with "class").

thanks for the report.

Jaroslav Hajek <highegg>
Tue 11 May 2010 03:06:41 AM UTC, original submission:  

$ octave
GNU Octave, version 3.3.51+
...
octave:1> 1(find([1 1] != 0))
ans =

   1.0000e+00   2.1617e-314

octave:2> 1(find([1 1] != 0)+0)
error: A(I): index out of bounds; value 2 out of bound 1
octave:2>

The result on the prompt 1 above is clearly incorrect. Saving a result of the find above, and looking at the file tells that the result is a "lazy_index".


Jarno Rajahalme <jarno>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by highegg (Updated the item)
  • -email is unavailable- added by jarno (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-05-11 highegg StatusIn Progress Fixed
        Open/ClosedOpen Closed
    2010-05-11 highegg StatusNone In Progress
        Assigned toNone highegg

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code