Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f3c587148c4f45139d8404a925dbdb5230cdcede114cd4fdbc43167989331d73
Ticket: baa51423c28a3baf31271b979bd18cf58116a77c
tclWinConsole: needEvent variable is used uninitialized
User & Date: sebres on 2022-08-20 10:36:36
Changes

  1. icomment:
    Fixed in [fce5cfe1c7e872fe]...
    
    Just I must admit, I saw something that may be potentially dangerous:
    
    ConsoleCheckProc locks two mutexes in a nested way. This is theoretically a candidate for a deadlock in certain circumstances.<br/>
    Ashok, can we be sure there are no constellations where it could happen?<br/>
    I mean TH-A locks gConsoleLock and want to lock handleInfoPtr->lock, in the same time TH-B that still hold the lock on handleInfoPtr->lock attempting to lock gConsoleLock for some reason, what would cause a freezing. We can have one actor more that (especially by read/write locks) make some exclusive (W) lock for some of them, so finally it could lead to hardly reproducible heisenbug.
    
  2. login: "sebres"
  3. mimetype: "text/x-fossil-wiki"