Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a65c5de9da2f6c0cd1b2e3c86cba51502fbff8cb800c48bd008d12d9ee72a55b
Ticket: 2577420fffffffffffffffffffffffffffffffff
Tcl_GetInterpPath produces invalid path.
User & Date: serhiy.storchaka on 2026-10-17 08:39:47
Changes

  1. foundin changed to: "9.0.5, 9.1.0"
  2. icomment:
    Still a use-after-free in 9.0 and 9.1 (ASan): the child's entry in the parent's child table is removed before the child's Tcl_CallWhenDeleted() callbacks run, and the InterpInfo may be freed before them too, because it is freed by another delete callback. 8.6 and 9.0 print the right path only because the freed memory still holds it.
    Proposed fix in branch [/timeline?r=interp-delete-callbacks-path|interp-delete-callbacks-path]: unlink after Tcl_DeleteInterp(), and free the InterpInfo after all delete callbacks. No test, since no script command can register such a callback.
    
  3. login: "serhiy.storchaka"
  4. mimetype: "text/x-fossil-wiki"