|
| From: | Pantxo Diribarne |
| Subject: | [Octave-bug-tracker] [bug #54920] sigabrt (signal-6) crash with AutoScale in xscale = log mode |
| Date: | Wed, 31 Oct 2018 12:47:45 -0400 (EDT) |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 |
Follow-up Comment #10, bug #54920 (project octave):
@jwe: Would it be possible to make the "error" function thread safe instead.
AFAIU this function first prints the message to stderr and then throws an
appropriate exception. Would it be difficult to check in which thread the
function is being called and if it is not the interpreter thread use the
octave_link to put the error call in the interpreter event queue so that it is
handled correctly.
For graphics we currently workaround the issue by using try/catch and
octave_link::post_exception (which basically rethrows the exception in the
interpreter thread). This has the disadvantage that we must put try/catch
blocks in every sensible place (where "error" could be called).
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?54920>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |