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

 
 

bug #52516: Inversion with NaN returns incorrectly sized object

Submitted by:  Johannes Pfeifer <jpfeifer>
Submitted on:  Sun 26 Nov 2017 06:17:44 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Segfault, Bus Error, etc.
Status: FixedAssigned to: None
Originator Name: Johannes PfeiferOpen/Closed: Closed
Release: 4.2.1Operating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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>
Project 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

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>
Project 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
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 File(s):
   
   
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
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by jpfeifer (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
    Sun 26 Nov 2017 10:51:51 PM UTCrik5StatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Sun 26 Nov 2017 07:13:19 PM UTCrik5StatusNone=>Confirmed
      SummaryInversion with NaN crashes Octave =>Inversion with NaN returns incorrectly sized object
    Sun 26 Nov 2017 06:17:44 PM UTCjpfeiferAttached File-=>Added problematic_arrays.mat, #42490

    Back to the top


    Powered by Savane 3.1-cleanup1