Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 08ef4e99ee7506c767a26ec1a3003efd08128bfc
Ticket: 218985ffffffffffffffffffffffffffffffffff
Tcl_DeleteExitHandler() fails to release exitMutex
User & Date: nobody on 2000-10-26 01:08:57
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 3545 Bug
    Version: 8.2.2
    SubmitDate: '1999-11-11'
    LastModified: '1999-11-11'
    Severity: MED
    Status: Released
    Submitter: techsupp
    ChangedBy: hobbs
    OS: All
    OSVersion: 8.2.0, 8.2.1, 8.2.2
    Machine: any
    FixedDate: '1999-11-11'
    FixedInVersion: 8.2.3
    ClosedDate: '2000-10-25'
    
    
    Name:
    
    Zoran Vasiljevic
    
    
    ReproducibleScript:
    
    The Tcl_DeleteExitHandler() in generic/TclEvent.c fails to release exitMutex if not able to
    
    find passed exit proc and its client data. This results in Tcl unable to properly exit.
    
    To reproduce: 
    
    Register an exit procedure within an extension. 
    
    Start tclsh, load extension, exit (-> blocks undefinitely)
    
    
    Patch:
    
    *** tclEvent.c  Fri Apr 23 03:57:08 1999
    
    --- tclEvent.c.new      Wed Nov 10 10:56:07 1999
    
    ***************
    
    *** 453,463 ****
    
                } else {
    
                    prevPtr->nextPtr = exitPtr->nextPtr;
    
                }
    
    -           Tcl_MutexUnlock(&exitMutex);
    
                ckfree((char *) exitPtr);
    
    !           return;
    
            }
    
          }
    
      }
    
      ^L
    
      /*
    
    --- 453,464 ----
    
                } else {
    
                    prevPtr->nextPtr = exitPtr->nextPtr;
    
                }
    
                ckfree((char *) exitPtr);
    
    !           break;
    
            }
    
          }
    
    +     Tcl_MutexUnlock(&exitMutex);
    
    +     return;
    
      }
    
      ^L
    
      /*
    
    
    PatchFiles:
    
    tclEvent.c
    
    
    
    
    fixed in 8.3b1. 
    -- 11/11/1999 hobbs
    
  4. foundin changed to: "obsolete: 8.2.2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to: "Tcl_DeleteExitHandler() fails to release exitMutex"
  11. type changed to: "Bug"