hhvm icon indicating copy to clipboard operation
hhvm copied to clipboard

HPHP::Eval::PhpFile::~PhpFile(): assertion `getRef() == 0' failed

Open remibaar opened this issue 13 years ago • 10 comments

Hi,

HHVM keeps throwing this error:

/home/rpmbuild/rpmbuild/BUILD/hiphop-php-2.1.210.1/hphp/runtime/base/file-repository.cpp:59: HPHP::Eval::PhpFile::~PhpFile(): assertion `getRef() == 0' failed.Core dumped: Aborted

After this error hhvm crashes. I'm running wordpress on this server. It shows up out of nowhere, usually during stress-tests. It shows up on a script that have been run a lot already. So the php code is not the problem. How can we resolve this problem?

Remi

remibaar avatar Sep 02 '13 17:09 remibaar

This looks very similar to #899. We haven't been able to repro it in-house yet to investigate further.

Are you by any chance using eval() a lot?

scannell avatar Sep 03 '13 15:09 scannell

I'm using wordpress, so yes eval() is used from time to time.

If I activate the W3TC plugin (which uses eval() a lot) the errors occurs a lot faster, than when this plugin is disabled. So eval() could be the causer. But removing eval() is not a possibility because the wordpress core is using this as well. Are there plans to fix this problem?

remibaar avatar Sep 03 '13 18:09 remibaar

If we can repro it in-house, yes, and we'll take a PR if someone else figures it out first. If you can provide a 100% repro, this will increase the chance of that happening sooner. (We haven't seen it inside yet.)

scannell avatar Sep 03 '13 19:09 scannell

Without a small repro case I can't do anything. Also you're using very old code.

ptarjan avatar Dec 07 '13 00:12 ptarjan

There is a good chance this is still an issue, but it would be good to confirm. As @ptarjan says though, the amount of information here isn't actionable and we haven't seen it internally -- possibly because we use RepoAuthoritative mode in production. (That is one possible workaround if you [or anyone else reading this] cannot figure it out, but we'd be happy if someone did; happy to review a fix.)

scannell avatar Dec 07 '13 00:12 scannell

The issue is still there in HHVM 3.1. If a php file gets modified, in some circumstancies HHVM crashes.

fcorriga avatar Aug 01 '14 17:08 fcorriga

This is very likely to be fixed in c4564894c54b9c711c5aabcbfce8d623ca3da784 (and related diffs).

jdelong avatar Sep 02 '14 21:09 jdelong

very good. i will try the nightly.

P.S.: Please note it was crashing also when uploading an included file

fcorriga avatar Sep 03 '14 09:09 fcorriga

@fcorriga can we close this or are you still seeing errors?

paulbiss avatar Sep 09 '14 02:09 paulbiss

going to test it tonight. close it, if the bug is still there i will reopen.

fcorriga avatar Sep 09 '14 09:09 fcorriga