octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #45484] mldivide/mrdivide crashes octave 4 on


From: Rik
Subject: [Octave-bug-tracker] [bug #45484] mldivide/mrdivide crashes octave 4 on windows, triggers exception on Linux and MacOSX
Date: Tue, 07 Jul 2015 15:52:15 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0

Update of bug #45484 (project octave):

                  Status:                    None => Confirmed              

    _______________________________________________________

Follow-up Comment #1:

Confirmed on Windows XP Virtual Machine, Octave 4.0.0 from installer.  I tried
both with octave-gui.exe and octave-cli.exe and both have the problem.  When
running from the CLI there is at least some reporting of the problem, the same
error message you saw.


warning: matrix singular to machine precision, rcond = nan

        On entry to DLASCL parameter number 4 had an illegal value


I also get a pop-up error message from Windows that an instruction tried to
read from memory location 0x10 which is bound to be a segmentation violation.

However, on Linux (Ubuntu 12.04), I don't get an exception.  I do get a
warning about the matrix being singular.  In addition, the output is all zeros
instead of being all NaNs.


y = NaN (4)
y =

   NaN   NaN   NaN   NaN
   NaN   NaN   NaN   NaN
   NaN   NaN   NaN   NaN
   NaN   NaN   NaN   NaN

>> y / y
warning: matrix singular to machine precision
ans =

   0   0   0   0
   0   0   0   0
   0   0   0   0
   0   0   0   0

>> mrdivide (y,y)
ans =

   0   0   0   0
   0   0   0   0
   0   0   0   0
   0   0   0   0

>> mldivide (y,y)
ans =

   0   0   0   0
   0   0   0   0
   0   0   0   0
   0   0   0   0


Interestingly, if I change the matrix slightly, I can generate the same
warning on Linux as well.


y = Nan (4);
y(3,3) = 1;
y / y
warning: matrix singular to machine precision
 ** On entry to DLASCL parameter number  4 had an illegal value
error: exception encountered in Fortran subroutine dgelsd_




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?45484>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]