← Back to team overview

openjdk team mailing list archive

[Bug 1202707] [NEW] 100% CPU load and freeze caused by sun.reflect.Reflection.getCallerClass0 with Update 25

 

Public bug reported:

I ask for adding previous version of this package back into repository,
there was no such problem with Update 21.

Example thread dump with issue caused by Apache Log4j 2:
"main" prio=10 tid=0xb6806800 nid=0x49a runnable [0xb69cc000]
   java.lang.Thread.State: RUNNABLE
        at sun.reflect.Reflection.getCallerClass0(Native Method)
        at sun.reflect.Reflection.getCallerClass(Reflection.java:68)
        at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.getContext(ClassLoaderContextSelector.java:80)
        at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:74)
        at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:31)
        at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:342)
        at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:301)

** Affects: openjdk-7 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: regression-update

** Tags added: regression-update

** Summary changed:

- 100% CPU load and hang caused by sun.reflect.Reflection.getCallerClass0
+ 100% CPU load and hang caused by sun.reflect.Reflection.getCallerClass0 with Update 25

** Description changed:

- I ask for adding previous version of this package back into repository.
+ I ask for adding previous version of this package back into repository,
+ there were no such problem with Update 21.
  
  Example thread dump with issue caused by Apache Log4j 2:
  "main" prio=10 tid=0xb6806800 nid=0x49a runnable [0xb69cc000]
-    java.lang.Thread.State: RUNNABLE
-         at sun.reflect.Reflection.getCallerClass0(Native Method)
-         at sun.reflect.Reflection.getCallerClass(Reflection.java:68)
-         at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
-         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
-         at java.lang.reflect.Method.invoke(Method.java:606)
-         at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.getContext(ClassLoaderContextSelector.java:80)
-         at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:74)
-         at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:31)
-         at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:342)
-         at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:301)
+    java.lang.Thread.State: RUNNABLE
+         at sun.reflect.Reflection.getCallerClass0(Native Method)
+         at sun.reflect.Reflection.getCallerClass(Reflection.java:68)
+         at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
+         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+         at java.lang.reflect.Method.invoke(Method.java:606)
+         at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.getContext(ClassLoaderContextSelector.java:80)
+         at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:74)
+         at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:31)
+         at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:342)
+         at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:301)

** Summary changed:

- 100% CPU load and hang caused by sun.reflect.Reflection.getCallerClass0 with Update 25
+ 100% CPU load and freeze caused by sun.reflect.Reflection.getCallerClass0 with Update 25

** Description changed:

  I ask for adding previous version of this package back into repository,
- there were no such problem with Update 21.
+ there was no such problem with Update 21.
  
  Example thread dump with issue caused by Apache Log4j 2:
  "main" prio=10 tid=0xb6806800 nid=0x49a runnable [0xb69cc000]
     java.lang.Thread.State: RUNNABLE
          at sun.reflect.Reflection.getCallerClass0(Native Method)
          at sun.reflect.Reflection.getCallerClass(Reflection.java:68)
          at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:606)
          at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.getContext(ClassLoaderContextSelector.java:80)
          at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:74)
          at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:31)
          at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:342)
          at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:301)

-- 
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-7 in Ubuntu.
https://bugs.launchpad.net/bugs/1202707

Title:
  100% CPU load and freeze caused by
  sun.reflect.Reflection.getCallerClass0 with Update 25

Status in “openjdk-7” package in Ubuntu:
  New

Bug description:
  I ask for adding previous version of this package back into
  repository, there was no such problem with Update 21.

  Example thread dump with issue caused by Apache Log4j 2:
  "main" prio=10 tid=0xb6806800 nid=0x49a runnable [0xb69cc000]
     java.lang.Thread.State: RUNNABLE
          at sun.reflect.Reflection.getCallerClass0(Native Method)
          at sun.reflect.Reflection.getCallerClass(Reflection.java:68)
          at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:606)
          at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.getContext(ClassLoaderContextSelector.java:80)
          at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:74)
          at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:31)
          at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:342)
          at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:301)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/1202707/+subscriptions


Follow ups

References