Skip to content
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

Attempt to copy a freed reference when creating a second view into the same array #484

Open
anicusan opened this issue Nov 14, 2024 · 0 comments

Comments

@anicusan
Copy link
Member

anicusan commented Nov 14, 2024

I randomly see this error popping up on the BuildKite CI:
https://buildkite.com/julialang/acceleratedkernels-dot-jl/builds/14#01932a74-e21d-408d-86d0-81bf259f6bce/241-416

It happens when creating two exclusive views into the same array, immediately one after the other:

    p1 = @view dst[1:blocks]
    p2 = @view dst[blocks + 1:end]

When it happens, I see the following common contexts:

  • It only happened on Julia 1.10, never on 1.11, but that may just be chance.
  • It only happened when creating the second view, p2.
  • It only happened in this specific kernel, even though views are used elsewhere in the codebase too.
  • It only happened on the oneAPI backends; the CUDA, AMDGPU and Metal ones never showed this error.

That part of the code is sequential - on the same, main thread/task.
I was not able to reproduce it locally. Would you have any pointers on how to investigate this?

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

No branches or pull requests

1 participant