Overview
| Artifact ID: | 42083508d25f1d14fd77d19b30529b0101bb96f491f60b1b0ab9e6df4e911f30 |
|---|---|
| Ticket: | 7842f33a5cc5eed080a57f8af9ac1e7e3cee444a
TCL crash (core) |
| User & Date: | anonymous on 2022-08-27 21:39:42 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-plain"
- comment changed to:
The following script will CRASH tcl TWO instances are linked together, the second instance uses in the destructor the first instance. but the second instance is created in the namespace of the first instance. if the first instance is deleted the destructor of the second instance is called and this is calling the first instance again etc… oo::class create RpcClient { } oo::define RpcClient method write {name } { puts "RpcClient → $name" } oo::class create LcConfigRpcClient { superclass RpcClient } oo::define LcConfigRpcClient method LcConfigRpc_create_bug {name } { LcConfigRpc create $name [self] 111 } oo::define LcConfigRpcClient export LcConfigRpc_create_bug oo::class create MkObjectRpc { variable hdl } oo::define MkObjectRpc constructor {rpcHdl mqHdl} { set hdl $mqHdl oo::objdefine [self] forward rpc $rpcHdl } oo::define MkObjectRpc destructor { my rpc write otto-$hdl } oo::class create LcConfigRpc { superclass MkObjectRpc variable hdl } set FH [LcConfigRpcClient new] $FH LcConfigRpc_create_bug cfg $FH destroy - foundin changed to: "8.6"
- is_private changed to: "0"
- login: "anonymous"
- priority changed to: "5 Medium"
- private_contact changed to: "cfa5542303e02522a952e7e43ae9583a052b31e9"
- resolution changed to: "None"
- severity changed to: "Severe"
- status changed to: "Open"
- submitter changed to: "anonymous"
- subsystem changed to: "10. Objects"
- title changed to: "TCL crash (core)"
- type changed to: "Bug"