bugGNU Octave - Bugs: bug #37750, segfault when parenting gca to...

 
 

bug #37750: segfault when parenting gca to hggroup

Submitter:  Muhali <muhali>
Submitted:  Thu 15 Nov 2012 03:45:14 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  jordigh
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Sat 12 Oct 2013 04:25:25 AM UTC, comment #6: 

I checked in a more complicated fix for the remaining issue (http://hg.savannah.gnu.org/hgweb/octave/rev/cd5a6008ae72).  Closing report.

Rik <rik5>
Group administrator
Fri 11 Oct 2013 12:49:41 AM UTC, comment #5: 

I checked in a partial fix (http://hg.savannah.gnu.org/hgweb/octave/rev/82b1778798d3) which avoids setting the parent object to be the object itself.  Thus,


set(gca, "parent", gca);


no longer causes a segfault.

However, there is still a problem with the hggroup example.  I've re-titled the bug to reflect that.

Rik <rik5>
Group administrator
Thu 15 Nov 2012 04:35:39 PM UTC, comment #4: 

It doesn't seem to be recursive, but it is. It's the same problem.

Jordi Gutiérrez Hermoso <jordigh>
Group Member
Thu 15 Nov 2012 04:32:11 PM UTC, comment #3: 

note that this also creates a segfault:


hg = hggroup;
set(gca, "parent", hg);


and it does not seem to be recursive.

Muhali <muhali>
Thu 15 Nov 2012 04:26:05 PM UTC, comment #2: 

Hah! Looks like this makes base_properties::mark_modified call itself recursively forever.

The issue with the gcf calling form seems unrelated. Please file a separate report for that.

Jordi Gutiérrez Hermoso <jordigh>
Group Member
Thu 15 Nov 2012 04:22:48 PM UTC, comment #1: 

Thanks, I like killing segfaults. I'll investigate this problem.

Jordi Gutiérrez Hermoso <jordigh>
Group Member
Thu 15 Nov 2012 03:45:14 PM UTC, original submission:  

The following segfaults octave.


set(gca, "parent", gca);


This may not be the wisest thing to do, but interestingly, when for some figure I repeatedly do


set(gca, "parent", gcf);


the figure keeps changing, which is not what I would expect.

Muhali <muhali>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

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 bpabbott
  • -email is unavailable- added by jordigh (Posted a comment)
  • -email is unavailable- added by muhali (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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-10-12 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2013-10-11 rik5 Summarysegfault with \'set(gca, &quot;parent&quot;, gca)\' segfault when parenting gca to hggroup
    2012-12-15 bpabbott Carbon-Copy- Added -email is unavailable-
    2012-11-15 jordigh StatusNone Confirmed
        Assigned toNone jordigh

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code