Overview
| Artifact ID: | aeca9701cd55900587681dfc8546f526fd3dbac7 |
|---|---|
| Ticket: | 219215ffffffffffffffffffffffffffffffffff
Memory validation failure in Tcl_FindExecutable |
| User & Date: | msofer on 2001-09-08 20:55:02 |
Changes
- assignee changed to: "das"
- 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
- login: "msofer"
- mimetype: "text/plain"
- subsystem changed to: "36. Pathname Management"
- username: "msofer"