Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2a3e7368aee79622a3587b14a1e79901ddd2c62e
Ticket: 218643ffffffffffffffffffffffffffffffffff
Tcl_Finalize unloads library before executing callbacks
User & Date: nobody on 2000-10-26 01:03:37
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. 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 -
    
    
    
  4. foundin changed to: "obsolete: 8.1b2"
  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_Finalize unloads library before executing callbacks
    
  11. type changed to: "Bug"