Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d44f3abbe0d0a244ff20ff788278ae3856547234
Ticket: 514392ffffffffffffffffffffffffffffffffff
load failures exit tclsh/wish
User & Date: jkbonfield on 2002-02-07 17:46:53
Changes

  1. assignee changed to: "das"
  2. cmimetype changed to: "text/plain"
  3. 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. 
    )
    
    
  4. foundin changed to: "obsolete: 8.4a4"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "jkbonfield"
  9. subsystem changed to: "68. Mac Classic (obsolete)"
  10. title changed to: "load failures exit tclsh/wish"
  11. type changed to: "Bug"