Artifacts Associated With Ticket 218014
Ticket change [47b919e0ed] (rid 99752) by nobody on 2000-10-26 00:52:11:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 922 Bug Version: 8.0.4 SubmitDate: '1998-12-04' LastModified: '1999-02-02' Severity: MED Status: Closed Submitter: welch ChangedBy: stanton OS: All OSVersion: NA Machine: NA FixedDate: '2000-10-25' FixedInVersion: 8.0.5 ClosedDate: '1999-02-02' Some time around April I had let you know that we were experiencing a core dump with TCL8.0P2 when any of the standard I/O streams were not open at startup. At that time I was able to reproduce it on both HP-UX and Linux. I have retested for the problem with TCL8.0.4 and, while it is no longer occurring on Linux, it is still occurring on HP-UX. This, perhaps, means that a fix was made, but not in a general enough place. I looked into the TCL source this morning, and was able to find the problem and code an easy resolution to it. "tclGetDefaultStdChannel", in "tclUnixChan.c", calls "Tcl_MakeFileChannel" which is returning "NULL". It then, without checking for "NULL", calls "Tcl_SetChannelOption" twice, the first time to set "translation", and the second time to set "buffering". It is this latter call, i.e. the one which sets "buffering", which crashes. For some reason (which I have yet to determine), the earlier "lseek", which is supposed to protect against this possibility, is returning 0 rather than -1. The following patch, which you are entirely welcome to plagerize, fixes the problem. We would appreciate it very much if some incantation of it would eventually make it into the production stream. Patch on the web database. 02/02/1999 10:59 - stanton - A similar patch was applied at some point in 8.0.5. This is no longer a bug.
- foundin initialized to: "obsolete: 8.0.4"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "62. (unused)"
- title initialized to: "closed standard channels cause core dump"
- type initialized to: "Bug"
Ticket change [daba9f3c9e] (rid 107846) by welch on 2000-10-26 08:12:12:
- closedate changed to: "2000-10-26T01:12:12"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [c63e57cadd] (rid 121736) by dgp on 2001-04-03 07:44:00:
- closedate changed to: "2001-04-03T00:44:00"
- closer changed to: "dgp"
- subsystem changed to: "27. Channel Types"