Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2df1e85b8c99ba211a4be55002a7dc77dcb034167580222133a092ab341d551b
Ticket: 0ef291c1c287e325a8e5d17c1390e5a733c12fc9
memory corruption with trace + transchan
User & Date: serhiy.storchaka on 2026-10-17 08:23:03
Changes

  1. foundin changed to: "8.6.18, 9.0.5, 9.1.0"
  2. icomment:
    Reproduced on main and 8.6 (heap-use-after-free under ASan; 9.0 has the same code): InvokeTclMethod() in tclIORTrans.c fills the command words preallocated for the transform, so when the handler re-enters the same transform (here the trace's <nowiki>[puts]</nowiki>), the nested call overwrites and frees the words of the outer call that is still running.
    Proposed fix in branch [/timeline?r=iortrans-reentrant-argv|iortrans-reentrant-argv]: copy the words for each call. Test iortrans-bug-0ef291c1c2.
    
  3. login: "serhiy.storchaka"
  4. mimetype: "text/x-fossil-wiki"