Overview
| Artifact ID: | d44f3abbe0d0a244ff20ff788278ae3856547234 |
|---|---|
| Ticket: | 514392ffffffffffffffffffffffffffffffffff
load failures exit tclsh/wish |
| User & Date: | jkbonfield on 2002-02-07 17:46:53 |
Changes
- assignee changed to: "das"
- cmimetype changed to: "text/plain"
- comment changed to:
"load blah" where blah does not exist causes wish (using the native MacOS X build from Jim Ingham) to exit. load libblah.dylib where libblah.dylib does exist in DYLD_LIBRARY_PATH, but is not in the current directory, also fails in the same manner. Hence the user has to know the exact location of the library. The tclLoadDyld.c file contains a function named TclpLoadFile. This calls: dyld_return = NSAddLibrary(native); This function never returns - it simply exits the process. (I wonder why they bothered to put a return value on it!) Solutions: tricky.... it's possible to fork, load and send a message back to the parent. The parent can then use this to decide whether to attempt a load. This only solves one part. We'd still need to try searching for the library in all components of DYLD_LIBRARY_PATH. (I thought that the nicely named NSAddLibraryWithSearching sounded useful, but it doesn't seem to make any difference. ) - foundin changed to: "obsolete: 8.4a4"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "jkbonfield"
- subsystem changed to: "68. Mac Classic (obsolete)"
- title changed to: "load failures exit tclsh/wish"
- type changed to: "Bug"