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

Possible memory leak #47

Closed
mkusher opened this issue Jun 6, 2016 · 4 comments
Closed

Possible memory leak #47

mkusher opened this issue Jun 6, 2016 · 4 comments
Labels

Comments

@mkusher
Copy link
Member

mkusher commented Jun 6, 2016

padawan-php/padawan.vim#17

@jludwig
Copy link

jludwig commented Jun 7, 2016

It might be related to Symfony\Component\VarDumper\Tests\Fixtures\NotLoadableClass. Before fixing the class to not extend itself, I encountered the same error rather than a segfault.

@mkusher
Copy link
Member Author

mkusher commented Jun 8, 2016

@jludwig so, is it a duplicate of #42 ?

@mkusher
Copy link
Member Author

mkusher commented Jun 8, 2016

Duplicate of #42

@mkusher mkusher closed this as completed Jun 8, 2016
@jludwig
Copy link

jludwig commented Jun 8, 2016

@mkusher

I installed etsy/phan and ran into the same issue during padawan generate:

[2016-06-08 10:04:07] completer.INFO: Progress: 12% [] []
[2016-06-08 10:04:07] completer.INFO: processing vendor/etsy/phan/tests/files/src/0149_inheritance_loops.php [] []
[2016-06-08 10:04:07] completer.DEBUG: Cache status: disabled [] []
[2016-06-08 10:04:07] completer.INFO: Traversing with 1 processors [] []
[2016-06-08 10:04:07] completer.INFO: Found 6 nodes [] []
[2016-06-08 10:04:07] completer.INFO: Parsing: [0.00036001205444336]s [] []
[2016-06-08 10:04:07] completer.DEBUG: Processing nodes 6 [] []
[2016-06-08 10:04:07] completer.DEBUG: Processing node C [] []
PHP Fatal error:  Allowed memory size of 2147483648 bytes exhausted (tried to allocate 33554432 bytes) in /home/jludwig/workspace/cyberlard/vendor/mkusher/padawan/src/Entity/Collection/MethodsCollection.php on line 66
Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 33554432 bytes) in /home/jludwig/workspace/cyberlard/vendor/mkusher/padawan/src/Entity/Collection/MethodsCollection.php on line 66

It's a test with the same thing that ended up crashing #42, classes extending themselves. I have not run into it anywhere else, so unless Siprah comes back and says otherwise, I do believe it is a duplicate.

<?php

class C extends C {}


class E extends F {}
class F extends E {}

class G extends H {}
class H extends I {}
class I extends G {}

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

No branches or pull requests

2 participants