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

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

[Octave-bug-tracker] [bug #64080] Incorrect result from reshape.


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #64080] Incorrect result from reshape.
Date: Thu, 20 Apr 2023 23:48:21 -0400 (EDT)

Follow-up Comment #6, bug #64080 (project octave):

The best the signal handler could do for SIGFPE is something similar to what
the one that the SIGINT handler does and set the global interrupt flag that is
later noticed by the octave_quit function that is called from various "safe"
locations throughout Octave.  Maybe that would be better than simply
continuing without interrupt, but it would not stop execution immediately at
the point of the signal.  As far as I know, throwing an exception directly
from the signal handler would result in undefined behavior and a siglongjmp
back to the top-level prompt is also bad because it skips any stack unwinding
that would clean up any objects that have been allocated in parent stack
frames.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?64080>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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