emmt / InterProcessCommunication.jl

Inter-process communication for Julia
Other
21 stars 3 forks source link

runtests failed on Mac MacBook M1 #5

Open brandsblair2020 opened 2 years ago

brandsblair2020 commented 2 years ago

I ran the "test InterProcessCommunication" on my Mac MacBook M1 installation with Julia 1.7.1, and it has error:

Shared Memory (BSD) : Error During Test at ~/.julia/packages/InterProcessCommunication/rpDdn/test/runtests.jl:369 Got exception outside of a @test SystemError: shmctl: Invalid argument Stacktrace: [1] systemerror(p::String, errno::Int32; extrainfo::Nothing) @ Base ./error.jl:174 [2] #systemerror#68 @ ./error.jl:173 [inlined] [3] systemerror @ ./error.jl:173 [inlined] [4] shmctl @ ~/.julia/packages/InterProcessCommunication/rpDdn/src/shm.jl:469 [inlined] [5] sizeof @ ~/.julia/packages/InterProcessCommunication/rpDdn/src/shm.jl:336 [inlined] [6] InterProcessCommunication.SharedMemory(id::InterProcessCommunication.ShmId; readonly::Bool) @ InterProcessCommunication ~/.julia/packages/InterProcessCommunication/rpDdn/src/shm.jl:98 [7] macro expansion @ ~/.julia/packages/InterProcessCommunication/rpDdn/test/runtests.jl:381 [inlined] [8] macro expansion @ /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/stdlib/v1.7/Test/src/Test.jl:1283 [inlined] [9] top-level scope @ ~/.julia/packages/InterProcessCommunication/rpDdn/test/runtests.jl:370 [10] include(fname::String) @ Base.MainInclude ./client.jl:451 [11] top-level scope @ none:6 [12] eval @ ./boot.jl:373 [inlined] [13] exec_options(opts::Base.JLOptions) @ Base ./client.jl:268 [14] _start() @ Base ./client.jl:495 Test Summary: | Pass Error Total Shared Memory (BSD) | 5 1 6

emmt commented 5 months ago

Sorry for such a late answer.

Shared memory is not well supported in MacOS. You may also see #7. I do not have access so it is difficult for me to fix that (provided it is possible). Any volunteers?