bugGNU Octave - Bugs: bug #37927, set (gcf, "parent", gcf)...


bug #37927: set (gcf, "parent", gcf) -> seg-fault

Submitted by:  Ben Abbott <bpabbott>
Submitted on:  Sat 15 Dec 2012 01:39:36 AM UTC  
Category:  Interpreter Severity:  4 - Important
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  None
Originator Name:  Ben Abbott Open/Closed:  Closed
Release:  dev Operating System:  Mac OS

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Fri 11 Oct 2013 12:45:02 AM UTC, comment #4: 

I fixed this segfault by checking that the desired new parent handle is not the same as that of the object itself (http://hg.savannah.gnu.org/hgweb/octave/rev/82b1778798d3).

Rik <rik5>
Project Administrator
Thu 10 Oct 2013 07:11:42 AM UTC, comment #3: 

I can confirm this bug on my linux machine with octave 3.6.4

Reza <rezahousseini>
Sat 15 Dec 2012 04:30:39 AM UTC, comment #2: 

This is effectively a duplicate


Ben Abbott <bpabbott>
Project Member
Sat 15 Dec 2012 03:40:28 AM UTC, comment #1: 

For reference, I tried the same command in Matlab.

set (gcf (), 'parent', gcf ())
Error using set
Bad property value found.
Object Name :  figure
Property Name :  'Parent'.

Ben Abbott <bpabbott>
Project Member
Sat 15 Dec 2012 01:39:36 AM UTC, original submission:  

The command below seg-faults for me on MacOS X

set (gcf, "parent", gcf)

Ben Abbott <bpabbott>
Project Member


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

Attach Files:

Attached Files
file #29344:  gdb.txt added by rezahousseini (5KiB - text/plain - Here is the backtrace from gdb)


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 rezahousseini (Posted a comment)
  • -email is unavailable- added by bpabbott (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-10-11 rik5 StatusDuplicate => Fixed
        Open/ClosedOpen => Closed
    2013-10-10 rezahousseini Attached File- => Added gdb.txt, #29344
    2012-12-15 bpabbott StatusNone => Duplicate

    Back to the top

    Powered by Savane 3.7