I am running 1.5.0 on Windows. I keep running into an issue when creating a SharedArray. I am able to replicate the problem about 30% of the time. This is very annoying as it essentially means my code keeps crashing. This is the error message:
ERROR: LoadError: SystemError: mmap: Access is denied.
Stacktrace:
[1] windowserror(::Symbol, ::UInt32; extrainfo::Nothing) at .\error.jl:183
[2] #windowserror#50 at .\error.jl:182 [inlined]
[3] windowserror at .\error.jl:182 [inlined]
[4] mmap(::Mmap.Anonymous, ::Type{Array{Float64,3}}, ::Tuple{Int64,Int64,Int64}, ::Int64; grow::Bool, shared::Bool) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Mmap\src\Mmap.jl:224
[5] mmap(::Mmap.Anonymous, ::Type{Array{Float64,3}}, ::Tuple{Int64,Int64,Int64}, ::Int64) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Mmap\src\Mmap.jl:189
[6] _shm_mmap_array(::Type{T} where T, ::Tuple{Int64,Int64,Int64}, ::String, ::UInt16) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\SharedArrays\src\SharedArrays.jl:670
[7] shm_mmap_array(::Type{T} where T, ::Tuple{Int64,Int64,Int64}, ::String, ::UInt16) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\SharedArrays\src\SharedArrays.jl:649
[8] SharedArray{Float64,3}(::Tuple{Int64,Int64,Int64}; init::Bool, pids::Array{Int64,1}) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\SharedArrays\src\SharedArrays.jl:118
[9] SharedArray at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\SharedArrays\src\SharedArrays.jl:105 [inlined]
[10] #_#10 at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\SharedArrays\src\SharedArrays.jl:161 [inlined]
[11] SharedArray at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\SharedArrays\src\SharedArrays.jl:161 [inlined]
[12] #_#15 at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\SharedArrays\src\SharedArrays.jl:171 [inlined]
[13] SharedArray at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\SharedArrays\src\SharedArrays.jl:171 [inlined]