{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/12413","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/12413/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/12413/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/12413/events","html_url":"https://github.com/JuliaLang/julia/issues/12413","id":98417631,"number":12413,"title":"addprocs breaks Base.compile/import?","user":{"login":"stevengj","id":2913679,"avatar_url":"https://avatars.githubusercontent.com/u/2913679?v=3","gravatar_id":"","url":"https://api.github.com/users/stevengj","html_url":"https://github.com/stevengj","followers_url":"https://api.github.com/users/stevengj/followers","following_url":"https://api.github.com/users/stevengj/following{/other_user}","gists_url":"https://api.github.com/users/stevengj/gists{/gist_id}","starred_url":"https://api.github.com/users/stevengj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevengj/subscriptions","organizations_url":"https://api.github.com/users/stevengj/orgs","repos_url":"https://api.github.com/users/stevengj/repos","events_url":"https://api.github.com/users/stevengj/events{/privacy}","received_events_url":"https://api.github.com/users/stevengj/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JuliaLang/julia/labels/precompile","name":"precompile","color":"fad8c7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-31T15:50:46Z","updated_at":"2015-07-31T15:57:28Z","closed_at":"2015-07-31T15:57:28Z","body":"I encountered the following when testing #12302.  Create a file `FooBar.jl` containing\r\n```jl\r\nmodule FooBar\r\nend\r\n```\r\nand then execute:\r\n```jl\r\naddprocs(1)\r\nBase.compile(:FooBar)\r\neval(Main, :(import FooBar))\r\n```\r\nand you get the error:\r\n```\r\nfatal error on 2: ERROR: cannot serialize a pointer\r\n in serialize at serialize.jl:105\r\n in serialize at serialize.jl:414\r\n in send_msg_ at multi.jl:222\r\n in send_msg_now at multi.jl:173\r\n in deliver_result at multi.jl:833\r\n in anonymous at task.jl:922\r\nWorker 2 terminated.ERROR: LoadError: ProcessExitedException()\r\n in yieldto at ./task.jl:74\r\n in wait at ./task.jl:370\r\n in wait at ./task.jl:285\r\n in wait_full at ./multi.jl:631\r\n in remotecall_fetch at multi.jl:743\r\n in call_on_owner at ./multi.jl:790\r\n in fetch at multi.jl:798\r\n in _require_from_serialized at loading.jl:75\r\n in _require_from_serialized at ./loading.jl:93\r\n in require at ./loading.jl:122\r\n in include at ./boot.jl:254\r\n in include_from_node1 at ./loading.jl:200\r\n in process_options at ./client.jl:308\r\n in _start at ./client.jl:411\r\nwhile loading /Users/stevenj/Code/julia/compilebug.jl, in expression starting on line 3\r\n```\r\nDeleting `addprocs` eliminates the error.\r\n\r\ncc: @vtjnash "},"comment":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/comments/126733671","html_url":"https://github.com/JuliaLang/julia/issues/12413#issuecomment-126733671","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/12413","id":126733671,"user":{"login":"stevengj","id":2913679,"avatar_url":"https://avatars.githubusercontent.com/u/2913679?v=3","gravatar_id":"","url":"https://api.github.com/users/stevengj","html_url":"https://github.com/stevengj","followers_url":"https://api.github.com/users/stevengj/followers","following_url":"https://api.github.com/users/stevengj/following{/other_user}","gists_url":"https://api.github.com/users/stevengj/gists{/gist_id}","starred_url":"https://api.github.com/users/stevengj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevengj/subscriptions","organizations_url":"https://api.github.com/users/stevengj/orgs","repos_url":"https://api.github.com/users/stevengj/repos","events_url":"https://api.github.com/users/stevengj/events{/privacy}","received_events_url":"https://api.github.com/users/stevengj/received_events","type":"User","site_admin":false},"created_at":"2015-07-31T15:57:28Z","updated_at":"2015-07-31T15:57:28Z","body":"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."}}