-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Segmentation fault after deep-copying SharedArray nested in a type #14459
Labels
domain:parallelism
Parallel or distributed computation
Comments
DanielArndt
added a commit
to DanielArndt/julia
that referenced
this issue
Dec 21, 2015
- Previous behaviour, creating an Array, is incorrect behaviour, and caused segfaults - Fixes JuliaLang#14459
DanielArndt
changed the title
Segmentation fault after deep-copying SharedArray in a type
Segmentation fault after deep-copying SharedArray nested in a type
Dec 21, 2015
I guess it makes more sense to change |
ref #12964, which I was not a fan of. |
Great, thanks for the context. I'll hold off working on this then since I imagine some debate needs to be had. |
Fixed with the change to SharedArray indexing I presume. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Copied largely from a topic I started on julia-users: https://groups.google.com/forum/#!topic/julia-users/Cg6K3-mpAig
I've created a small stripped down version of the problem I am encountering.
Executing the following on this type will break it:
Turns out, the deepcopy is creating the SharedArray as an Array which is causing the issue:
This all seems to be caused by the
similar
function, which is returning an array. I have successfully prevented the seg fault by introducing this function:For which I will create a pull request. I would love to hear comments, alternative approaches, or suggestions that might make the PR more robust, since this will be my first attempt dabbling in the base language.
The text was updated successfully, but these errors were encountered: