Skip to content
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

hhvm Stack overflow exception #181

Open
karser opened this issue Dec 20, 2014 · 2 comments
Open

hhvm Stack overflow exception #181

karser opened this issue Dec 20, 2014 · 2 comments

Comments

@karser
Copy link

karser commented Dec 20, 2014

When i use @secure(roles="ROLE_USER"), hhvm always falls with a strange error:

Symfony log:
request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalErrorException: ": Stack overflow" at line -1 {"exception":"[object](Symfony\Component\Debug\Exception\FatalErrorException: : Stack overflow at :-1)"} []

HHVM log:
\nFatal error: Stack overflow in app/cache/dev/classes.php on line 2759
\nNotice: Undefined index: 16777217 in vendor/symfony/symfony/src/Symfony/Component/Debug/ErrorHandler.php on line 513

I use:
"jms/security-extra-bundle": "dev-master"(1.5-dev),
hhvm --version
HipHop VM 3.5.0-dev~nightly.2014.12.19 (rel)
Compiler: heads/master-0-g5c4ac76f5d3b2b4b972fd7db1d2580a4cc35ad50
Repo schema: 46c9b799c227a12b6c161fcbd528a745a927babc
Extension API: 20140829

@tyler-sommer
Copy link

I'm also running into this on hhvm 3.6.0 release. using "jms/security-extra-bundle": "1.5.*"

I tried increasing the HHVM stack size to its max 65536 but no joy. @karser did you find another workaround?

@karser
Copy link
Author

karser commented Mar 13, 2015

@tyler-sommer, I have no complicated logic, so i extracted it to security.yml and removed JMSSecurityExtraBundle with 3 its deps.

    access_control:
        - { path: ^/login$, role: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/user/payment, role: ROLE_USER }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants