CUDArt.jl icon indicating copy to clipboard operation
CUDArt.jl copied to clipboard

error in running finalizer: ErrorException("auto_unbox: unable to determine argument type")

Open denizyuret opened this issue 9 years ago • 0 comments

Continuing from: https://groups.google.com/d/topic/julia-dev/NqPz4f_0VLg/discussion

I get this error intermittently on exit from Julia. I was able to trace it to the finalizer of CudaPtr (pointer.jl:44), in particular to the statement haskey(cuda_ptrs, p). Here is what I know so far:

  • If I comment out the CudaPtr finalizer (pointer.jl:38) the error disappears.
  • If I comment out haskey(cuda_ptrs, p) (pointer.jl:46) the error disappears.
  • The error does not consistently appear: Sometimes if a gc or a user-free occurs before Julia exit and calls the CudaPtr finalizer the error disappears. I am still trying to pinpoint the exact condition.
  • The debugger backtrace looks like this is happening during compilation maybe? However I am having trouble accessing the C variables in gdb so I am not sure: https://gist.github.com/denizyuret/161cf7e8b79266809a27

denizyuret avatar Dec 21 '15 19:12 denizyuret