Skip to content
Tcl Source Code History Of Ticket 590969ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 590969ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 590969ffffffffffffffffffffffffffffffffff

  1. Ticket change [3865b81cbb] (rid 112203) by nobody on 2002-08-05 06:06:45:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized 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 initialized to: "obsolete: 8.4b1"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "42. Memory Preservation"
    10. title initialized to: "crash in Tcl_DeleteHashEntry( 0 )"
    11. type initialized to: "Bug"
  2. Ticket change [3a670726e5] (rid 112558) by nobody on 2002-08-05 13:07:51:

    1. icomment:
      Logged In: NO 
      
      posted by [email protected]
      
      
    2. login: "nobody"
    3. mimetype: "text/plain"
    4. username: "nobody"
  3. Ticket change [6a9bc9fad7] (rid 128183) by dkf on 2002-08-05 17:55:18:

    1. assignee changed to: "dkf"
    2. closedate changed to: "2002-08-05T10:55:18"
    3. closer changed to: "dkf"
    4. icomment:
      Logged In: YES 
      user_id=79902
      
      This is a Tk bug (NULL shouldn't ever be passed to
      Tcl_DeleteHashEntry(), because it should never be returned
      by Tcl_CreateHashEntry(), and only ever returned by
      Tcl_FindHashEntry() to indicate that no entry was found.)
      Please refile there, preferably with some code to let us
      reproduce the bug in a standard (or minimally-modified)
      Tcl/Tk shell.
      
      
    5. login: "dkf"
    6. mimetype: "text/plain"
    7. resolution changed to: "Invalid"
    8. status changed to: "Closed"
    9. username: "dkf"