Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6648696fdee3ce422add1739c5f45dc4cfbf2e3644cf924fb62504342997ca51
Ticket: 135804138e33ff05b89f06101008113c86156322
TclOO segmentation fault: direct call to a method called by the object destructor, and that deletes the object via [rename] before calling [next]
User & Date: pooryorick on 2019-11-14 09:43:25
Changes

  1. icomment:
    The initial script is the wrong script.  This is the correct script to reproduce
    the segmentation fault:
    
    <code><verbatim>
    oo::class create c1 {
        method m1 {} {}
    }
    
    oo::class create c2 {
        superclass c1
        destructor {
            my m1
        }
        method m1 {} {
            rename [self] {}
            next
        }
    }
    
    c2 create obj1
    obj1 m1
    </verbatim></code>
    
  2. login: "pooryorick"
  3. mimetype: "text/x-fossil-wiki"