bugGNU Octave - Bugs: bug #52516, Inversion with NaN returns...

 
 

bug #52516: Inversion with NaN returns incorrectly sized object

Submitter:  Johannes Pfeifer <jpfeifer>
Submitted:  Sun 26 Nov 2017 06:17:44 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  None
Originator Name:  Johannes Pfeifer Open/Closed:  * Closed
Release:  * 4.2.1 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 26 Nov 2017 10:51:51 PM UTC, comment #3: 

The size had already been corrected on the development branch of Octave.  I changed it to return NaN values, rather than zeros, when the condition number is NaN in this cset http://hg.savannah.gnu.org/hgweb/octave/rev/0643533930e7.

Marking as fixed and closing report.

To access this fix you will need to build from development sources, or wait until the next major release 4.4.0.

Rik <rik5>
Group administrator
Sun 26 Nov 2017 07:13:19 PM UTC, comment #2: 

The segfault has already been fixed for the 4.2.2 bug fix release that should come out at the end of this year.  See bug #39000.

However, the size of the returned value is incorrect.  When I try


r \ b


with the latest code from the stable branch I get a 5x5 matrix (size of r) rather than a 5x1 vector (size of b).


Rik <rik5>
Group administrator
Sun 26 Nov 2017 06:56:00 PM UTC, comment #1: 

Addendum: Visual Studio's debugger error message is

Unhandled exception at 0x000000006C1AB0D4 (liboctinterp-4.dll) in octave-gui.exe: 0xC0000005: Access violation reading location 0x00000000192D9B20.

Johannes Pfeifer <jpfeifer>
Sun 26 Nov 2017 06:17:44 PM UTC, original submission:  

Running

r\b

on the attached arrays crashes Octave 4.2.1 on Windows 10, 64 bit. In contrast, Matlab correctly returns a 5 by 1 NaN vector.

Johannes Pfeifer <jpfeifer>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #42490:  problematic_arrays.mat added by jpfeifer (744B - 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 (Posted a comment)
  • -email is unavailable- added by jpfeifer (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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-11-26 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2017-11-26 rik5 StatusNone Confirmed
        SummaryInversion with NaN crashes Octave Inversion with NaN returns incorrectly sized object
    2017-11-26 jpfeifer Attached File- Added problematic_arrays.mat, #42490

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code