Skip to content
Tcl Source Code History Of Ticket 224384
Login

History Of Ticket 224384

Artifacts Associated With Ticket 224384

  1. Ticket change [65b1a3f340] (rid 102594) by vincentdarley on 2000-12-04 14:53:35:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      It looks as if when the new 'AttemptAlloc' code was added, no-one tested whether Tcl 8.4 would compile with the mem debug flag enabled, even though code involving that flag was modified... ;-)
      
      There is a typo in tcl.h:
      
      #   define attemptckalloc(x) Tcl_AttempDbCkalloc(x, __FILE__, __LINE__)
      
      should be 'Attempt' not 'Attemp'
      
      and the two functions 'Tcl_AttemptDbCkrealloc' and 'Tcl_AttemptDbCkalloc' are in the '#else' rather than '#if' branch of '#if TCL_MEM_DEBUG' so they are not seen and cause link errors....
      
      
      
    4. foundin initialized to: "obsolete: 8.4a2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "vincentdarley"
    9. subsystem initialized to: ""
    10. title initialized to: "Tcl won't compile with 'TCL_MEM_DEBUG' enabled"
    11. type initialized to: "Bug"
  2. Ticket change [32694aefd0] (rid 93607) by vincentdarley on 2000-12-04 22:09:48:

    1. icomment:
      Even when I've fixed the above bugs, I can't execute anything on the command-line in tclsh, without a 'low guard failed' panic.  (However I have patched the core in various ways, so this could be my fault).  In any case, someone should try to run Tcl's test suite with TCL_MEM_DEBUG enabled.
      
      
    2. login: "vincentdarley"
    3. mimetype: "text/plain"
    4. username: "vincentdarley"
  3. Ticket change [b0d72e38d7] (rid 98046) by nobody on 2000-12-06 19:01:43:

    1. icomment:
      Fixing the typo above, and adding the following two functions to the first half (the '#if' not '#else' half) of tclCkalloc.c will allow Tcl to work again.
      
      char *
      Tcl_AttemptDbCkrealloc(ptr, size, file, line)
          char *ptr;
          unsigned int size;
          char *file;
          int line;
      {
          char *result;
      
          result = (char *) Tcl_DbCkrealloc(ptr, size, file, line);
          return result;
      }
      char *
      Tcl_AttemptDbCkalloc(size, file, line)
          unsigned int size;
          char        *file;
          int          line;
      {
          char *result;
      
          result = (char *) Tcl_DbCkalloc(size, file, line);
          return result;
      }
      
      
      
    2. login: "nobody"
    3. mimetype: "text/plain"
    4. username: "nobody"
  4. Ticket change [7ae867aacc] (rid 90422) by ericm on 2000-12-07 04:27:54:

    1. assignee changed to: "ericm"
    2. closedate changed to: "2000-12-06T21:27:54"
    3. closer changed to: "ericm"
    4. icomment:
      Thanks for pointing out this oversight.  I fixed the typo and added TCL_MEM_DEBUG versions of the functions Tcl_AttemptDbCkalloc and Tcl_AttemptDbCkrealloc, based on the TCL_MEM_DEBUG versions of Tcl_DbCkalloc and Tcl_DbCkrealloc (rather than copying the non-TCL_MEM_DEBUG versions as suggested in another comment, since those versions did not have the extra bits needed to provide the memory debugging facilities).
      
      This fix is checked in to the CVS repository, and will go out with Tcl 8.4a3.
      
      Eric Melski
      The Other Tcl Guy
      Interwoven, Inc.
      ericm at interwoven.com
      
      
    5. login: "ericm"
    6. mimetype: "text/plain"
    7. priority changed to: "8"
    8. resolution changed to: "Fixed"
    9. status changed to: "Closed"
    10. subsystem changed to: "75. Tutorial"
    11. username: "ericm"
  5. Ticket change [de62ce3520] (rid 114838) by dgp on 2001-04-05 06:52:44:

    1. closedate changed to: "2001-04-04T23:52:44"
    2. closer changed to: "dgp"
    3. subsystem changed to: "53. Configuration and Build Tools"