Java.lang.StackOverflowError due to regex.Perl5Matcher

The issue is reproducible when running a JMeter test under specific machine. The number of users is 1. The JMeter test uses regex to exclude certain domains ^((?!somerealdomain\.com).)*$. The thread is closed almost immediately and the error in the jmeter log is:

2018-09-03 15:53:12,596 ERROR o.a.j.JMeter: Uncaught exception: 
java.lang.StackOverflowError: null
    at org.apache.oro.text.regex.Perl5Matcher.__match(Unknown Source) ~[oro-2.0.8.jar:?]
    at org.apache.oro.text.regex.Perl5Matcher.__match(Unknown Source) ~[oro-2.0.8.jar:?]
    at org.apache.oro.text.regex.Perl5Matcher.__match(Unknown Source) ~[oro-2.0.8.jar:?]

The Perl5Matcher error is present approximately 1000 times. As the issue is reproducible only on one from our 3 performance agents, I am not sure what is causing it. The heap is 1GB on all machines:

HEAP=-Xms1g -Xmx1g -XX:MaxMetaspaceSize=256m

Java version is the 1.8.0_181 an all three agents.

Do you have ideas where to look?


CF-4165797, reReplaceNoCase is throwing a java.lang.StackOverflowError at org.apache.oro.​text.regex.Perl5Matcher when using Java 1.8  StackOverflowError, we need to understand how JVM invokes method internally. When a method is invoked, a new stack frame is created on the Thread Stack Size or on the call stack. When a method is invoked, a new stack frame is created on the Thread Stack Size or on the call stack.


[SAK-20236] Can trigger java.lang.StackOverflowError via crafted e , java.lang.StackOverflowError. The Arduino environment does some preliminary processing on your _match(Perl5Matcher.java) at com.oroinc.text.regex. at com.oroinc.text.regex.Perl5Matcher._pushState(Perl5Matcher.java) where the last line occurs about 100 times This is an arduino/processing problem, but I dont know why!


I found the solution. I added to the start of the PATH C:\Program Files\Java\jre1.8.0_181\bin; and then restarted the computer as explained here.

What lead me to this was that after I have installed latest Java JRE 64-bit version and I run java -version, the message was "Java is not recognized as an internal or external command". It was strange that the JMeter test has even started its execution on this machine.

There was no need to do this on the other two agents. Thank you all for your kind suggestions.

Learning C for Arduino, import org.apache.oro.text.regex.*; public final pattern = compiler.compile(​expression, Perl5Compiler. Exception in thread "main" java.lang.​StackOverflowError __match(Unknown Source) Any help / advice would be appreciated. Thanks at com.oroinc.text.regex.Perl5Matcher._pushState(Perl5Matcher.java) My sketch has the following: void sendFrame(bool data, const char *charPtr, bool nullTerm) {


Stack Overflow Problem, is related to StackOverflowError for files in repository when trying to view the source of this file Pattern$LazyLoop.match(Pattern.java:4730) at java.util.regex​. The Arduino environment does some preliminary processing on your sketch by manipulating the code using regular expressions.


[#FE-5320], StackOverflowError - java.lang. __match(Perl5Matcher.java:1179) at org.​apache.oro.text.regex.Perl5Matcher. Exception in 'ESN - Activités': java.lang. Thank you for having created the related support ticket:  This problem is probably due to using incompatible versions of the cygwin DLL. Search for cygwin1.dll using the Windows Start->Find/Search facility and delete all but the most recent version. The most recent version should reside in x:\cygwin\bin , where ' x ' is the drive on which you have installed the cygwin distribution.


Conversations - Exception in 'ESN - Activités', java.lang.StackOverflowError The Arduino environment does some preliminary processing on your sketch _match(Perl5Matcher.java) at com.oroinc.text.regex. Why I can't upload my programs to the Arduino board? There are a few things that could be wrong. First make sure your board is on (the green LED is on) and connected to the computer (if it's not, see "what if my board doesn't turn on" above).