Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3865b81cbb2a6fe1f9419e7e9550960a61f346a7
Ticket: 590969ffffffffffffffffffffffffffffffffff
crash in Tcl_DeleteHashEntry( 0 )
User & Date: nobody on 2002-08-05 06:06:45
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    I'm running 8.4b1 on PC win-32, using C interface.
    
    As result of some tcl stuff, it gets into 
    Tcl_DeleteHashEntry(), with 0 as the arg, and crashes. 
    
    In my opinion the function should check the pointer and 
    return if zero, because it's very easy to do and the 
    function is a void anyway, so the caller isn't depending 
    on a nice return. 
    
    Anyway, I inserted these lines:
    void
    Tcl_DeleteHashEntry(entryPtr)
        Tcl_HashEntry *entryPtr;
    {
            // jesse
        if( !entryPtr )
            return;
    
    
    
    On exit from my app, I call Tcl_Finalize(). This is the 
    callstack:
    Tcl_DeleteHashEntry(Tcl_HashEntry * 0x00000000)
    Tk_DestroyWindow(Tk_Window_ * 0x011a8720)
    Tk_DestroyWindow(Tk_Window_ * 0x0116d8f0)
    Tk_DestroyWindow(Tk_Window_ * 0x003c4508)
    Tk_DestroyWindow(Tk_Window_ * 0x0106b270)
    DeleteWindowsExitProc(void * 0x00000000)
    Tcl_Finalize() line 790 + 12 bytes
    
    
    thanks -
     jesse
    
  4. foundin changed to: "obsolete: 8.4b1"
  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: "42. Memory Preservation"
  10. title changed to: "crash in Tcl_DeleteHashEntry( 0 )"
  11. type changed to: "Bug"