Overview
| Artifact ID: | 2a3e7368aee79622a3587b14a1e79901ddd2c62e |
|---|---|
| Ticket: | 218643ffffffffffffffffffffffffffffffffff
Tcl_Finalize unloads library before executing callbacks |
| User & Date: | nobody on 2000-10-26 01:03:37 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
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 - - foundin changed to: "obsolete: 8.1b2"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "69. Other"
- title changed to:
Tcl_Finalize unloads library before executing callbacks
- type changed to: "Bug"