Skip to content
Tcl Source Code History Of Ticket 218198
Login

History Of Ticket 218198

Artifacts Associated With Ticket 218198

  1. Ticket change [3933366525] (rid 112347) by nobody on 2000-10-26 00:54:24:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 2399 Bug
      Version: 8.0p2
      SubmitDate: '1999-07-19'
      LastModified: '1999-08-05'
      Severity: CRIT
      Status: Closed
      Submitter: techsupp
      ChangedBy: hobbs
      OS: Other
      Machine: NA
      FixedDate: '2000-10-25'
      ClosedDate: '1999-08-05'
      
      
      Name:
      christopher costello
      
      ReproducibleScript:
      Run any tcl application until memory is exhausted. If the #defines are
          set to use normal malloc/free, then a NULL pointer will be used in the
          (multiple) places in the tcl source where the result is not checked.
          Since memory exhaustion cannot in principle be excluded, this suggests
          that your design approach means that one must always compile with
          TCL_MEM_DEBUG or USE_TCLALLOC or risk a core. A better solution would be
          to check the return value of all mallocs at the place of call, where the
          action appropriate for recovery is knowable.
      
      
      
      Tcl does not check against the return values of mallocs because
      the philosophy is that if you are out of memory, you are screwed
      one way or the other.  To get a NULL and panic (thus aborting)
      gives you just about the same result.  Adding in all the checks
      would just cause a performance hit. 
      -- 08/05/1999 hobbs
      
    4. foundin initialized to: "obsolete: 8.0p2"
    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: "69. Other"
    10. title initialized to: "malloc returns NULL and causes core"
    11. type initialized to: "Bug"
  2. Ticket change [33ebbee93b] (rid 106674) by welch on 2000-10-26 08:16:56:

    1. closedate changed to: "2000-10-26T01:16:56"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [a8c6241bb7] (rid 99047) by dgp on 2001-04-16 20:45:16:

    1. closedate changed to: "2001-04-16T13:45:16"
    2. closer changed to: "dgp"
    3. subsystem changed to: "41. Memory Allocation"