facebook / facebook/hhvm

[ Crash ] EOPNOTSUPP hh_client on linux kernel version 6.9 and below in Docker (using overlayfs)

Open
#9,610 5 comments 0 reactions 0 assignees View on GitHub
crash won't fix
Dominant language
C++
Stars
18.7k
Forks
3.1k
Avg merge
1h 47m
Merged PRs (30d)
2

Description

**Describe the bug**
When running hh_client with a modern hhvm build on the 6.1 kernel (the default of Debian 12), an error is raised EOPNOTSUPP. This error is not raised on a 6.12 kernel.

**Standalone code, or other way to reproduce the problem**

Steps to reproduce the behavior:
1. Compile your own hhvm and hh_client from this PR: https://github.com/facebook/hhvm/pull/9564
1. Create an empty `/etc/hh.conf` file
1. Create an new directory with `.hhconfig` and `file.hack`. Both can be empty.
1. Typecheck your code with `hh_server --check .`
1. Typecheck your code with `hh_server .` or `hh_client`
1. This last step fails with the error described above.

**Expected behavior**

`No errors!`

**Actual behavior**

```
("Unix.Unix_error(Unix.EOPNOTSUPP, \"hh_open_tmpfile\", \"/tmp/hh_server\")")
Raised by primitive operation at Sys_utils.atomically_create_and_init_file in file "hack/src/utils/sys/sys_utils.ml", line 772, characters 11-71
Called from Server_progress.ErrorsWrite.new_empty_file.(fun) in file "hack/src/client_and_server/server_progress.ml", lines 446-453, characters 14-53
```

**Environment**
- Operating system
> 'Debian 12 (Bookworm)'
- Installation method
> 'built from source' 'running in docker'
- HHVM Version
> HipHop VM 6.79.0-dev (rel) (non-lowptr)
> Compiler: heads/fix-oss-build-0-g03747d03a401005326a90060621b41bf88ef999c
> Repo schema: 4e0f8e27bd2ef969b1c0606be3fec128f116cac8
> hackc-ea9ee869cba86727ff515f59ac651db9dd90a203-6.79.0-dev

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.