-
Notifications
You must be signed in to change notification settings - Fork 91
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
regexp causes hang in jruby but terminates in MRI #44
Comments
using =~ seems to match properly, so the problem seems to be related to advancing in either scan or subsequent joni match |
split also hangs, so it's a joni issue |
I can reproduce this in onigmo using subsequent match via:
The problem is that we always use *str as zero and only start at *start argument which causes the trouble. |
so after a quick&dirty https://gist.github.com/lopex/be0d7fddf2eabb62ee371f9beb9ca47b
produces: and in joni:
which produces: we match onigmo, but there's something wrong in onigmo since there's either overflow or a bad signed/unsigned cast there. |
for the former case, after shortenning the input a bit:
joni also completes, after w few seconds. |
In MRI 2.6:
With Latest JRuby snapshot:
[edit] Also hangs on jruby 1.7.27, 9.2.5.0, 9.2.7.0
The text was updated successfully, but these errors were encountered: