Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

determine_executable_name doesn't do the job for FreeBSD #38

Closed
xrme opened this issue May 13, 2017 · 1 comment
Closed

determine_executable_name doesn't do the job for FreeBSD #38

xrme opened this issue May 13, 2017 · 1 comment
Labels

Comments

@xrme
Copy link
Member

xrme commented May 13, 2017

The function determine_executable_name() in the lisp kernel is supposed to return the full path to the running lisp kernel executable.

This function uses various system-specific ways to do this, depending on what the platform the lisp kernel is being compiled for. Unfortunately, the bit of code for FreeBSD doesn't do the job. It essentially just calls realpath(3) on the value of argv[0].

To see why this is inadequate:

$ ./fx86cl64
? (save-application "magic" :prepend-kernel t)
$ cp magic ~/bin    # or some other place in your path
$ cd /
$ magic
Couldn't load lisp heap image from magic.image: No such file or directory

This problem was discovered in dimitri/pgloader#551

@xrme
Copy link
Member Author

xrme commented May 13, 2017

Also merged to the 1.11 branch in fa63981

@xrme xrme closed this as completed May 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant