TclOO Package

Ticket Change Details
Login
Overview

Artifact ID: daf0d669a84ae888ba0b502866bacf9e7cff25f4
Ticket: b635539f43ba64cb1ef4648126251c2b5cf3db1e
Seg.fault on self-destroy in a method, in self namespace
User & Date: aku 2016-04-22 06:24:02
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    The script inlined below crashes the interpreter on execution, for Tcl 8.5 as of today [http://core.tcl.tk/tcl/info/a3e6750fec|tcl:a3e6750fec], in combination with TclOO 1.0.4 as of today [e5b56214c7].
    
    Notable, it does *not* crash with Tcl 8.6+ and its integrated TclOO.
    
    I suspect that the backport of a bugfix was not done quite right for 8.5.
    
    <pre>
    package require Tcl 8.5
    package require TclOO
    
    oo::class create ::trial {
        method trial {} {
    	my destroy
    	puts AAA
    	puts [self namespace] ;# --- crash
    	puts BBB
        }
    }
    
    trial create T
    T trial
    </pre>
    
  5. foundin changed to: "1.0.4"
  6. is_private changed to: "0"
  7. login: "aku"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "194c9ef8edbd9a57ef36f4f18fde1d57ce26e1e5"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "aku"
  14. subsystem changed to: "35. TclOO Package"
  15. title changed to:
    Seg.fault on self-destroy in a method, in self namespace
    
  16. type changed to: "Bug"