Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2000-10-26
08:23 • Closed ticket [218490ffff]: crash if $foo is not an existing file in plus 4 ... artifact: cc681dba99 user: welch
01:01 • New ticket [218490ffff]. artifact: 4e95ff1ab1 user: nobody

crash if $foo is not an existing file in

Closed / Fixed218490ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:01:13
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.
welch Closed ticket [218490ffff]. [History diff]2000-10-26 08:23:17
Log in (anonymous is fine) to add a comment.