New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
var_export does not handle circular references #3638
Comments
This bug report is missing a link to reproduction on phpstan.org. |
This might also be related fatal errors we experience in Travis CI, memory related:
|
I never saw this error, I tried adding some debugging code: phpstan/phpstan-src@542238a Can you run dev-master of phpstan/phpstan (please wait 15 minutes so the PHAR gets built) and report what error message you get? Thanks. |
dev-master seems to not output the var_export warnings anymore, but the memory leak seems to persist still mmap() failed: [12] Cannot allocate memory note: we have been using 0.12.27 so far without issues, now with upgrading we experience these. It seems to only happen to parts of the system, a few classes, so something with those must trigger this huge memory allocation issue. But with local system not reproducing this, it is hard to find this only in Travis CI. Also note:
|
I have no idea what's wrong or what's causing this problem :) The big change was between 0.12.25 and 0.12.26 (and that's expected to consume a bit more memory/be slower), but after that I'm not sure. If you could somehow bisect the problem it would be nice. |
You are right, the latest builds that didnt fail are using 0.12.25 so the changes of 0.12.26+ did introduce what is now still there in 0.12.33+ |
What memory limit you currently have? You can set a higher one just for PHPStan with: https://phpstan.org/user-guide/command-line-usage#--memory-limit |
No limit other than what travis gives us ( 3284664320 = 3GB it seems) in bionic distro.
|
There's no way for me to fix this - I need a reproduction. Can you try running PHPStan with --debug to see which file it analyzes before it throws this error? |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Bug report
latest 0.12.33
Travis CI reports
php --version
The text was updated successfully, but these errors were encountered: