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

JRuby 1.7.24 regex thread safety regression #4977

Closed
colinsurprenant opened this issue Apr 1, 2016 · 10 comments · Fixed by #4995
Closed

JRuby 1.7.24 regex thread safety regression #4977

colinsurprenant opened this issue Apr 1, 2016 · 10 comments · Fixed by #4995

Comments

@colinsurprenant
Copy link
Contributor

per logstash-plugins/logstash-filter-useragent#25 and logstash-plugins/logstash-filter-useragent#26 it seems that the JRuby regex code is not thread safe.

We need to
1- confirm that the JRuby regex implementation is not thread safe
2- if it's a bug, report and/or submit fix
3- verify out usage of regexes to make sure this problem does not surface elsewhere.

@colinsurprenant
Copy link
Contributor Author

Per jruby/jruby#3670 this seems to be a regression in JRuby 1.7.24.

@colinsurprenant
Copy link
Contributor Author

I suggest we downgrade to 1.7.23 for 2.3.1. We just need to asses if some critical 2.3 bugs were fixed by 1.7.24 /cc @jsvd

@colinsurprenant colinsurprenant changed the title potential JRuby regex thread safety problem JRuby regex thread safety problem Apr 1, 2016
@colinsurprenant
Copy link
Contributor Author

per @jsvd the only critical issue 1.7.24 solved was the windows file stat problem

@colinsurprenant colinsurprenant changed the title JRuby regex thread safety problem JRuby 1.7.24 regex thread safety regression Apr 1, 2016
@ph
Copy link
Contributor

ph commented Apr 4, 2016

IIRC the .24 was a release that fix an issue with windows 7 with the File.stats and a thread satefy issue. jruby/jruby#3525

@ph
Copy link
Contributor

ph commented Apr 4, 2016

http://jruby.org/2015/11/24/jruby-1-7-23.html

JRuby 1.7.23 fixed the memory leaks on recent windows 2012 server etc, are we thinking about reverting back to .23?

@jsvd
Copy link
Member

jsvd commented Apr 4, 2016

if the fix in .24 targets only win7 it might be reasonable to switch to .23 for now and send out a big warning

@outcoldman
Copy link

Which version has this fix?
I see this issue in logstash 5.4.2

@jsvd
Copy link
Member

jsvd commented Jun 28, 2017

@outcoldman can you provide some information on what you're seeing? there are many situations present in this issue

@outcoldman
Copy link

@jsvd created an issue for useragent plugin logstash-plugins/logstash-filter-useragent#47 with some additional information, let me know if you need more info

@outcoldman
Copy link

@jsvd and about versions

$ ./opt/logstash/bin/logstash --version          
logstash 5.4.2
$ ./opt/logstash/vendor/jruby/bin/jruby --version     
jruby 1.7.25 (1.9.3p551) 2016-04-13 867cb81 on OpenJDK 64-Bit Server VM 1.8.0_131-8u131-b11-0ubuntu1.16.04.2-b11 +jit [linux-amd64]

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

Successfully merging a pull request may close this issue.

4 participants