Tcl Source Code

View Ticket
Login
Ticket UUID: 678443
Title: main.test crashes if wd contains space
Type: Bug Version: obsolete: 8.4.1
Submitter: kennykb Created on: 2003-01-31 22:56:44
Subsystem: 37. File System Assigned To: vincentdarley
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2003-02-05 00:39:28
Resolution: Fixed Closed By: vincentdarley
    Closed on: 2003-02-04 17:39:28
Description:
Win2000, WinXP:

If (and only if!) main.test is run in a working directory whose path name
contains whitespace, a crash results in four test cases: 

Tcl_Main-2.3, Tcl_Main-3.7, Tcl_Main-3.8, Tcl_Main-6.2

The problem appears to be that TclWinFilesystemAndEncodingsCleanup
is freeing binaryEncoding twice.

I suspect that the reason we come here when the path name contains
a space is that [interpreter] needs to be [list [interpreter]] in the [exec]
command in these four tests, but I have yet to verify that. I'll follow up
on this bug.
User Comments: vincentdarley added on 2003-02-05 00:39:28:
Logged In: YES 
user_id=32170

All main.test tests pass for me now (with space in wd). 
Also no crash.

kennykb added on 2003-02-01 06:05:45:
Logged In: YES 
user_id=99768

Omitted some of the failing tests.  The full set is Tcl_Main-

2.3 2.4 3.8 5.9 6.2 7.1 7.2

Stack trace is the same on all seven.

kennykb added on 2003-02-01 06:01:44:
Logged In: YES 
user_id=99768

Tried the hunch about [list [interpreter]] - but it makes no difference to the result.

kennykb added on 2003-02-01 05:58:04:

File Added - 41206: main.stacktrace.txt

Attachments: