Skip to content

Exception in dune build when Unix domain socket in directory #3124

@verbosemode

Description

@verbosemode

The dune build command raises the following exception when a Unix domain socket file is in the same directory:

Error: exception Sys_error("fail.sock: No such device or address")

Reproduction

1.) Create a new directory

2.) Create a "dune' file with the following content

(executable
 (name unixsocket)
 (libraries unix))

3.) Create a "dune-project" file with the following content

(lang dune 2.2)

4.) Create an empty .ml file without code.

echo "" > unixsocket.ml

5.) Create a Unix domain socket file (press ctrl+c to quit netcat)

nc -Ul fail.sock

6.) Run "dune build"

Specifications

  • Version of dune (output of dune --version): 2.2.0
  • Version of ocaml (output of ocamlc --version): 4.09.0
  • Operating system (distribution and version): Debian GNU/Linux 10 (buster)

Additional information

https://gist.github.com/verbosemode/7e7374309df5d6436a3400737fd8b3ad

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