Skip to content
Tcl Source Code History Of Ticket b4637c4312
Login

History Of Ticket b4637c4312

Artifacts Associated With Ticket b4637c4312

  1. Ticket change [0e8b900f7d] (rid 239896) by ooa64_ua_fm on 2025-05-08 09:31:31:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-plain"
    4. 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
      
    5. foundin initialized to: "8.6.12,8.6.16,9.0.2"
    6. is_private initialized to: "0"
    7. login: "ooa64_ua_fm"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "adbf9acf8babf33ccf30baaf363c2949e21b82be"
    10. resolution initialized to: "None"
    11. severity initialized to: "Severe"
    12. status initialized to: "Open"
    13. submitter initialized to: "ooa64_ua_fm"
    14. subsystem initialized to: "07. Variables"
    15. title initialized to: "upvar segfault for destroyed object"
    16. type initialized to: "Bug"
  2. Ticket change [42f3dc584f] (rid 257945) by serhiy.storchaka on 2026-10-13 19:08:05:

    1. foundin changed to: "8.6.18, 9.0.5, 9.1.0"
    2. 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.
      
    3. login: "serhiy.storchaka"
    4. mimetype: "text/x-fossil-wiki"
  3. Ticket change [d80dd4c630] (rid 261039) by dkf on 2026-11-01 17:42:58:

    1. assignee changed to: "dkf"
    2. 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.
      
    3. login: "dkf"
    4. mimetype: "text/x-markdown"
    5. subsystem changed to: "35. TclOO Package"
  4. Ticket change [e3b52dc75a] (rid 261051) by dkf on 2026-11-01 20:38:45:

    1. closedate changed to: "2461346.3602542128"
    2. closer changed to: "dkf"
    3. icomment: "Fix applied to 9.0 onwards."
    4. login: "dkf"
    5. mimetype: "text/x-markdown"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
  5. Ticket change [c4d85129c8] (rid 261052) by dkf on 2026-11-01 20:39:55:

    1. closedate changed to: "2461346.3610597337"
    2. icomment: "BTW, thanks for hunting this down, Serhiy."
    3. login: "dkf"
    4. mimetype: "text/x-markdown"