Skip to content
Tcl Source Code History Of Ticket 219012
Login

History Of Ticket 219012

Artifacts Associated With Ticket 219012

  1. Ticket change [32d512be5b] (rid 93688) by nobody on 2000-10-26 01:09:18:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 3911 Bug
      Version: 8.2
      SubmitDate: '1999-12-21'
      LastModified: '2000-03-31'
      Severity: SER
      Status: Released
      Submitter: techsupp
      ChangedBy: ericm
      OS: Linux
      Machine: IBM PC/AT compatible
      FixedDate: '2000-03-31'
      FixedInVersion: 8.3.1
      ClosedDate: '2000-10-25'
      
      
      Name:
      Hiroshi Kasai
      
      CustomShell:
      JP patch
      
      Comments:
      Precisely, I found this bug in tcl7.6. But, it is same as in tcl8.2.
      
      If you use a function 'exec' or 'open "|..."', tcl calls a function 'tmpnam'. This function has a limitation.
      It is defined in stdio.h as
      #define TMP_MAX 238328
      This is a maximum number of calls for the function 'tmpnam'.
      If it gets over, the function returns NULL. But, the function is used as
      
      char fileName[L_tmpnam]; 
      
      tmpnam(fileName); 
      
      The 'fileName' is local variable. So, if 'tmpnam' returned NULL, 'fileName' value is not changed.
      And more, the variable is not initialized because it is local,
      Nothing happens if it is lucky.An error is indicated if it has bad luck a little.
      When it is the worst, if the variable has a exist file name, the file is destroyed.
      It is to redirect standard error output specifically to avoid this.
      
      ReproducibleScript:
      open "|command"
      exec command
      
      ObservedBehavior:
      couldn't create error file : no such file or directory
      
      
      
      Thanks for pointing this out.  I added a test for a NULL return from tmpnam, which will solve this problem on Linux and should be non-harmful on other UNIX (Solaris and HP-UX both follow a different convention when TMP_MAX is exceeded).  This fix will go out with 8.3.1.
      
      - eric
      
      -- 03/31/2000 ericm
      
      
      
    4. foundin initialized to: "obsolete: 8.2"
    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: "60. NRE and coroutines"
    10. title initialized to: "tmpnam limitation"
    11. type initialized to: "Bug"
  2. Ticket change [13829f4e42] (rid 124232) by welch on 2000-10-26 08:33:09:

    1. closedate changed to: "2000-10-26T01:33:09"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [616cd0e14f] (rid 92241) by dgp on 2001-04-05 08:20:12:

    1. closedate changed to: "2001-04-05T01:20:12"
    2. closer changed to: "dgp"
    3. subsystem changed to: "27. Channel Types"