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

addprocs breaks Base.compile/import? #12413

Closed
stevengj opened this issue Jul 31, 2015 · 3 comments
Closed

addprocs breaks Base.compile/import? #12413

stevengj opened this issue Jul 31, 2015 · 3 comments
Labels
compiler:precompilation Precompilation of modules

Comments

@stevengj
Copy link
Member

I encountered the following when testing #12302. Create a file FooBar.jl containing

module FooBar
end

and then execute:

addprocs(1)
Base.compile(:FooBar)
eval(Main, :(import FooBar))

and you get the error:

fatal error on 2: ERROR: cannot serialize a pointer
 in serialize at serialize.jl:105
 in serialize at serialize.jl:414
 in send_msg_ at multi.jl:222
 in send_msg_now at multi.jl:173
 in deliver_result at multi.jl:833
 in anonymous at task.jl:922
Worker 2 terminated.ERROR: LoadError: ProcessExitedException()
 in yieldto at ./task.jl:74
 in wait at ./task.jl:370
 in wait at ./task.jl:285
 in wait_full at ./multi.jl:631
 in remotecall_fetch at multi.jl:743
 in call_on_owner at ./multi.jl:790
 in fetch at multi.jl:798
 in _require_from_serialized at loading.jl:75
 in _require_from_serialized at ./loading.jl:93
 in require at ./loading.jl:122
 in include at ./boot.jl:254
 in include_from_node1 at ./loading.jl:200
 in process_options at ./client.jl:308
 in _start at ./client.jl:411
while loading /Users/stevenj/Code/julia/compilebug.jl, in expression starting on line 3

Deleting addprocs eliminates the error.

cc: @vtjnash

@stevengj stevengj added the compiler:precompilation Precompilation of modules label Jul 31, 2015
@timholy
Copy link
Sponsor Member

timholy commented Jul 31, 2015

Possibly related to #12381?

@stevengj
Copy link
Member Author

Wait, now I can't reproduce on master. Maybe it was only on my #12302 branch? Closing this unless I can make it occur on master.

@stevengj
Copy link
Member Author

Okay, it was a bug in my #12302 branch. False alarm.

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

2 participants