-
Notifications
You must be signed in to change notification settings - Fork 58
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
ZMQ tests seem to fail with zeromq 4.1 #83
Comments
Can you identify the specific test that causes the segfault? Can you get a backtrace by running |
The segfault is produced at line 61:
This is a minimal test case:
How do I get julia-debug? I did a backtrace with regular julia, I know it probably will be of no help but just in case:
|
That depends how you got julia. Most binary distribution channels should include julia-debug, if not in the same package then possibly in a separate -debug package. If you built from source, do |
Sorry for not providing all the info. Here it is. This is actually running inside virtualbox. julia> versioninfo() |
I build julia from source; thanks for the info on builind julia-debug. I ran a backtrace but it looks the same as the one I posted above. Please let me know what you need me to do to help. |
The method cache looks familiar to some stuff that saw some changes on Julia master recently, but since you're on 0.3.9 it might be unrelated. Not sure about enough of the details of how ZMQ is implemented. Could you try with Julia nightly, if you don't mind? You can download a binary from https://status.julialang.org/download/linux-x86_64 if you don't want to build from source. |
I don't mind trying with nightly. I'll try to get to it in the next couple of days. Thanks for looking at this issue. |
I just tried with latest master. The segmentation fault still occurs, but it seems to hang Julia. I have to use kill -9; kill by itself is not enough. julia> versioninfo() |
Problem stil exists with julia 0.3.10. julia> versioninfo() julia> include("mintestcase.jl") signal (11): Segmentation fault |
Hmm, I seems to be getting this one only after a recent upgrade on master. Will see if I can figure out anything |
I think I've found the problem. The segfault happens after constructin a From the
(The real definision However, on 64bit machine, @carnaval's ccall sanitizer idea can probably catch this... Might also worth checking this http://upstream.rosalinux.ru/versions/zeromq.html |
Actually since the size we expect zmq to write to is smaller than the size of the structure (we append a pointer at the end) the |
The problem is fixed -- thanks! |
When upgrading from zeromq 4.0 to 4.1 on my system, ZMQ started to fail. I tried running its tests (with a freshly added ZMQ.jl, on Julia 0.3.9):
~/.julia/ZMQ/test $ julia ./runtests.jl
Testing with ZMQ version 4.1.2
signal (11): Segmentation fault
allocobj at /home/miguel/disk2/Sources/julia/usr/bin/../lib/libjulia.so (unknown line)
jl_alloc_tuple_uninit at /home/miguel/disk2/Sources/julia/usr/bin/../lib/libjulia.so (unknown line)
jl_alloc_tuple at /home/miguel/disk2/Sources/julia/usr/bin/../lib/libjulia.so (unknown line)
jl_f_apply at /home/miguel/disk2/Sources/julia/usr/bin/../lib/libjulia.so (unknown line)
The entire error is at https://gist.github.com/mbaz/b1018299d025d81e4efd
The text was updated successfully, but these errors were encountered: