[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #53487] Segmentation fault when executing a sc
From: |
Guillaume |
Subject: |
[Octave-bug-tracker] [bug #53487] Segmentation fault when executing a script containing a figure |
Date: |
Tue, 27 Mar 2018 12:43:06 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 |
URL:
<http://savannah.gnu.org/bugs/?53487>
Summary: Segmentation fault when executing a script
containing a figure
Project: GNU Octave
Submitted by: gyom
Submitted on: Tue 27 Mar 2018 04:43:05 PM UTC
Category: Plotting
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Segfault, Bus Error, etc.
Status: None
Assigned to: None
Originator Name: Guillaume
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
I'm reporting a segfault in the same vein than bug #44875 so it might be hard
for others to reproduce.
If I run this executable:
#!/usr/bin/octave -fqH
F = figure ("Visible","off");
axes ("Parent",F);
uicontrol (F);
set (findobj (F,"FontUnits","points"),"FontUnits","normalized");
set (F,"Visible","on");
I get a segfault each time with 4.2.1:
> ./testfig
warning: base_graphics_object::get_properties: invalid graphics object
terminate called after throwing an instance of 'std::bad_cast'
what(): std::bad_cast
panic: Aborted -- stopping myself...
attempting to save variables to 'octave-workspace'...
panic: attempted clean up failed -- aborting...
octave exited with signal 6
and a segfault about one in ten times with 4.5+:
> ./testfig
warning: base_graphics_object::get_properties: invalid graphics object
fatal: caught signal Segmentation fault -- stopping myself...
Segmentation fault (core dumped)
The script was initially much longer but I reached the point where it doesn't
crash any more if I remove a single line. Not sure each of them is necessary
as it might just be a race condition.
I couldn't initially reproduce it from the Octave command line but just
noticed I actually can if I paste all of the above followed by delete(F):
F = figure ("Visible","off");
axes ("Parent",F);
uicontrol (F);
set (findobj (F,"FontUnits","points"),"FontUnits","normalized");
set (F,"Visible","on");
delete (F);
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?53487>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #53487] Segmentation fault when executing a script containing a figure,
Guillaume <=