hhvm / fbmarkdown

Pure-Hack implementation of GitHub Flavored Markdown, based on the specification at https://github.github.com/gfm/
MIT License
29 stars 11 forks source link

Stackoverflow in src/unparsed-blocks/Lines.php:105 #9

Closed lexidor closed 4 years ago

lexidor commented 5 years ago

https://github.com/hhvm/hh-apidoc/issues/33

When generating the api-doc, this repo caused a stackoverflow:

Console output Parsing... Generating documentation... Creating index document...

Fatal error: Stack overflow in /opt/lampp/htdocs/hh-apidoc/vendor/facebook/fbmarkdown/src/unparsed-blocks/Lines.php on line 105

hhvm --version
HipHop VM 4.8.0 (rel)
Compiler: 1559583155_055573146
Repo schema: bbe84ac83be4cac392df68fc2c6cc8b7c6516bfd
lexidor commented 5 years ago

I have ran the code again with a debug_backtrace. It took over an hour, but I've got a stacktrace. This is not the stacktrace that would have normally resulted in the stackoverflow. This is the stacktrace at which my ram couldn't handle it anymore. (HHVM consumed over 12GB). I hope that this information is useful in the debugging effort. https://pastebin.com/aDXnST4P

lexidor commented 5 years ago

Here is composer.lock: https://pastebin.com/UzBcwR5k

lexidor commented 4 years ago

No longer an issue