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

java/util/concurrent utilities need to handle StackOverflowError:Class loading hang with clss21201m1

XMLWordPrintable

    • b123
    • 7
    • generic
    • generic

      Stress test
      nsk/stress/jck60/jck60001

      intermittenly hangs starting JDK 7 b123 (HS 20 b04), does not hang with JDK 7 b122 (HS 20 b03).

      Java stack may be different. Sometimes, there are other threads doing class loading too. It always seems to involve clss21201m1.

      1.
      "Thread-840" prio=3 tid=0x00920800 nid=0x354 waiting on condition [0xb20fd000]
         java.lang.Thread.State: WAITING (parking)
              at sun.misc.Unsafe.park(Native Method)
              - parking to wait for <0xed5905e8> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)
              at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
              at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:834)
              at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:867)
              at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1197)
              at java.util.concurrent.locks.ReentrantLock$NonfairSync.lock(ReentrantLock.java:214)
              at java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:290)
              at java.util.concurrent.ConcurrentHashMap$Segment.put(ConcurrentHashMap.java:445)
              at java.util.concurrent.ConcurrentHashMap.putIfAbsent(ConcurrentHashMap.java:925)
              at java.lang.ClassLoader.getClassLoadingLock(ClassLoader.java:464)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:405)
              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:327)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
              at javasoft.sqe.tests.lang.dasg196.dasg19603m0.dasg19603m0.run(dasg19603m0.java:310)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:613)
              at nsk.stress.share.StressTest$TestThread.runTest(StressTest.java:735)
              at nsk.stress.share.StressTest$TestThread.run(StressTest.java:768)

      "Thread-459" prio=3 tid=0x007b7400 nid=0x1d7 waiting on condition [0xc9f7d000]
         java.lang.Thread.State: WAITING (parking)
              at sun.misc.Unsafe.park(Native Method)
              - parking to wait for <0xed5905e8> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)
              at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
              at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:834)
              at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:867)
              at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1197)
              at java.util.concurrent.locks.ReentrantLock$NonfairSync.lock(ReentrantLock.java:214)
              at java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:290)
              at java.util.concurrent.ConcurrentHashMap$Segment.put(ConcurrentHashMap.java:445)
              at java.util.concurrent.ConcurrentHashMap.putIfAbsent(ConcurrentHashMap.java:925)
              at java.lang.ClassLoader.getClassLoadingLock(ClassLoader.java:464)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:405)
              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:327)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
              at java.lang.Class.forName0(Native Method)
              at java.lang.Class.forName(Class.java:186)
              at javasoft.sqe.tests.lang.clss212.clss21201m1.clss21201m1.run(clss21201m1.java:1200)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:613)
              at nsk.stress.share.StressTest$TestThread.runTest(StressTest.java:735)
              at nsk.stress.share.StressTest$TestThread.run(StressTest.java:768)

      "Thread-174" prio=3 tid=0x005ad800 nid=0xba waiting on condition [0xdbd7c000]
         java.lang.Thread.State: WAITING (parking)
              at sun.misc.Unsafe.park(Native Method)
              - parking to wait for <0xed5905e8> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)
              at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
              at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:834)
              at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:867)
              at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1197)
              at java.util.concurrent.locks.ReentrantLock$NonfairSync.lock(ReentrantLock.java:214)
              at java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:290)
              at java.util.concurrent.ConcurrentHashMap$Segment.put(ConcurrentHashMap.java:445)
              at java.util.concurrent.ConcurrentHashMap.putIfAbsent(ConcurrentHashMap.java:925)
              at java.lang.ClassLoader.getClassLoadingLock(ClassLoader.java:464)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:405)
              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:327)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
              at javasoft.sqe.tests.lang.binc049.binc04901.binc04901c.<init>(binc04901c.java:33)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
              at java.lang.reflect.Constructor.newInstance(Constructor.java:530)
              at java.lang.Class.newInstance0(Class.java:372)
              at java.lang.Class.newInstance(Class.java:325)
              at javasoft.sqe.tests.lang.binc049.binc04901.binc04901.run(binc04901.java:23)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:613)
              at nsk.stress.share.StressTest$TestThread.runTest(StressTest.java:735)
              at nsk.stress.share.StressTest$TestThread.run(StressTest.java:768)



      2.

      "Thread-459" prio=3 tid=0x006b2800 nid=0x1d7 waiting on condition [0xc9f7d000]
         java.lang.Thread.State: WAITING (parking)
              at sun.misc.Unsafe.park(Native Method)
              - parking to wait for <0xed58f930> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)
              at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
              at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:834)
              at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:867)
              at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1197)
              at java.util.concurrent.locks.ReentrantLock$NonfairSync.lock(ReentrantLock.java:214)
              at java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:290)
              at java.util.concurrent.ConcurrentHashMap$Segment.put(ConcurrentHashMap.java:445)
              at java.util.concurrent.ConcurrentHashMap.putIfAbsent(ConcurrentHashMap.java:925)
              at java.lang.ClassLoader.getClassLoadingLock(ClassLoader.java:464)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:405)
              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:327)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
              at java.lang.Class.forName0(Native Method)
              at java.lang.Class.forName(Class.java:186)
              at javasoft.sqe.tests.lang.clss212.clss21201m1.clss21201m1.run(clss21201m1.java:1200)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:613)
              at nsk.stress.share.StressTest$TestThread.runTest(StressTest.java:735)
              at nsk.stress.share.StressTest$TestThread.run(StressTest.java:768)

      3.
      Thread-459" prio=3 tid=0x007af400 nid=0x1d7 waiting on condition [0xc9f60000]
         java.lang.Thread.State: WAITING (parking)
              at sun.misc.Unsafe.park(Native Method)
              - parking to wait for <0xed58f930> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)
              at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
              at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:834)
              at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:867)
              at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1197)
              at java.util.concurrent.locks.ReentrantLock$NonfairSync.lock(ReentrantLock.java:214)
              at java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:290)
              at java.util.concurrent.ConcurrentHashMap$Segment.put(ConcurrentHashMap.java:445)
              at java.util.concurrent.ConcurrentHashMap.putIfAbsent(ConcurrentHashMap.java:925)
              at java.lang.ClassLoader.getClassLoadingLock(ClassLoader.java:464)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:405)
              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:327)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
              at java.lang.ClassLoader.defineClass1(Native Method)
              at java.lang.ClassLoader.defineClass(ClassLoader.java:796)
              at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:144)
              at java.net.URLClassLoader.defineClass(URLClassLoader.java:382)
              at java.net.URLClassLoader.access$100(URLClassLoader.java:75)
              at java.net.URLClassLoader$1.run(URLClassLoader.java:294)
              at java.net.URLClassLoader$1.run(URLClassLoader.java:288)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.net.URLClassLoader.findClass(URLClassLoader.java:287)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
              - locked <0xe8029340> (a java.lang.Object)
              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:327)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      ...
              - locked <0xe8452dc0> (a java.lang.Object)
              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:327)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
              at java.lang.Class.forName0(Native Method)
              at java.lang.Class.forName(Class.java:186)
              at javasoft.sqe.tests.lang.clss212.clss21201m1.clss21201m1.run(clss21201m1.java:1200)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:613)
              at nsk.stress.share.StressTest$TestThread.runTest(StressTest.java:735)
              at nsk.stress.share.StressTest$TestThread.run(StressTest.java:768)

            fparain Frederic Parain
            nhaustov Nicolay Haustov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: