Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 42d6509f0ac95b798b2a50fa83d1c7a789817d3b579d5ba413acbadf4f0f64c8
Ticket: 28de60cef5133f1bd5c07dadf4d1a6e1989878c4
Segfault in destructor using tsv::lock
User & Date: serhiy.storchaka on 2026-10-13 15:27:14
Changes

  1. foundin changed to: "8.6.18, 9.0.5, 9.1.0"
  2. icomment:
    Still crashes with 8.6.17, 9.0 and 9.1. It does not need Thread:
    <code>eval</code> or <code>uplevel 0</code> instead of
    <code>tsv::lock</code> crash the same way. <code><nowiki>rename [self] {}</nowiki></code> deletes
    the namespace of the object, and the variable resolver of TclOO then looks up
    the variable in the deleted namespace.
    
    Proposed fix in branch [/timeline?r=oo-destructor-deleted-namespace|oo-destructor-deleted-namespace]:
    do not resolve object variables when the namespace is already deleted; reading
    such a variable is then an error. Test oo-3.13.
    
  3. login: "serhiy.storchaka"
  4. mimetype: "text/x-fossil-wiki"