HPHP::Eval::PhpFile::~PhpFile(): assertion `getRef() == 0' failed
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
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?
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?
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.)
Without a small repro case I can't do anything. Also you're using very old code.
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.)
The issue is still there in HHVM 3.1. If a php file gets modified, in some circumstancies HHVM crashes.
This is very likely to be fixed in c4564894c54b9c711c5aabcbfce8d623ca3da784 (and related diffs).
very good. i will try the nightly.
P.S.: Please note it was crashing also when uploading an included file
@fcorriga can we close this or are you still seeing errors?
going to test it tonight. close it, if the bug is still there i will reopen.