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

EOFError from pool_cleanup when closing REPL #1495

Closed
Octogonapus opened this issue May 5, 2022 · 0 comments · Fixed by #1502
Closed

EOFError from pool_cleanup when closing REPL #1495

Octogonapus opened this issue May 5, 2022 · 0 comments · Fixed by #1502
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@Octogonapus
Copy link
Contributor

Describe the bug

When terminating a REPL session using ^D, the sleep(60) inside pool_cleanup is interrupted. This exception is uncaught, so an uncaught task exception is logged just before the REPL exits:

Unhandled Task ERROR: EOFError: read end of file
Stacktrace:
 [1] wait
   @ ./asyncevent.jl:136 [inlined]
 [2] sleep(sec::Int64)
   @ Base ./asyncevent.jl:221
 [3] pool_cleanup()
   @ CUDA ~/.julia/packages/CUDA/Uurn4/src/pool.jl:129
 [4] (::CUDA.var"#197#199")()
   @ CUDA ./threadingconstructs.jl:178

To reproduce

Exit a REPL session while the pool_cleanup() task is sleeping.

Expected behavior

I expect this function to exit gracefully when the REPL is closed. The patch for this is probably just:

try
  sleep(60)
catch
  break
end

Version info

Details on Julia:

Julia Version 1.7.2
Commit bf53498635 (2022-02-06 15:21 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-12.0.1 (ORCJIT, skylake)
Environment:
  JULIA_PKG_SERVER = 
  JULIA_EDITOR = code --wait

Details on CUDA:

CUDA toolkit 11.6, artifact installation
NVIDIA driver 510.60.2, for CUDA 11.6
CUDA driver 11.6

Libraries: 
- CUBLAS: 11.8.1
- CURAND: 10.2.9
- CUFFT: 10.7.0
- CUSOLVER: 11.3.2
- CUSPARSE: 11.7.1
- CUPTI: 16.0.0
- NVML: 11.0.0+510.60.2
- CUDNN: 8.30.2 (for CUDA 11.5.0)
- CUTENSOR: 1.4.0 (for CUDA 11.5.0)

Toolchain:
- Julia: 1.7.2
- LLVM: 12.0.1
- PTX ISA support: 3.2, 4.0, 4.1, 4.2, 4.3, 5.0, 6.0, 6.1, 6.3, 6.4, 6.5, 7.0
- Device capability support: sm_35, sm_37, sm_50, sm_52, sm_53, sm_60, sm_61, sm_62, sm_70, sm_72, sm_75, sm_80

1 device:
  0: NVIDIA GeForce RTX 3080 Ti (sm_86, 10.563 GiB / 12.000 GiB available)

Additional context

Add any other context about the problem here.

@Octogonapus Octogonapus added the bug Something isn't working label May 5, 2022
@maleadt maleadt added the good first issue Good for newcomers label May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants