java.lang.StackOverflowError

Mirth Project | Hugo Soares | 1 year ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    stackoverflow exception while using String match in java

    Stack Overflow | 6 years ago | Boris C
    java.lang.StackOverflowError
  2. 0

    FULL PRODUCT VERSION : java version "1.8.0_66" Java(TM) SE Runtime Environment (build 1.8.0_66-b18) Java HotSpot(TM) Client VM (build 25.66-b18, mixed mode) ADDITIONAL OS VERSION INFORMATION : icrosoft Windows [Version 6.1.7601] A DESCRIPTION OF THE PROBLEM : StackOverflowError occurs when invoking Matcher.find() with some data sets STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : Test case requires: - com.google.guava : guava : 18.0 - test data from here https://raw.githubusercontent.com/twbs/bootstrap/86eac52cceb6b215bf14636f9d8db97c6987777d/less/scaffolding.less Note: failing code line is taken from http://yui.github.io/yuicompressor/ @Test public void testSomeMethod() throws IOException { URL url = Resources.getResource(this.getClass(), "scaffolding.css"); String css = Resources.toString(url, Charsets.UTF_8); Pattern p = Pattern.compile("(\"([^\\\\\"]|\\\\.|\\\\)*\")|(\'([^\\\\\']|\\\\.|\\\\)*\')"); Matcher m = p.matcher(css); for( int i = 1; m.find(); i++ ) { System.out.print("Found match #" + i); } } EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - 'm.find()' should return true/false without StackOverflowError ACTUAL - StackOverflowError occurs ERROR MESSAGES/STACK TRACES THAT OCCUR : java.lang.StackOverflowError at java.lang.Character.codePointAt(Character.java:4866) at java.util.regex.Pattern$CharProperty.match(Pattern.java:3775) at java.util.regex.Pattern$Branch.match(Pattern.java:4604) at java.util.regex.Pattern$GroupHead.match(Pattern.java:4658) at java.util.regex.Pattern$Loop.match(Pattern.java:4785) at java.util.regex.Pattern$GroupTail.match(Pattern.java:4717) at java.util.regex.Pattern$BranchConn.match(Pattern.java:4568) at java.util.regex.Pattern$CharProperty.match(Pattern.java:3777) at java.util.regex.Pattern$Branch.match(Pattern.java:4604) at java.util.regex.Pattern$GroupHead.match(Pattern.java:4658) at java.util.regex.Pattern$Loop.match(Pattern.java:4785) at java.util.regex.Pattern$GroupTail.match(Pattern.java:4717) at java.util.regex.Pattern$BranchConn.match(Pattern.java:4568) at java.util.regex.Pattern$CharProperty.match(Pattern.java:3777) at java.util.regex.Pattern$Branch.match(Pattern.java:4604) ... REPRODUCIBILITY : This bug can be reproduced always. ---------- BEGIN SOURCE ---------- See "Steps to Reproduce" ---------- END SOURCE ---------- CUSTOMER SUBMITTED WORKAROUND : Unknown

    JDK Bug System | 1 year ago | Webbug Group
    java.lang.StackOverflowError
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Events plugin breaks Java's RegExp

    GitHub | 6 years ago | FauxFaux
    java.lang.StackOverflowError
  5. 0

    Code will no longer compile after change in preprocessor

    GitHub | 3 years ago | Lauszus
    java.lang.StackOverflowError

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.StackOverflowError

      No message provided

      at java.util.regex.Pattern$GroupHead.match()
    2. Java RT
      Pattern$Loop.match
      1. java.util.regex.Pattern$GroupHead.match(Unknown Source)
      2. java.util.regex.Pattern$Loop.match(Unknown Source)
      3. java.util.regex.Pattern$GroupTail.match(Unknown Source)
      4. java.util.regex.Pattern$BranchConn.match(Unknown Source)
      5. java.util.regex.Pattern$CharProperty.match(Unknown Source)
      6. java.util.regex.Pattern$Branch.match(Unknown Source)
      7. java.util.regex.Pattern$GroupHead.match(Unknown Source)
      8. java.util.regex.Pattern$Loop.match(Unknown Source)
      8 frames