[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #50198] Calling "error" from the GUI thread le
From: |
Pantxo Diribarne |
Subject: |
[Octave-bug-tracker] [bug #50198] Calling "error" from the GUI thread lead to segfaults |
Date: |
Tue, 31 Jan 2017 14:14:49 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0 |
URL:
<http://savannah.gnu.org/bugs/?50198>
Summary: Calling "error" from the GUI thread lead to
segfaults
Project: GNU Octave
Submitted by: pantxo
Submitted on: Tue 31 Jan 2017 02:14:48 PM GMT
Category: GUI
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Segfault, Bus Error, etc.
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
Since I don't know how to provoke an error in the GUI thread, I intensionally
added a call to "error" in gl2ps_renderer::draw.
diff -r 0224e047fbb9 libinterp/corefcn/gl2ps-print.cc
--- a/libinterp/corefcn/gl2ps-print.cc Fri Jan 20 21:40:11 2017 +0100
+++ b/libinterp/corefcn/gl2ps-print.cc Tue Jan 31 15:09:13 2017 +0100
@@ -190,6 +190,7 @@
void
gl2ps_renderer::draw (const graphics_object& go, const std::string&
print_cmd)
{
+ error ("Expect Octave to return gracefully");
static bool in_draw = false;
static std::string old_print_cmd;
static GLint buffsize;
After recompiling with this in place I can see that printing with fltk returns
gracefully while with Qt (which runs the the gl2ps_renderer from the GUI
thread):
octave:1> graphics_toolkit fltk
octave:2> plot (1:10)
octave:3> print toto.eps
error: Expect Octave to return gracefully
error: called from
__opengl_print__ at line 169 column 7
print at line 504 column 14
octave:3> close all
octave:4> graphics_toolkit qt
octave:5> plot (1:10)
octave:6> print toto.eps
error: Expect Octave to return gracefully
terminate called after throwing an instance of 'octave::execution_exception'
Aborted
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?50198>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #50198] Calling "error" from the GUI thread lead to segfaults,
Pantxo Diribarne <=