Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: bb96bfd468dc0995cac8d6127f1875184d50c543
Ticket: 2939073fffffffffffffffffffffffffffffffff
Unset PATTERN unsafe with trace-originated secondary unsets
User & Date: ferrieux on 2010-01-31 00:52:07
Changes

  1. icomment:
    Homing in.
    Just adding [puts] around the unset, shows a reentrancy issue.
    
    UNSETCOLLAB>: .c,queue,19,* (size:23 -- matching:10)
    UNSETCOLLAB>: .c,queue,20,* (size:22 -- matching:10)
    UNSETCOLLAB<
    UNSETCOLLAB>: .c,queue,19,* (size:12 -- matching:9)
    UNSETCOLLAB<
    
    This in turn can be traced down to Tequila doing [vwait] in its guts. With Tk and a heavy stream of events, that [vwait] can catch a GUI event and call arbitrary code, including some doing an extra [unset] on the same var.
    
    Knowing this, I'll try to build an atomic example.
    
    
  2. login: "ferrieux"
  3. mimetype: "text/plain"
  4. username: "ferrieux"