Skip to content

dune build freezes with cache enabled #3233

@artempyanykh

Description

@artempyanykh

Expected Behavior

dune build finishes

Actual Behavior

dune build freezes.

Reproduction

I've added (cache enabled) to ~/.config/dune/config.

Then setup infer Infer with ./configure && make.

Then under infer/src I ran dune cache start --foreground in one terminal and dune build in the other.

dune cache output is

# accept client: 127.0.0.1:49327
# 127.0.0.1:49327: received command: (set-build-root /Users/arr/infer/infer/src/_build)
# 127.0.0.1:49327: ended

At the same time dtruss on dune build process shows a bunch of:

select(0x0, 0x0, 0x0, 0x0, 0x70000CA20F90)               = 0 0

which is very weird -- basically, dune build does polling on 0 file descriptors.

Specifications

  • Version of dune (output of dune --version): 2.3.1
  • Version of ocaml (output of ocamlc --version): 4.08.1
  • Operating system (distribution and version): MacOS 10.15.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions