Tcl_DumpActiveMemory() may close stdout (NULL) file descript
Closed / Fixed218500ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:01:22
OriginalBugID: 725 Bug Version: 8.0.3 SubmitDate: '1998-10-13' LastModified: '1999-09-16' Severity: SER Status: Released Submitter: admin ChangedBy: hobbs OS: All OSVersion: NA Machine: NA FixedDate: '1999-09-16' FixedInVersion: 8.2.2 ClosedDate: '2000-10-25' >While checking on procedures for debugging output, quite by chance I >happened to look at the 8.1a2 source of Tcl_DumpActiveMemory(), and I >think it has a bug: at the top, it considers a NULL filename pointer to >mean stdout, but at the bottom, it closes any file descriptor which isn't >stderr! I would think that those two bits of code need to agree on which >file descriptor they're operating on... This is still the case in 8.2.0. See Tcl_DumpActiveMemory in tclCkalloc.c for the problem. Was stdout or stderr intended? -- 08/14/1999 hobbs Changed to stderr, as intended from comment docs. -- 09/16/1999 hobbs
welch Closed ticket [218500ffff].
[History diff]2000-10-26 08:23:18
dgp Ticket [218500ffff]: 3 changes
[History diff]2001-04-14 02:27:50
Log in (anonymous is fine) to add a comment.