TclOO Package

View Ticket
Login
Ticket UUID: b635539f43ba64cb1ef4648126251c2b5cf3db1e
Title: Seg.fault on self-destroy in a method, in self namespace
Type: Bug Version: 1.0.4
Submitter: aku Created on: 2016-04-22 06:24:02
Subsystem: 35. TclOO Package Assigned To: nobody
Priority: 5 Medium Severity: Important
Status: Open Last Modified: 2016-04-22 06:24:02
Resolution: None Closed By: nobody
    Closed on:
Description: (text/x-fossil-wiki)
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>