Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 474175bc102c580f21e573fbad9e52f6d6d47bef
Ticket: 218500ffffffffffffffffffffffffffffffffff
Tcl_DumpActiveMemory() may close stdout (NULL) file descript
User & Date: nobody on 2000-10-26 01:01:22
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    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
    
  4. foundin changed to: "obsolete: 8.0.3"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "37. File System"
  10. title changed to:
    Tcl_DumpActiveMemory() may close stdout (NULL) file descript
    
  11. type changed to: "Bug"