Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0e8b900f7da570579e77a2be7378c80e8f03affb3fc7da386abd1dc0f593e545
Ticket: b4637c4312a59ca57ef8148623f973a7493e950a
upvar segfault for destroyed object
User & Date: ooa64_ua_fm on 2025-05-08 09:31:31
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-plain"
  4. comment changed 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 changed to: "8.6.12,8.6.16,9.0.2"
  6. is_private changed to: "0"
  7. login: "ooa64_ua_fm"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "adbf9acf8babf33ccf30baaf363c2949e21b82be"
  10. resolution changed to: "None"
  11. severity changed to: "Severe"
  12. status changed to: "Open"
  13. submitter changed to: "ooa64_ua_fm"
  14. subsystem changed to: "07. Variables"
  15. title changed to: "upvar segfault for destroyed object"
  16. type changed to: "Bug"