Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8337512

Multiple StackOverflowErrors with recursion involving felix URLStreamHandler

XMLWordPrintable

      BUG TYPE CHOSEN
      ===============
      Code

      == Product: Java SE JDK and JRE (856) ==
      ========================================
      Problem Description
      ===================
      PUBLIC PROBLEM DESCRIPTION
      VM.info reports multiple StackOverflowErrors, e.g.

      ------------ P R O C E S S ---------------

      OutOfMemory and StackOverflow Exception counts:
      StackOverflowErrors=53

      ------------------------------------------------------

      and

      ------------ P R O C E S S ---------------

      OutOfMemory and StackOverflow Exception counts:
      StackOverflowErrors=81

      ------------------------------------------------------

       And we see some NullPointerExceptions being thrown about 1-2 times per second that may be due to corruption caused by the overflows:

      Event: 206891.955 Thread 0x00007fd465d1a000 Exception <a 'java/lang/NullPointerException'> (0x00000006aad43828)
      Event: 206892.746 Thread 0x00007fd466274000 Exception <a 'java/lang/NullPointerException'> (0x000000069acff538)
      Event: 206894.729 Thread 0x00007fd465d1d000 Exception <a 'java/lang/NullPointerException'> (0x000000066bf5afb8)
      Event: 206895.559 Thread 0x00007fd466274000 Exception <a 'java/lang/NullPointerException'> (0x0000000657a8edd8)
      Event: 206897.807 Thread 0x00007fd465d1c000 Exception <a 'java/lang/NullPointerException'> (0x00000006241c0398)
      Event: 206897.934 Thread 0x00007fd4641ed000 Exception <a 'java/lang/NullPointerException'> (0x0000000623b5e320)
      Event: 206898.552 Thread 0x00007fd465d1a000 Exception <a 'java/lang/NullPointerException'> (0x0000000613bd3ee8)
      Event: 206898.952 Thread 0x00007fd46628d800 Exception <a 'java/lang/NullPointerException'> (0x0000000606c494e8)
      Event: 206899.775 Thread 0x00007fd465d1c000 Exception <a 'java/lang/NullPointerException'> (0x00000005f0050fb0)

      A review of one thread dump found at least one thread with some recursion:

      This segment repeated 59 times:

      at java.net.URL.<init>(URL.java:639)
      at java.net.URL.<init>(URL.java:507)
      at sun.misc.URLClassPath$FileLoader.getResource(URLClassPath.java:1340)
      at sun.misc.URLClassPath.getResource(URLClassPath.java:250)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
      at java.lang.Class.getDeclaredMethods0(Native Method)
      at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
      at java.lang.Class.getDeclaredMethod(Class.java:2128)
      at org.apache.felix.framework.util.SecureAction.getDeclaredMethod(SecureAction.java:849)
      at org.apache.felix.framework.URLHandlers.getFrameworkFromContext(URLHandlers.java:772)
      at org.apache.felix.framework.URLHandlersStreamHandlerProxy.getStreamHandlerService(URLHandlersStreamHandlerProxy.java:574)
      at org.apache.felix.framework.URLHandlersStreamHandlerProxy.parseURL(URLHandlersStreamHandlerProxy.java:369)

      Only 1025 lines were printed out, we don't seem to be seeing the whole stack
      We would like a Sustaining analysis of this and other thread dumps.

      END PUBLIC PROBLEM DESCRIPTION

      Full JDK Versions
      -----------------
      JDK 8u411

      System Configuration
      --------------------
      RHEL 8

            coffeys Sean Coffey
            shadowbug Shadow Bug
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: