bugGNU Octave - Bugs: bug #53487, Segmentation fault when executing...


bug #53487: Segmentation fault when executing a script containing a figure

Submitter:  Guillaume <gyom>
Submitted:  Tue 27 Mar 2018 04:43:05 PM UTC
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  None
Originator Name:  Guillaume Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup

Thu 29 Mar 2018 04:30:43 AM UTC, comment #3: 

The cset works for me.  Marking as fixed and closing report.

Rik <rik5>
Group administrator
Wed 28 Mar 2018 09:44:50 PM UTC, comment #2: 

I was able to reproduce the problem.  The following changeset seems to fix it for me:


John W. Eaton <jwe>
Group administrator
Tue 27 Mar 2018 04:56:26 PM UTC, comment #1: 

I attach a strack trace obtained with the current default "d0f9826f677d+".

(file #43699)

Guillaume <gyom>
Tue 27 Mar 2018 04:43:05 PM UTC, original submission:  

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);

Guillaume <gyom>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #43699:  stacktrace.txt added by gyom (14KiB - text/plain)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by gyom (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.


    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-03-29 rik5 StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2018-03-28 jwe StatusNone Ready For Test
    2018-03-27 gyom Attached File- Added stacktrace.txt, #43699

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code