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

Order dependent crash with precompile in 0.4.3 #14663

Closed
mdcfrancis opened this issue Jan 13, 2016 · 3 comments
Closed

Order dependent crash with precompile in 0.4.3 #14663

mdcfrancis opened this issue Jan 13, 2016 · 3 comments
Labels
compiler:precompilation Precompilation of modules

Comments

@mdcfrancis
Copy link

Reproduction, in a clean Julia 0.4.3 install

Pkg.generate("Foo", "MIT" )
Pkg.generate("Bar", "MIT" )

edit Foo.jl to

 __precompile__()
 module Foo
 using Bar
 # package code goes here
 end # module

now do

using Bar
...
using Foo
...
  WARNING: Module Bar uuid did not match cache file
  ERROR: __precompile__(true) but require failed to create a precompiled cache file
   in require at ./loading.jl:257

clean the lib directory

using Foo
using Bar 

all good, exit come back in

using Bar
using Foo

all good

@yuyichao
Copy link
Contributor

Dup of #13200

@yuyichao
Copy link
Contributor

The repro looks interesting. Will check if it is more deterministic.

@tkelman tkelman added the compiler:precompilation Precompilation of modules label Jan 13, 2016
@mdcfrancis
Copy link
Author

This repro happens 100% of the time and is just a few lines of code. The issue is specifically caused by a child module not having precompile() in a module which does.

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

No branches or pull requests

3 participants