Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: fdc5aa5bc1656c20a5a6b88a616bae7321ccdddf
Ticket: 642280ffffffffffffffffffffffffffffffffff
Crash on Win2000 with 'source' command
User & Date: nobody on 2002-11-22 13:40:27
Changes

  1. assignee changed to: "vincentdarley"
  2. cmimetype changed to: "text/plain"
  3. 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.
    
    
    
  4. foundin changed to: "obsolete: 8.4.1"
  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 on Win2000 with 'source' command"
  11. type changed to: "Bug"