Artifacts Associated With Ticket b4637c4312a59ca5
Ticket change [0e8b900f7d] (rid 239896) by ooa64_ua_fm on 2025-05-08 09:31:31:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-plain"
- comment initialized to:
This script crashes tcl interpreter (segmentation fault on linux or silent crash on windows): --- proc crash {varname} { upvar $varname V ;# <<<< crashes here !!! } oo::class create C { variable V method run {} { my destroy crash V } } C create c c run --- Trying on: windows tcl 8.6.16, 9.0.2 linux tcl 8.6.12 https://onecompiler.com/tcl 8.6.14 - foundin initialized to: "8.6.12,8.6.16,9.0.2"
- is_private initialized to: "0"
- login: "ooa64_ua_fm"
- priority initialized to: "5 Medium"
- private_contact initialized to: "adbf9acf8babf33ccf30baaf363c2949e21b82be"
- resolution initialized to: "None"
- severity initialized to: "Severe"
- status initialized to: "Open"
- submitter initialized to: "ooa64_ua_fm"
- subsystem initialized to: "07. Variables"
- title initialized to: "upvar segfault for destroyed object"
- type initialized to: "Bug"
Ticket change [42f3dc584f] (rid 257945) by serhiy.storchaka on 2026-10-13 19:08:05:
- foundin changed to: "8.6.18, 9.0.5, 9.1.0"
- icomment:
Same cause as [28de60cef5]: after <code><nowiki>[my destroy]</nowiki></code> the namespace of the object is deleted, and resolving V for <code>upvar</code> in the method looked it up there. It also crashes with 8.6.17, 9.0 and 9.1. Proposed fix in branch [/timeline?r=oo-destructor-deleted-namespace|oo-destructor-deleted-namespace]: the script returns normally, and V is a new unset variable. Test oo-3.14.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
Ticket change [d80dd4c630] (rid 261039) by dkf on 2026-11-01 17:42:58:
- assignee changed to: "dkf"
- icomment:
Confirming the crash with 9.1.0, and it looks like something that wants a backport fix to 9.0 too. No plans to backport to 8.6, given the support status of that release line.
- login: "dkf"
- mimetype: "text/x-markdown"
- subsystem changed to: "35. TclOO Package"
Ticket change [e3b52dc75a] (rid 261051) by dkf on 2026-11-01 20:38:45:
- closedate changed to: "2461346.3602542128"
- closer changed to: "dkf"
- icomment: "Fix applied to 9.0 onwards."
- login: "dkf"
- mimetype: "text/x-markdown"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [c4d85129c8] (rid 261052) by dkf on 2026-11-01 20:39:55:
- closedate changed to: "2461346.3610597337"
- icomment: "BTW, thanks for hunting this down, Serhiy."
- login: "dkf"
- mimetype: "text/x-markdown"