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

Test Error: Assertion failed: Socket operation on non-socket #147

Closed
ChrisRackauckas opened this issue May 24, 2017 · 7 comments
Closed

Comments

@ChrisRackauckas
Copy link
Member

ChrisRackauckas commented May 24, 2017

julia> Pkg.build("ZMQ")
INFO: Building WinRPM
INFO: Downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_Leap_42.2/repodata/repomd.xml
INFO: Downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_Leap_42.2/repodata/repomd.xml
INFO: Building ZMQ
INFO: Updating WinRPM package list
INFO: Downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_Leap_42.2/repodata/repomd.xml
INFO: Downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_Leap_42.2/repodata/repomd.xml

julia> Pkg.test("ZMQ")
INFO: Testing ZMQ
Testing with ZMQ version 4.0.5
Assertion failed: Socket operation on non-socket (signaler.cpp:150)
=================================[ ERROR: ZMQ ]=================================

failed process: Process(`'C:\Users\Chris\AppData\Local\Julia-0.5.2\bin\julia' -Cx86-64 '-JC:\Users\Chris\AppData\Local\Julia-0.5.2\lib\julia\sys.dll' --compile=yes --depwarn=yes --check-bounds=yes --code-coverage=none --color=yes --compilecache=yes 'C:\Users\Chris\.julia\v0.5\ZMQ\test\runtests.jl'`, ProcessExited(1073741845)) [1073741845]

================================================================================
ERROR: ZMQ had test errors
 in #test#61(::Bool, ::Function, ::Array{AbstractString,1}) at .\pkg\entry.jl:748
 in (::Base.Pkg.Entry.#kw##test)(::Array{Any,1}, ::Base.Pkg.Entry.#test, ::Array{AbstractString,1}) at .\<missing>:0
 in (::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#test,Tuple{Array{AbstractString,1}}})() at .\pkg\dir.jl:31
 in cd(::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#test,Tuple{Array{AbstractString,1}}}, ::String) at .\file.jl:48
 in #cd#1(::Array{Any,1}, ::Function, ::Function, ::Array{AbstractString,1}, ::Vararg{Array{AbstractString,1},N}) at .\pkg\dir.jl:31
 in (::Base.Pkg.Dir.#kw##cd)(::Array{Any,1}, ::Base.Pkg.Dir.#cd, ::Function, ::Array{AbstractString,1}, ::Vararg{Array{AbstractString,1},N}) at .\<missing>:0
 in #test#3(::Bool, ::Function, ::String, ::Vararg{String,N}) at .\pkg\pkg.jl:258
 in test(::String, ::Vararg{String,N}) at .\pkg\pkg.jl:258

julia> versioninfo()
Julia Version 0.5.2
Commit f4c6c9d (2017-05-06 16:34 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.7.1 (ORCJIT, haswell)
@ChrisRackauckas ChrisRackauckas changed the title Test Error Test Error: Assertion failed: Socket operation on non-socket May 24, 2017
@ChrisRackauckas
Copy link
Member Author

FWIW, searching to see if it's anything recent, and that seems to not be the case:

julia> Pkg.pin("ZMQ",v"0.4.2")
INFO: Creating ZMQ branch pinned.eacc2e19.tmp
INFO: No packages to install, update or remove

julia> Pkg.build("ZMQ")
INFO: Building WinRPM
INFO: Downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_Leap_42.2/repodata/repomd.xml
INFO: Downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_Leap_42.2/repodata/repomd.xml
INFO: Building ZMQ
WARNING: BinDeps.shlib_ext is deprecated.
  likely near C:\Users\Chris\.julia\v0.5\ZMQ\deps\build.jl:22
INFO: Updating WinRPM package list
INFO: Downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_Leap_42.2/repodata/repomd.xml
INFO: Downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_Leap_42.2/repodata/repomd.xml

julia> Pkg.test("ZMQ")
INFO: Testing ZMQ
Testing with ZMQ version 4.0.5
Assertion failed: Socket operation on non-socket (signaler.cpp:150)
=================================[ ERROR: ZMQ ]=================================

failed process: Process(`'C:\Users\Chris\AppData\Local\Julia-0.5.2\bin\julia' -Cx86-64 '-JC:\Users\Chris\AppData\Local\Julia-0.5.2\lib\julia\sys.dll' --compile=yes --depwarn=yes --check-bounds=yes --code-coverage=none --color=yes --compilecache=yes 'C:\Users\Chris\.julia\v0.5\ZMQ\test\runtests.jl'`, ProcessExited(1073741845)) [1073741845]

================================================================================
ERROR: ZMQ had test errors
 in #test#61(::Bool, ::Function, ::Array{AbstractString,1}) at .\pkg\entry.jl:748
 in (::Base.Pkg.Entry.#kw##test)(::Array{Any,1}, ::Base.Pkg.Entry.#test, ::Array{AbstractString,1}) at .\<missing>:0
 in (::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#test,Tuple{Array{AbstractString,1}}})() at .\pkg\dir.jl:31
 in cd(::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#test,Tuple{Array{AbstractString,1}}}, ::String) at .\file.jl:48
 in #cd#1(::Array{Any,1}, ::Function, ::Function, ::Array{AbstractString,1}, ::Vararg{Array{AbstractString,1},N}) at .\pkg\dir.jl:31
 in (::Base.Pkg.Dir.#kw##cd)(::Array{Any,1}, ::Base.Pkg.Dir.#cd, ::Function, ::Array{AbstractString,1}, ::Vararg{Array{AbstractString,1},N}) at .\<missing>:0
 in #test#3(::Bool, ::Function, ::String, ::Vararg{String,N}) at .\pkg\pkg.jl:258
 in test(::String, ::Vararg{String,N}) at .\pkg\pkg.jl:258

julia> Pkg.pin("ZMQ",v"0.4.1")
INFO: Creating ZMQ branch pinned.a6fd9487.tmp
INFO: No packages to install, update or remove

julia> Pkg.build("ZMQ")
INFO: Building WinRPM
INFO: Downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_Leap_42.2/repodata/repomd.xml
INFO: Downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_Leap_42.2/repodata/repomd.xml
INFO: Building ZMQ
WARNING: BinDeps.shlib_ext is deprecated.
  likely near C:\Users\Chris\.julia\v0.5\ZMQ\deps\build.jl:22
INFO: Updating WinRPM package list
INFO: Downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_Leap_42.2/repodata/repomd.xml
INFO: Downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_Leap_42.2/repodata/repomd.xml

julia> Pkg.build("ZMQ")
INFO: Building WinRPM
INFO: Downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_Leap_42.2/repodata/repomd.xml
INFO: Downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_Leap_42.2/repodata/repomd.xml
INFO: Building ZMQ
WARNING: BinDeps.shlib_ext is deprecated.
  likely near C:\Users\Chris\.julia\v0.5\ZMQ\deps\build.jl:22
INFO: Updating WinRPM package list
INFO: Downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_Leap_42.2/repodata/repomd.xml
INFO: Downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_Leap_42.2/repodata/repomd.xml

julia> Pkg.test("ZMQ")
INFO: Testing ZMQ
Testing with ZMQ version 4.0.5
Assertion failed: Socket operation on non-socket (signaler.cpp:150)
=================================[ ERROR: ZMQ ]=================================

failed process: Process(`'C:\Users\Chris\AppData\Local\Julia-0.5.2\bin\julia' -Cx86-64 '-JC:\Users\Chris\AppData\Local\Julia-0.5.2\lib\julia\sys.dll' --compile=yes --depwarn=yes --check-bounds=yes --code-coverage=none --color=yes --compilecache=yes 'C:\Users\Chris\.julia\v0.5\ZMQ\test\runtests.jl'`, ProcessExited(1073741845)) [1073741845]

================================================================================
ERROR: ZMQ had test errors
 in #test#61(::Bool, ::Function, ::Array{AbstractString,1}) at .\pkg\entry.jl:748
 in (::Base.Pkg.Entry.#kw##test)(::Array{Any,1}, ::Base.Pkg.Entry.#test, ::Array{AbstractString,1}) at .\<missing>:0
 in (::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#test,Tuple{Array{AbstractString,1}}})() at .\pkg\dir.jl:31
 in cd(::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#test,Tuple{Array{AbstractString,1}}}, ::String) at .\file.jl:48
 in #cd#1(::Array{Any,1}, ::Function, ::Function, ::Array{AbstractString,1}, ::Vararg{Array{AbstractString,1},N}) at .\pkg\dir.jl:31
 in (::Base.Pkg.Dir.#kw##cd)(::Array{Any,1}, ::Base.Pkg.Dir.#cd, ::Function, ::Array{AbstractString,1}, ::Vararg{Array{AbstractString,1},N}) at .\<missing>:0
 in #test#3(::Bool, ::Function, ::String, ::Vararg{String,N}) at .\pkg\pkg.jl:258
 in test(::String, ::Vararg{String,N}) at .\pkg\pkg.jl:258

julia> Pkg.pin("ZMQ",v"0.4.0")
INFO: Creating ZMQ branch pinned.8a780fbc.tmp
INFO: No packages to install, update or remove

julia> Pkg.build("ZMQ")
INFO: Building WinRPM
INFO: Downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_Leap_42.2/repodata/repomd.xml
INFO: Downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_Leap_42.2/repodata/repomd.xml
INFO: Building ZMQ
WARNING: BinDeps.shlib_ext is deprecated.
  likely near C:\Users\Chris\.julia\v0.5\ZMQ\deps\build.jl:24
INFO: Updating WinRPM package list
INFO: Downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_Leap_42.2/repodata/repomd.xml
INFO: Downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_Leap_42.2/repodata/repomd.xml

julia> Pkg.test("ZMQ")
INFO: Testing ZMQ
Testing with ZMQ version 4.0.5
Assertion failed: Socket operation on non-socket (signaler.cpp:150)
=================================[ ERROR: ZMQ ]=================================

failed process: Process(`'C:\Users\Chris\AppData\Local\Julia-0.5.2\bin\julia' -Cx86-64 '-JC:\Users\Chris\AppData\Local\Julia-0.5.2\lib\julia\sys.dll' --compile=yes --depwarn=yes --check-bounds=yes --code-coverage=none --color=yes --compilecache=yes 'C:\Users\Chris\.julia\v0.5\ZMQ\test\runtests.jl'`, ProcessExited(1073741845)) [1073741845]

================================================================================
ERROR: ZMQ had test errors
 in #test#61(::Bool, ::Function, ::Array{AbstractString,1}) at .\pkg\entry.jl:748
 in (::Base.Pkg.Entry.#kw##test)(::Array{Any,1}, ::Base.Pkg.Entry.#test, ::Array{AbstractString,1}) at .\<missing>:0
 in (::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#test,Tuple{Array{AbstractString,1}}})() at .\pkg\dir.jl:31
 in cd(::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#test,Tuple{Array{AbstractString,1}}}, ::String) at .\file.jl:48
 in #cd#1(::Array{Any,1}, ::Function, ::Function, ::Array{AbstractString,1}, ::Vararg{Array{AbstractString,1},N}) at .\pkg\dir.jl:31
 in (::Base.Pkg.Dir.#kw##cd)(::Array{Any,1}, ::Base.Pkg.Dir.#cd, ::Function, ::Array{AbstractString,1}, ::Vararg{Array{AbstractString,1},N}) at .\<missing>:0
 in #test#3(::Bool, ::Function, ::String, ::Vararg{String,N}) at .\pkg\pkg.jl:258
 in test(::String, ::Vararg{String,N}) at .\pkg\pkg.jl:258

julia> Pkg.pin("ZMQ",v"0.3.4")
INFO: Creating ZMQ branch pinned.373a5692.tmp
INFO: No packages to install, update or remove

julia> Pkg.build("ZMQ")
INFO: Building WinRPM
INFO: Downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_Leap_42.2/repodata/repomd.xml
INFO: Downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_Leap_42.2/repodata/repomd.xml
INFO: Building ZMQ
WARNING: BinDeps.shlib_ext is deprecated.
  likely near C:\Users\Chris\.julia\v0.5\ZMQ\deps\build.jl:9
INFO: Updating WinRPM package list
INFO: Downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_Leap_42.2/repodata/repomd.xml
INFO: Downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_Leap_42.2/repodata/repomd.xml

julia> Pkg.test("ZMQ")
INFO: Testing ZMQ
Testing with ZMQ version 4.0.5
Assertion failed: Socket operation on non-socket (signaler.cpp:150)
=================================[ ERROR: ZMQ ]=================================

failed process: Process(`'C:\Users\Chris\AppData\Local\Julia-0.5.2\bin\julia' -Cx86-64 '-JC:\Users\Chris\AppData\Local\Julia-0.5.2\lib\julia\sys.dll' --compile=yes --depwarn=yes --check-bounds=yes --code-coverage=none --color=yes --compilecache=yes 'C:\Users\Chris\.julia\v0.5\ZMQ\test\runtests.jl'`, ProcessExited(1073741845)) [1073741845]

================================================================================
ERROR: ZMQ had test errors
 in #test#61(::Bool, ::Function, ::Array{AbstractString,1}) at .\pkg\entry.jl:748
 in (::Base.Pkg.Entry.#kw##test)(::Array{Any,1}, ::Base.Pkg.Entry.#test, ::Array{AbstractString,1}) at .\<missing>:0
 in (::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#test,Tuple{Array{AbstractString,1}}})() at .\pkg\dir.jl:31
 in cd(::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#test,Tuple{Array{AbstractString,1}}}, ::String) at .\file.jl:48
 in #cd#1(::Array{Any,1}, ::Function, ::Function, ::Array{AbstractString,1}, ::Vararg{Array{AbstractString,1},N}) at .\pkg\dir.jl:31
 in (::Base.Pkg.Dir.#kw##cd)(::Array{Any,1}, ::Base.Pkg.Dir.#cd, ::Function, ::Array{AbstractString,1}, ::Vararg{Array{AbstractString,1},N}) at .\<missing>:0
 in #test#3(::Bool, ::Function, ::String, ::Vararg{String,N}) at .\pkg\pkg.jl:258
 in test(::String, ::Vararg{String,N}) at .\pkg\pkg.jl:258

@ChrisRackauckas
Copy link
Member Author

Running the test directly,

julia> using ZMQ, Compat

julia> using Compat.String

julia>

julia> println("Testing with ZMQ version $(ZMQ.version)")
Testing with ZMQ version 4.0.5

julia>

julia> ctx=Context()
ZMQ.Context(Ptr{Void} @0x000000000b059310, ZMQ.Socket[])

julia>

julia> @assert typeof(ctx) == Context

works, and then

ZMQ.close(ctx)

kills the REPL with

Assertion failed: Socket operation on non-socket (signaler.cpp:150)

@stevengj
Copy link
Contributor

The assertion failure is here, and is in windows-only code.

@stevengj
Copy link
Contributor

Just in case this is a libzmq bug, can you try it with the latest version of libzmq?

@ChrisRackauckas
Copy link
Member Author

Another Windows computer for which this works has this result though:

julia> Pkg.test("ZMQ")
INFO: Testing ZMQ
Testing with ZMQ version 4.0.5
INFO: ZMQ tests passed

@stevengj
Copy link
Contributor

Does ZMQ.close(ctx) immediately kill the REPL? Or does it die when you quit or something? (I'm wondering whether it is some sort of garbage-collection race condition.)

@ChrisRackauckas
Copy link
Member Author

It immediately kills the REPL.

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