Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: da1873fdb18f3011c1b4ce1cf928bdfc0a1db891
Ticket: 1381436fffffffffffffffffffffffffffffffff
threaded tcl crashes
User & Date: vasiljevic on 2005-12-20 19:23:34
Changes

  1. icomment:
    Logged In: YES 
    user_id=95086
    
    Hm.... this is bad. The mutex is released too early, referencing the 
    infoPtr->dwProcessId w/o protection. I do not know if this is the
    cause of the problem (have to examine that code more carefully)
    but on the first glance I'd do:
    if (infoPtr->hProcess == (HANDLE) pid) {
                unsigned long processId = infoPtr->dwProcessId;
        Tcl_MutexUnlock(&pipeMutex);
                return processId;
    }
       
    If you do this in your copy, can you still reproduce the bug?
    
    
    
  2. login: "vasiljevic"
  3. mimetype: "text/plain"
  4. username: "vasiljevic"