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

Running Pkg.dir in IJulia throws StateError("Resource temporarily unavailable") #41

Closed
jiahao opened this issue Jan 24, 2014 · 5 comments

Comments

@jiahao
Copy link
Contributor

jiahao commented Jan 24, 2014

In[1]: Pkg.dir("IJulia")
Out[1]: 
"/Users/jiahao/.julia/IJulia"
ERROR: StateError("Resource temporarily unavailable")
 in recv at /Users/jiahao/.julia/ZMQ/src/ZMQ.jl:492
 in recv_ipython at /Users/jiahao/.julia/IJulia/src/msg.jl:61
 in eventloop at /Users/jiahao/.julia/IJulia/src/IJulia.jl:66
 in anonymous at multi.jl:1308

This reproduces reliably on my IJulia instance and IJulia is completely unresponsive after this error is thrown.

@stevengj
Copy link
Contributor

I'm seeing this error for various other random things as well (e.g. using PyPlot). It seems to have been introduced by a recent commit in Julia.

@StefanKarpinski
Copy link
Contributor

Yeah, I'm getting this too.

@stevengj
Copy link
Contributor

git bisect seems to think the error started with JuliaLang/julia@2a56b19 by @JeffBezanson ... not sure how this could be related.

@stevengj
Copy link
Contributor

We do use errno().... the problem could occur if errno() is somehow not giving the right result at https://github.com/JuliaLang/ZMQ.jl/blob/master/src/ZMQ.jl#L486-L491

@stevengj
Copy link
Contributor

On MacOS X, the errno in errno.h is not a global variable, it is defined as:

extern int * __error(void);
#define errno (*__error())

so Julia's new way of getting errno is wrong. Looks like Jeff's patch needs to be reverted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants