bugGNU Octave - Bugs: bug #45849, crash when using matrix division...

 
 

bug #45849: crash when using matrix division with Inf values (Windows only)

Submitter:  None
Submitted:  Mon 31 Aug 2015 08:48:51 AM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Duplicate Assigned to:  None
Originator Name:  WimM Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 4.0.0
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 12 Sep 2015 10:02:28 PM UTC, comment #5: 

Closing as duplicate, no more information is needed here, we just need a solution to bug #39000.

Mike Miller <mtmiller>
Group Member
Mon 31 Aug 2015 02:42:43 PM UTC, comment #4: 

Also bug #39000. We can't expect to avoid all exceptional conditions with the linear algebra libraries, but Octave does expect to be able to override the error handler routine so it doesn't cause the program to exit immediately.

Mike Miller <mtmiller>
Group Member
Mon 31 Aug 2015 02:26:58 PM UTC, comment #3: 

Is this a duplicate of bug #45484 or bug #45577?

It looks like whenever the matrix divide routine in the BLAS library is called with an IEEE exceptional value such as Inf or NaN there is a possibility of triggering the exception.

The sqrt() is not necessary and the ultimate stripped down example is


[-Inf -1] / [-1, Inf]



Rik <rik5>
Group administrator
Mon 31 Aug 2015 10:02:12 AM UTC, comment #2: 

confirmed. it crashes imediatly.

Anonymous
Mon 31 Aug 2015 09:55:33 AM UTC, comment #1: 

If I run your code I get


>> ReqSpeed
 ** On entry to DLASCL parameter number  4 had an illegal value
error: ReqSpeed: exception encountered in Fortran subroutine dgelsd_
error: called from
    ReqSpeed at line 40 column 3


A very stripped down snippet is

>> sqrt([-Inf -1])/[-Inf, 1]
 ** On entry to DLASCL parameter number  4 had an illegal value
error: exception encountered in Fortran subroutine dgelsd_


Can you confirm, that the line above also crashes Octave 4.0.0 on Windows?

Andreas Weber <andy1978>
Group Member
Mon 31 Aug 2015 08:48:51 AM UTC, original submission:  

When i run the m-file attached, octave consistently crashes. The problem accored when adding (and running) lines 40/41. I know the matrix dimensions are screwed up, and was expeciting to get an error. however, the error never showed up and octave crashes instead. :(

PS: great work! My work would be nearly impossible without octave!

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #34773:  ReqSpeed.m added by None (2KiB - application/octet-stream)

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by rik5
  • -email is unavailable- added by andy1978 (Posted a comment)
  • -email is unavailable- added by None (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 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-09-12 mtmiller Open/ClosedOpen Closed
    2015-09-01 rik5 StatusNone Duplicate
        Summaryshutdown on running simple calculation .m file crash when using matrix division with Inf values (Windows only)
    2015-09-01 rik5 Dependencies- Depends on bugs #45484
    2015-09-01 rik5 Dependencies- Depends on bugs #39000
    2015-08-31 rik5 Carbon-Copy- Added jwe
    2015-08-31 None Attached File- Added ReqSpeed.m, #34773

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code