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

Race condition with package precompile #17320

Closed
davidanthoff opened this issue Jul 7, 2016 · 4 comments
Closed

Race condition with package precompile #17320

davidanthoff opened this issue Jul 7, 2016 · 4 comments
Labels
compiler:precompilation Precompilation of modules parallelism Parallel or distributed computation

Comments

@davidanthoff
Copy link
Contributor

I have a situation where multiple julia instances might trigger precompilation of the same packages. If that happens, errors occur because the various julia instances try to write to the same precompile file at the same time. This is on a single machine.
#13684 describes a similar issue, but I'm opening a new issue here because the solutions suggested for #13684 won't work for my case: having a machine local precompile location would solve #13684 but not my issue here.

My wild guess is that to fix this problem, #7176 would have to be resolved.

@tkelman tkelman added the compiler:precompilation Precompilation of modules label Jul 7, 2016
@stevengj
Copy link
Member

stevengj commented Jul 7, 2016

See #5622: libgit2 provides a cross-platform locking mechanism.

@ckoe-bccms
Copy link

Hello.

I believe I might be seeing this or a related problem when using the same module in a main program and another module, see discourse for the unfortunately long story. Of course it might be that my module loading is messed up, but then the error message is not clear to me.

@stevengj
Copy link
Member

@ckoe-bccms, this issue is about running multiple julia programs simultaneously, whereas your problem seems to involve a single julia instance, and hence is unrelated.

@simonbyrne
Copy link
Contributor

Should be fixed by #36416.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:precompilation Precompilation of modules parallelism Parallel or distributed computation
Projects
None yet
Development

No branches or pull requests

7 participants