Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: aeca9701cd55900587681dfc8546f526fd3dbac7
Ticket: 219215ffffffffffffffffffffffffffffffffff
Memory validation failure in Tcl_FindExecutable
User & Date: msofer on 2001-09-08 20:55:02
Changes

  1. assignee changed to: "das"
  2. icomment:
    Logged In: YES 
    user_id=148712
    
    I could not find the memory error - and didn't even try to
    reproduce it. However, some remarks before passing to area
    maintainer:
    
    The wording in the docs of should be peremptory: DO NOT
    change the working directory before calling
    Tcl_FindExecutable!
    
    The code in unix/tclUnixFile.c (TclpFindExecutable) makes
    clear that whenever argv[0] contains "/", the executable
    name "found" will be rooted at the cwd *at the time of the
    call to TclpFindExecutable*. So, a wrong name will be
    returned ...
    
    Also, the algorithm of TclpFindExecutable may be improved;
    it sometimes reports "correct but very ugly" results, as
    shown in:
    
    [mig@mini generic]$ pwd
    /CVS/tcl_SF_clean/generic
    [mig@mini generic]$ ../unix/tclsh
    % info nameofexecutable
    /CVS/tcl_SF_clean/generic/../unix/tclsh
    
    
    
  3. login: "msofer"
  4. mimetype: "text/plain"
  5. subsystem changed to: "36. Pathname Management"
  6. username: "msofer"