Skip to content

Conversation

@blegat
Copy link
Contributor

@blegat blegat commented Jan 1, 2019

It seems to fix the segfault issue. This ends up calling unsafe_copyto!: https://github.com/JuliaLang/julia/blob/8221c87b09b8456f4fe422ee2d8756a2a2630c7b/base/array.jl#L240
which also calls optimized C-function to do the copy so it might be easier and as efficient to call copyto! instead of memcpy.

Closes #142

@musm
Copy link
Collaborator

musm commented Jan 3, 2019

Thanks! Could you add a test that this patch fixes?

@blegat
Copy link
Contributor Author

blegat commented Jan 3, 2019

The tests were already failing on Linux, I am not sure what to add

@musm musm merged commit bfdb84b into JuliaInterop:master Jan 4, 2019
@musm
Copy link
Collaborator

musm commented Jan 4, 2019

Thank you again! Tests also continue to pass on Windows and this PR fixes linux/osx segfault.

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

Successfully merging this pull request may close these issues.

test fails

2 participants