Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e52151ec7dbda39839bebe1e59283fd7f19692f8
Ticket: 3038316fffffffffffffffffffffffffffffffff
Encoding freeProc deadlock risk
User & Date: dgp on 2010-08-02 14:52:44
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    When the Tcl_EncodingFreeProc of
    an encoding is called by FreeEncoding()
    the encodingMutex is held.  This means that
    if the client supplied Tcl_EncodingFreeProc
    calls any routine that tries to grab that mutex,
    we risk a deadlock.
    
    I suppose the best fix would be a total rewrite
    of the steaming pile of WTF that is encoding
    lifetime management, but short of that, perhaps
    a warning in the docs?
    
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "dgp"
  10. subsystem changed to: "None"
  11. title changed to: "Encoding freeProc deadlock risk"
  12. type changed to: "Bug"