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

RaptorJIT load: follows symlinks recursively and loads same audit.log multiple times #142

Open
eugeneia opened this issue Mar 8, 2019 · 1 comment
Labels

Comments

@eugeneia
Copy link
Contributor

eugeneia commented Mar 8, 2019

In case of named Snabb programs their SHM directories contain a name symlink that leads to the same directory. When pointing RaptorJIT load: at such a SHM directory it will try to load the audit.log ten times instead of only once.

Possibly we should either not follow symlinks at all or somehow detect if we attempt to load the same audit.log and avoid that.

@lukego lukego added the bug label Mar 8, 2019
@lukego
Copy link
Contributor

lukego commented Mar 22, 2019

Had a first attempt at fixing this but the primitive FileReference>>isSymlink doesn't seem to be working. Could be a build issue with the VM. Have to resolve that first methinks.

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

2 participants