Skip to content

[ Repo auth ] Fails to build a byte code repository on hhvm 4.168+ #9236

@lexidor

Description

@lexidor

Describe the bug
When trying to build a byte code repository in docker, hhvm 4.168 fails with a set_mempolicy: Operation not permitted

Standalone code, or other way to reproduce the problem

<<__EntryPoint>>
function main(): void {}
hhvm.repo.authoritative=true
hhvm.repo.path=./hhvm.hhbc
hhvm.server.allow_run_as_root=true

Steps to reproduce the behavior:

  1. Create an empty Hack project in an hhvm/hhvm docker container
  2. Add an empty hhconfig file.
  3. Put an empty entry point, as shown above in src/main.hack
  4. Put the INI file shown above in repo-auth.ini
  5. Create a repo using hhvm --hphp --input-dir $(pwd) --output-dir .
  6. When running under hhvm/hhvm@4.167-latest, observe a successful creation of hhvm.hhbc in the project directory.
  7. Run the server using hhvm -m server --no-config -c repo-auth.ini
  8. Curl (with option verbose flag) localhost from within the container. Observe an HTTP 200 without content.

Expected behavior

As described in steps to reproduce

Actual behavior

Step 5. fails with the following error:

...
Extern worker error while indexing: Execution of `hphpc-index` failed: exited with status 1
stderr:
set_mempolicy: Operation not permitted
...

Environment

  • Operating system

Host system Ubuntu 22.04.

  • Installation method

hhvm/hhvm on dockerhub

  • HHVM Version

4.168.0, as provided in the docker container

Additional context
I did already change the commands to be compatible with the removed cli flags from hhvm 4.167.0.

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