Artifacts Associated With Ticket 218198
Ticket change [3933366525] (rid 112347) by nobody on 2000-10-26 00:54:24:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- 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 - foundin initialized to: "obsolete: 8.0p2"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "69. Other"
- title initialized to: "malloc returns NULL and causes core"
- type initialized to: "Bug"
Ticket change [33ebbee93b] (rid 106674) by welch on 2000-10-26 08:16:56:
- closedate changed to: "2000-10-26T01:16:56"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [a8c6241bb7] (rid 99047) by dgp on 2001-04-16 20:45:16:
- closedate changed to: "2001-04-16T13:45:16"
- closer changed to: "dgp"
- subsystem changed to: "41. Memory Allocation"