Closed MurzNN closed 3 weeks ago
The same is on Ubuntu 22.04 image, even with the new packaged packages from https://hhvm.com/blog/2022/08/30/experimenting-with-universal-deb-packages.html
Looking to sources: https://github.com/facebook/hhvm/blob/12af5a33618f5a8cca34b7b69eddb10b6d71c8ad/hphp/hack/src/utils/sys/daemon_stubs.c#L45 this error can be workarounded by setting the HHVM_DISABLE_PERSONALITY env variable to 1:
HHVM_DISABLE_PERSONALITY=1 hh_client
But what's the proper fix?
Hi, I thought I'd chime in.
I reported this issue when it originally surfaced in 4.139. When running in docker, some Linux capabilities are locked down. When running on bare Linux, hhvm uses them to unlock more performance. These env vars are a way to make hhvm not attempt these operations. They are also set in the official docker image. They apply to the whole container, not just individual commands. You might want to copy paste these lines from the docketfile. These env vars are the proper fix
.
https://github.com/hhvm/hhvm-docker/commit/c36523fe62c92f7cb2dd9f0db5842448835116af
You may want to have a quick look and make sure you are also setting the numa env var. Thank you for creating such a detailed GH Issue. This made it really easy to confirm what problem you were running in to.
I am closing this issue as Answered
.
Describe the bug I have an error on Debian images when trying to launch the
hh_client
:It's reproducible on Debian 10 and 11 Docker images.
Standalone code, or other way to reproduce the problem Steps to reproduce the behavior:
docker run -it debian:11 bash
hh_client
:Expected behavior All should work well.
Actual behavior The error is thrown:
By the way, the
hhvm
launches well without errors:Environment
Additional context It works well on Ubuntu Docker images.