Tcl_DeleteExitHandler() fails to release exitMutex
Closed / Fixed218985ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:08:57
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
welch Closed ticket [218985ffff].
[History diff]2000-10-26 08:33:07
dgp Ticket [218985ffff]: 3 changes
[History diff]2001-04-19 04:40:59
Log in (anonymous is fine) to add a comment.