deepcopy is broken for SharedArrays #6362 Closed carlobaldassi opened this Issue on Apr 1, 2014 · 1 comment Projects None yet Labels bug parallel Milestone No milestone Assignees No one assigned 1 participant @carlobaldassi Notifications You’re not receiving notifications from this thread. @carlobaldassi The Julia Language member carlobaldassi commented on Apr 1, 2014 In particular, trying to assign elements from a different process silently fails. julia> a 3x4 SharedArray{Float64,2}: -0.978909 0.956941 -0.727437 0.123889 1.52651 -0.524361 -0.69585 -0.0347904 0.556024 1.01309 0.724335 -1.39348 julia> b = deepcopy(a) 3x4 SharedArray{Float64,2}: -0.978909 0.956941 -0.727437 0.123889 1.52651 -0.524361 -0.69585 -0.0347904 0.556024 1.01309 0.724335 -1.39348 julia> remotecall_fetch(2, setindex!, b, 5, 4:6) 3x4 SharedArray{Float64,2}: -0.978909 5.0 -0.727437 0.123889 1.52651 5.0 -0.69585 -0.0347904 0.556024 5.0 0.724335 -1.39348 julia> b 3x4 SharedArray{Float64,2}: -0.978909 0.956941 -0.727437 0.123889 1.52651 -0.524361 -0.69585 -0.0347904 0.556024 1.01309 0.724335 -1.39348 @carlobaldassi carlobaldassi added bug parallel labels on Apr 1, 2014 @carlobaldassi The Julia Language member carlobaldassi commented on Apr 1, 2014 Oh and worse than what is described above, the assignment acts on the original array: julia> a 3x4 SharedArray{Float64,2}: -0.978909 5.0 -0.727437 0.123889 1.52651 5.0 -0.69585 -0.0347904 0.556024 5.0 0.724335 -1.39348 @carlobaldassi carlobaldassi added a commit that closed this issue on Apr 1, 2014 @carlobaldassi Fix #6362 (deepcopy broken for SharedArrays) beb4398 @carlobaldassi carlobaldassi closed this in beb4398 on Apr 1, 2014 This was referenced on Sep 6, 2015 Merged Fix sharedarray indexing regression #12964 Merged