Skip to content

lake sometimes hangs on NetBSD #14587

Description

@0-wiz-0

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

  1. Build lean4 4.32.1 repeatedly.
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P-lowWe are not planning to work on this issuebugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions