Encoding freeProc deadlock risk
Open3038316fffffffffffffffffffffffffffffffffCreated 16 years agoUpdated 16 years ago
Descriptionplain2010-08-02 14:52:44
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?
dkf Ticket [3038316fff]: 2 changes
[History diff]2010-08-05 15:43:26
Log in (anonymous is fine) to add a comment.