Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4e95ff1ab14b80598f8253bfeb3485688756ef2a
Ticket: 218490ffffffffffffffffffffffffffffffffff
crash if $foo is not an existing file in
User & Date: nobody on 2000-10-26 01:01:13
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 708 Bug
    Version: 8.0.3
    SubmitDate: '1998-10-13'
    LastModified: '1999-04-16'
    Severity: SER
    Status: Released
    Submitter: admin
    ChangedBy: stanton
    OS: All Windows
    OSVersion: NA
    Machine: NA
    FixedDate: '1999-04-19'
    FixedInVersion: 8.1
    ClosedDate: '2000-10-25'
    
    
    The following command crashes on WinNT and win95 with Tcl8.0.3
    
    file attributes "" -longname
    
    Same bug on Windows95 for -longname and -shortname.
    
    The other options { -archive -hidden -readonly -system } give the correct error report:
    
    % file attributes "" -readonly 
    cannot get attribute "-readonly" for file "": no such file or directory
    
    One workaround could be to test if file exists.
    
    
    
    on 8.1b3 the command does not crash, but it also does not give an error.
    
    The actual bug may be masked by code changes, but it may crash in the future if code changes sufficiently for the bug to reemerge.  This should be investigated and fixed.
    04/16/1999 14:00 - stanton -
    
    4/19/99 - redman - (8.1) The code that would have crashed is in a for loop looping on the number of elements in the path, which is zero.  I added a check for the number of elements and return an error code if zero.
    
    
    
  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: "crash if $foo is not an existing file in"
  11. type changed to: "Bug"