Prerequisites
Description
After packaging lean 4.32.1, I've been building it repeatedly in a clean environment. Sometimes (1 out of 3? 5? times) during a build, lake will hang.
I've attached a debugger once, reading the backtrace there is a process hanging in pthread_join, one in fread, the others are idle in pthread_cond_timedwait.
I can only see one fread() in the code, in src/runtime/io.cpp - perhaps this code should have a timeout (i.e. use select or poll and non-blocking reads.
Context
n/a
Steps to Reproduce
- Build lean4 4.32.1 repeatedly.
- be unlucky
Expected behavior: [Clear and concise description of what you expect to happen]
lake should not hang.
Actual behavior: [Clear and concise description of what actually happens]
lake sometimes does hang.
Versions
4.32.1
NetBSD 11.99.7/x86_64
Additional Information
n/a
Impact
Prerequisites
https://github.com/leanprover/lean4/issues
Avoid dependencies to Mathlib or Batteries.
https://live.lean-lang.org/#project=lean-nightly
(You can also use the settings there to switch to “Lean nightly”)
Description
After packaging lean 4.32.1, I've been building it repeatedly in a clean environment. Sometimes (1 out of 3? 5? times) during a build, lake will hang.
I've attached a debugger once, reading the backtrace there is a process hanging in
pthread_join, one infread, the others are idle inpthread_cond_timedwait.I can only see one
fread()in the code, insrc/runtime/io.cpp- perhaps this code should have a timeout (i.e. useselectorpolland non-blocking reads.Context
n/a
Steps to Reproduce
Expected behavior: [Clear and concise description of what you expect to happen]
lake should not hang.
Actual behavior: [Clear and concise description of what actually happens]
lake sometimes does hang.
Versions
4.32.1
NetBSD 11.99.7/x86_64
Additional Information
n/a
Impact