|
2001-04-17
| ||
| 05:42 | • Ticket [218643ffff] Tcl_Finalize unloads library before executing callbacks ... artifact: 5d7499d589 user: dgp | |
|
2000-10-26
| ||
| 08:26 | • Closed ticket [218643ffff]. artifact: 2aaab76e26 user: welch | |
| 01:03 | • New ticket [218643ffff]. artifact: 2a3e7368ae user: nobody | |
Tcl_Finalize unloads library before executing callbacks
Closed / Fixed218643ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:03:37
OriginalBugID: 1573 Bug
Version: 8.1b2
SubmitDate: '1999-03-22'
LastModified: '1999-03-30'
Severity: MED
Status: Released
Submitter: pat
ChangedBy: stanton
RelatedBugIDs: 988 1273 1573 1593
OS: HP-UX
OSVersion: 10.20
Machine: Other
FixedDate: '1999-03-30'
FixedInVersion: 8.1b3
ClosedDate: '2000-10-25'
Name:
Kåre Sjölander
Extensions:
Snack
ReproducibleScript:
package require snack
pack [canvas .c]
.c create waveform 0 0
exit
ObservedBehavior:
If a custom canvas item type (defined in a shared library) is currently
drawn in a canvas, wish will core dump if the exit command is executed.
Tcl_Finalize calls TclpUnloadFile on the shared library which defines
the item type. Later DeleteWindowsExitProc() calls DestroyCanvas() which
in turn calls (*itemPtr->typePtr->deleteProc) for all drawn objects.
Only, this function is in the library which was unloaded. This is
because CreateTopLevelWindow() registers it's exit handler before the
one Tcl_LoadObjCmd registers.
DesiredBehavior:
Proper clean-up.
Finalization related. Related bug IDs 988 1273 1573 & 1593. 03/23/1999 19:29 - surles -
Deferred finalization of load subsystem until after all exit handlers have been invoked. 03/30/1999 14:18 - stanton -
welch Closed ticket [218643ffff].
[History diff]2000-10-26 08:26:10
dgp Ticket [218643ffff]: 3 changes
[History diff]2001-04-17 05:42:21
Log in (anonymous is fine) to add a comment.