You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At process exit, command queues and contexts are collected before allocations are, resulting in crashes:
From worker 13: [264837] signal 11 (1): Segmentation fault
From worker 13: in expression starting at none:0
From worker 13: clFinish at /home/tim/.julia/artifacts/c99d19d2f6dd75af3e997c4ecc4ac85e410cb7a7/lib/libOpenCL.so (unknown line)
From worker 13: macro expansion at /home/tim/Julia/pkg/OpenCL/lib/cl/libopencl.jl:703 [inlined]
From worker 13: #113 at /home/tim/Julia/pkg/OpenCL/lib/cl/api.jl:29 [inlined]
From worker 13: #1 at /home/tim/Julia/pkg/OpenCL/lib/cl/libopencl.jl:13 [inlined]
From worker 13: retry_reclaim at /home/tim/Julia/pkg/OpenCL/lib/cl/api.jl:49
From worker 13: check at /home/tim/Julia/pkg/OpenCL/lib/cl/libopencl.jl:10 [inlined]
From worker 13: clFinish at /home/tim/Julia/pkg/OpenCL/lib/cl/api.jl:34 [inlined]
From worker 13: finish at /home/tim/Julia/pkg/OpenCL/lib/cl/cmdqueue.jl:62 [inlined]
From worker 13: synchronize at /home/tim/Julia/pkg/OpenCL/src/memory.jl:29 [inlined]
From worker 13: #10 at /home/tim/Julia/pkg/OpenCL/src/memory.jl:149 [inlined]
From worker 13: device! at /home/tim/Julia/pkg/OpenCL/lib/cl/state.jl:152
From worker 13: free at /home/tim/Julia/pkg/OpenCL/src/memory.jl:143
From worker 13: unknown function (ip: 0x74d0d7939ab2)
From worker 13: release at /home/tim/.julia/packages/GPUArrays/Mot2g/src/host/abstractarray.jl:42
From worker 13: unsafe_free! at /home/tim/.julia/packages/GPUArrays/Mot2g/src/host/abstractarray.jl:100 [inlined]
From worker 13: unsafe_free! at /home/tim/.julia/packages/GPUArrays/Mot2g/src/host/abstractarray.jl:115
From worker 13: unknown function (ip: 0x74d0d79f6a92)
From worker 13: run_finalizer at /cache/build/builder-demeter6-3/julialang/julia-release-1-dot-11/src/gc.c:299
From worker 13: jl_gc_run_finalizers_in_list at /cache/build/builder-demeter6-3/julialang/julia-release-1-dot-11/src/gc.c:389
From worker 13: run_finalizers at /cache/build/builder-demeter6-3/julialang/julia-release-1-dot-11/src/gc.c:435
From worker 13: ijl_atexit_hook at /cache/build/builder-demeter6-3/julialang/julia-release-1-dot-11/src/init.c:299
The text was updated successfully, but these errors were encountered:
Worked around in a17c34b, because most of the issues come from the queue getting freed before the buffer, but there's nothing preventing the context getting destroyed as well. Turns out OpenCL doesn't increment the refcount of the context when derived objects (such as buffers) are created, and I'm not sure if we're supposed to increment that refcount ourself, or use another mechanism.
At process exit, command queues and contexts are collected before allocations are, resulting in crashes:
The text was updated successfully, but these errors were encountered: