Skip to content
Tcl Source Code History Of Ticket 1789767
Login

History Of Ticket 1789767

Artifacts Associated With Ticket 1789767

  1. Ticket change [70598cb541] (rid 100467) by simps05192 on 2007-09-06 23:18:31:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      I checked out the latest Tcl out of CVS as of 2007-09-06 and then linked the following program against it:
      
      #include <tcl.h>
      
      int Tcl_AppInit(Tcl_Interp* interp)
      {
          if (Tcl_Init(interp) == TCL_ERROR) {
              return TCL_ERROR;
          }
      
          return TCL_OK;
      }
      
      int main(int argc, char* argv[])
      {
          Tcl_Main(argc, argv, Tcl_AppInit);
          return 0;
      }
      
      I then ran "valgrind --leak-check=full mytclsh" against it and I get the following spurious free:
      
      ==32498== Invalid free() / delete / delete[]
      ==32498==    at 0x43CF338: free (vg_replace_malloc.c:233)
      ==32498==    by 0x636A7BB: free_mem (in /lib/tls/libc-2.3.4.so)
      ==32498==    by 0x636A1E1: __libc_freeres (in /lib/tls/libc-2.3.4.so)
      ==32498==    by 0x43C6355: _vgnU_freeres (vg_preloaded.c:60)
      ==32498==    by 0x62EE903: _Exit (in /lib/tls/libc-2.3.4.so)
      ==32498==    by 0x4430661: Tcl_Exit (in /home/simpsons/tcl/unix/libtcl8.5.so)
      ==32498==    by 0x43FEC21: Tcl_ExitObjCmd (in /home/simpsons/tcl/unix/libtcl8.5.so)
      ==32498==    by 0x43F7233: TclEvalObjvInternal (in /home/simpsons/tcl/unix/libtcl8.5.so)
      ==32498==    by 0x4434C50: TclExecuteByteCode (in /home/simpsons/tcl/unix/libtcl8.5.so)
      ==32498==    by 0x443B6FE: TclCompEvalObj (in /home/simpsons/tcl/unix/libtcl8.5.so)
      ==32498==    by 0x43F873A: TclEvalObjEx (in /home/simpsons/tcl/unix/libtcl8.5.so)
      ==32498==    by 0x43F8A64: Tcl_EvalObjEx (in /home/simpsons/tcl/unix/libtcl8.5.so)
      ==32498==  Address 0x45C7008 is not stack'd, malloc'd or (recently) free'd
      
      
    4. foundin initialized to: "obsolete: 8.5a7"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "simps05192"
    10. subsystem initialized to: "41. Memory Allocation"
    11. title initialized to: "Invalid free in Tcl core"
    12. type initialized to: "Bug"
  2. Ticket change [2d9e36b769] (rid 119093) by msofer on 2007-09-08 03:50:09:

    1. icomment:
      Logged In: YES 
      user_id=148712
      Originator: NO
      
      This looks like a problem in libc's exit(), not in Tcl.
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  3. Ticket change [aa19a28ced] (rid 99267) by hobbs on 2007-09-11 07:33:53:

    1. closedate changed to: "2007-09-11T00:33:53"
    2. closer changed to: "hobbs"
    3. resolution changed to: "Invalid"
    4. status changed to: "Pending"
  4. Ticket change [e12df18b79] (rid 87405) by sf-robot on 2007-09-25 09:20:05:

    1. closedate changed to: "2007-09-25T02:20:05"
    2. closer changed to: "sf-robot"
    3. icomment:
      Logged In: YES 
      user_id=1312539
      Originator: NO
      
      This Tracker item was closed automatically by the system. It was
      previously set to a Pending status, and the original submitter
      did not respond within 14 days (the time period specified by
      the administrator of this Tracker).
      
      
    4. login: "sf-robot"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "sf-robot"