Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Parser does not seem to terminate when parsing this string #4728
And I am using OS X 10.12.6.
When reading a file that contains this comment:
The jruby interpreter seems to run forever. Even when I have removed everything from the ruby file except for this line, it still seems to not terminate when parsing this particular string.
Here's the stack trace of the non-terminating code when I've tried to dump the running thread:
Hopefully that helps.
MRI seems to parse this line properly and terminates immediately.
@jsyeo thanks for reporting this. The lexer processes comment lines looking for magic comment pragmas and we use a regexp. I am guessing something about this string causes our regexp engine to behave pathologically. This definitely helps since it gives a realistic line where we choke.