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

Scaladoc parser crashes with a StackOverflow #7013

Closed
scabug opened this issue Jan 23, 2013 · 4 comments
Closed

Scaladoc parser crashes with a StackOverflow #7013

scabug opened this issue Jan 23, 2013 · 4 comments
Assignees
Milestone

Comments

@scabug
Copy link

@scabug scabug commented Jan 23, 2013

Getting a StackOverflowError in 2.9.2 and 2.10.0.

This source file crashes it:
https://gist.github.com/cab02ebbc18b9716108f

However, if you remove one of the package statements, or if you remove
some lines in the @example, it starts working. I am unable to narrow it
further.

The stack spins around on some lines that are close together in
SyntaxHigh.scala

at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:219)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:225)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:219)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:274)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:219)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:219)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:219)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:219)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:219)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:219)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:219)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:219)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:219)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:219)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:217)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:278)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:278)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:278)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:278)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:278)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:278)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:278)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:278)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:274)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:219)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:225)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:219)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:274)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:219)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:219)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:219)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:219)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:219)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:219)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:219)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:219)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:219)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:219)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:217)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:278)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:274)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:219)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:274)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:219)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:252)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:278)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:278)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:278)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:278)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:278)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:278)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:278)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:278)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:278)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:278)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:274)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:219)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:225)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:219)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:274)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:219)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:219)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:219)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:219)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:219)
at scala.tools.nsc.doc.html.SyntaxHigh$.parse$1(SyntaxHigh.scala:219)

Thanks to Tony Morris for reporting and working on minimizing.

@scabug
Copy link
Author

@scabug scabug commented Jan 23, 2013

Imported From: https://issues.scala-lang.org/browse/SI-7013?orig=1
Reporter: @heathermiller
Affected Versions: 2.10.0

@scabug
Copy link
Author

@scabug scabug commented Jan 23, 2013

@heathermiller said:
Vlad-- I assigned this to you, since you're technically the responsible "Scaladoc" person. I'm not sure what role Eugene V. has with regard to Scaladoc + tickets, so please feel free to reassign if necessary!

@scabug
Copy link
Author

@scabug scabug commented Jan 25, 2013

@tonymorris said:
Hello, I am the original reporter of this bug. I could not narrow it further because removing some lines stops the crash, adding some lines does the same. It is unclear which lines cause the crash and why, only that it is related to the @example tag.

@scabug
Copy link
Author

@scabug scabug commented Mar 19, 2013

@kzys said:
Sorry for taking this assigned issue but it's easy to fix!
scala/scala#2279

@scabug scabug closed this as completed May 1, 2013
@scabug scabug added this to the 2.10.2-RC1 milestone Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants