[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #44387] unwind_protect_cleanup apparently fail
From: |
Dan Sebald |
Subject: |
[Octave-bug-tracker] [bug #44387] unwind_protect_cleanup apparently fails to run when calling graphics C++ code |
Date: |
Fri, 7 Oct 2016 23:28:18 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0 |
Follow-up Comment #11, bug #44387 (project octave):
For FLTK --no-gui flag, I now get pretty much the same as what you report,
except perhaps you have more error messages.
Good hypothesis on your part. I've recompile with this change:
if (nwrite != nread)
{
// octave::signal_handler (); // Clear SIGPIPE signal
// error ("gl2ps_renderer::draw: internal pipe error");
}
and the segfault is gone:
>> print -dfoo tst.eps
Unknown device: foo
Unrecoverable error: undefined in .uninstallpagedevice
Operand stack:
defaultdevice
warning: broken pipe
>>
So, I recompile again with just this change:
if (nwrite != nread)
{
// octave::signal_handler (); // Clear SIGPIPE signal
error ("gl2ps_renderer::draw: internal pipe error");
}
and get segfault again. With this change
if (nwrite != nread)
{
octave::signal_handler (); // Clear SIGPIPE signal
// error ("gl2ps_renderer::draw: internal pipe error");
}
I see "warning: broken pipe" a hundred plus times. That seems backward to me,
but it's beside the point. The call to error() is the problem, as you
surmised.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?44387>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/