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

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

[Octave-bug-tracker] [bug #46330] segfault with matrices containing Inf


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #46330] segfault with matrices containing Inf & NaN
Date: Thu, 7 Jul 2016 22:10:50 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0

Follow-up Comment #22, bug #46330 (project octave):

Thanks, and sorry, I realized later this was a collaboration of yours and
Lachlan's along with your followup test case.

Sounds good, please investigate the single precision case.

I think it should be possible to add the test case back in, with a comment and
a check for ispc() to simply avoid passing bad values into LAPACK on Windows
systems where we know about this limitation.

In fact since you are using %!warning, maybe something like this excerpt,
based on your commit?


%! ## This statement caused an error in LAPACK and eventually caused
%! ## a segmentation fault.
%! ## Triggers "warning: matrix singular to machine precision"
%! ## FIXME: LAPACK errors become fatal crashes on Windows, don't test this
%! if (ispc ())
%!   warning ("unable to test for bug #46330 on Windows");
%! else
%!   assert (c / (i * Inf * eye (4) - a) * b, zeros (2, 2))


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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