Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

HipHopPHP not running : Memory allocation issue #646

Closed
Hypoaristerolactotherapist opened this Issue · 9 comments

6 participants

@Hypoaristerolactotherapist

I installed the Ubuntu 12.04 Package and copied the hhvm config file from the wordpress installation page

I got the following when running hhvm --config /etc/hhvm.hdf

/home/sgolemon/dev/hiphop-php/src/runtime/vm/translator/asm-x64.cpp:79 (makeExecable): mprotect @(nil) 32768 bytes failed (Cannot allocate memory)
/home/sgolemon/dev/hiphop-php/src/runtime/vm/translator/asm-x64.cpp:79 (makeExecable): mprotect @(nil) 32768 bytes failed (Cannot allocate memory)
Aborted (core dumped)

(I get the message twice per run)

I tried with a simpler file

<?php phpinfo(); ?>

With no luck.

What can of other information do you need to investigate?

@datr

I can confirm getting this when using the precompiled package and when compiling hhvm myself from source. The error is probably the same as reported here: #614

@Hypoaristerolactotherapist

It is indeed a duplicate, sorry for that, I will close this ticket and add to the 614

@Hypoaristerolactotherapist

OK, I went too fast 614 is closed (and shouldn't)

@datr

Oops, yeah, sorry. I meant #614 as more of an FYI than as an alternative. That issue seemed to get derailed a little towards the end so better to use this one. :)

@sgolemon
Owner

Try adding this to hhvm.hdf and see if it helps:

Eval {
JitASize = 67108864
JitAStubsSize = 67108864
JitGlobalDataSize = 16777216
}

@Hypoaristerolactotherapist

I just did and I got the misterious

Possible bad config node: Eval.JitASize
Possible bad config node: Eval.JitAStubsSize
Possible bad config node: Eval.JitGlobalDataSize

in daemon mode and

Possible bad config node: Eval.JitASize
Possible bad config node: Eval.JitAStubsSize
Possible bad config node: Eval.JitGlobalDataSize
tcmalloc: large alloc 1210089472 bytes == (nil) @ 
tcmalloc: large alloc 1210089472 bytes == (nil) @ 
could not allocate 1210089471 bytes for translation cache

without daemon mode

@tommo1975

I just tried this with the same result...
Is there a fix for this yet?

hhvm --version
HipHop VM v1.000 (rel)
Compiler: heads/master-0-g5c736b05b0ec3289c11448c23b7893dfe47eeaff
Repo schema: e1aa50ccae261e65e3d7741074a920883d87e2d7

web2@web2:~$ sudo /usr/bin/hhvm --config /etc/hhvm.hdf
tcmalloc: large alloc 1210089472 bytes == (nil) @
tcmalloc: large alloc 1210089472 bytes == (nil) @
could not allocate 1210089471 bytes for translation cache

Cheers

@fluffypony

This isn't working for me either - Ubuntu 12.04 LTS on a VM slice with 4 cores and 1.5gb RAM. Output of hhvm --version:

HipHop VM v1.000 (rel)
Compiler: heads/master-0-g640cf62584bbd4a4ed2a581c8df37b8cd16ea69d
Repo schema: 3f5abffea793be128642942772dcff456e3b798d

Running it in regular mode:

could not allocate 1210089471 bytes for translation cache

Adding in the suggestion from sgolemon to limit the cache to 64mb (which I shouldn't have to do - I have 1.5gb memory and about 1.1gb available) it has no error output, but it doesn't do anything. Running hhvm --config /my/config/file just drops me back to the CLI, and checking netstat and ps there is nothing running. Watching top shows that nothing starts, so it's exiting very quickly.

@ptarjan

We're closing out all bugs older than 2 months. http://www.hiphop-php.com/wp/?p=575

If this is still an issue, please re-open it, and in order of goodness:

  1. Give detailed repro steps
  2. Write a test case in hphp/tests/quick (run it with hphp/tests/run) and send the pull request
  3. Fix it in a pull request
@ptarjan ptarjan closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.