#556: setref on derived pmc aggregate class loses data on return
-------------------+--------------------------------------------------------
 Reporter:  bsdz   |        Owner:  kjs    
     Type:  bug    |       Status:  closed 
 Priority:  major  |    Milestone:         
Component:  core   |      Version:  trunk  
 Severity:  high   |   Resolution:  invalid
 Keywords:         |         Lang:         
    Patch:         |     Platform:  all    
-------------------+--------------------------------------------------------
Changes (by plobsing):

  * status:  new => closed
  * resolution:  => invalid
  * component:  pirc => core


Comment:

 The setref op does not mean pass by reference. Specifically, setref on
 FixedPMCArray and descendants (including ResizablePMCArray) is an
 extremely internal-ish operation that users should *not* be using.

 The example code now segfaults. The segfault has nothing to do with the
 return (the _dumper call can be moved to immediately after the setref for
 the same effect) and everything to do with poking things that shouldn't be
 poked.

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/556#comment:1>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to