Overview
| Artifact ID: | fdc5aa5bc1656c20a5a6b88a616bae7321ccdddf |
|---|---|
| Ticket: | 642280ffffffffffffffffffffffffffffffffff
Crash on Win2000 with 'source' command |
| User & Date: | nobody on 2002-11-22 13:40:27 |
Changes
- assignee changed to: "vincentdarley"
- cmimetype changed to: "text/plain"
- comment changed to:
In some ( rare, but it's repeatable ) case 'source' command crashes system with message 'Can't execute address 0'. I have TCL 8.4.1 built by myself, Win2000 Professional OS. This error didn't occur in TCL 8.3.4. TCL is used as embedded interpreter in multithreaded application ( compiled with thread protect ). I tracked this bug a bit and found out that this happens in file tclWinFile.c, line 2095 ( or about that ): if ((*tclWinProcs->getFileAttributesExProc)(nativePath, GetFileExInfoStandard, &data) != TRUE) { /* File doesn't exist */ Tcl_DStringFree(&ds); break; } This field ( getFileAttributesExProc ) is NULL, so calling to it crashes system. Placing protection if( ... != NULL ) helps to avoid crash but results in 'source' command fail. - foundin changed to: "obsolete: 8.4.1"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "37. File System"
- title changed to: "Crash on Win2000 with 'source' command"
- type changed to: "Bug"