Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JVM hangs with specific testcase judging #2

Open
NewbieOrange opened this issue Apr 1, 2019 · 0 comments
Open

JVM hangs with specific testcase judging #2

NewbieOrange opened this issue Apr 1, 2019 · 0 comments

Comments

@NewbieOrange
Copy link
Owner

`2019-04-01 22:34:18
Full thread dump Java HotSpot(TM) 64-Bit Server VM (11.0.1+13-LTS mixed mode):

Threads class SMR info:
_java_thread_list=0x000001ee9991a320, length=11, elements={
0x000001eef3f24000, 0x000001eefed41000, 0x000001eeff5fe800, 0x000001eeff65d800,
0x000001eeff65f000, 0x000001eeff669000, 0x000001eeff690800, 0x000001eefed49000,
0x000001eeff5d0800, 0x000001eeff913800, 0x000001eeff914000
}

"main" #1 prio=5 os_prio=0 cpu=734.38ms elapsed=39.66s tid=0x000001eef3f24000 nid=0x13d8 waiting on condition [0x0000002bee1ff000]
java.lang.Thread.State: WAITING (parking)
at jdk.internal.misc.Unsafe.park([email protected]/Native Method)
- parking to wait for <0x000000070fe15270> (a java.util.concurrent.CountDownLatch$Sync)
at java.util.concurrent.locks.LockSupport.park([email protected]/LockSupport.java:194)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt([email protected]/AbstractQueuedSynchronizer.java:885)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly([email protected]/AbstractQueuedSynchronizer.java:1039)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly([email protected]/AbstractQueuedSynchronizer.java:1345)
at java.util.concurrent.CountDownLatch.await([email protected]/CountDownLatch.java:232)
at xyz.chengzi.offlinejudge.runtime.Judge.judge(Judge.java:78)
at xyz.chengzi.offlinejudge.OfflineJudge.judge(OfflineJudge.java:40)
at xyz.chengzi.offlinejudge.OfflineJudge.main(OfflineJudge.java:26)

Locked ownable synchronizers:
- None

"Reference Handler" #2 daemon prio=10 os_prio=2 cpu=0.00ms elapsed=39.64s tid=0x000001eefed41000 nid=0x21dc waiting on condition [0x0000002bee8ff000]
java.lang.Thread.State: RUNNABLE
at java.lang.ref.Reference.waitForReferencePendingList([email protected]/Native Method)
at java.lang.ref.Reference.processPendingReferences([email protected]/Reference.java:241)
at java.lang.ref.Reference$ReferenceHandler.run([email protected]/Reference.java:213)

Locked ownable synchronizers:
- None

"Finalizer" #3 daemon prio=8 os_prio=1 cpu=0.00ms elapsed=39.64s tid=0x000001eeff5fe800 nid=0xc68 in Object.wait() [0x0000002bee9fe000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait([email protected]/Native Method)
- waiting on <0x00000007011efe20> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove([email protected]/ReferenceQueue.java:155)
- waiting to re-lock in wait() <0x00000007011efe20> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove([email protected]/ReferenceQueue.java:176)
at java.lang.ref.Finalizer$FinalizerThread.run([email protected]/Finalizer.java:170)

Locked ownable synchronizers:
- None

"Signal Dispatcher" #4 daemon prio=9 os_prio=2 cpu=0.00ms elapsed=39.63s tid=0x000001eeff65d800 nid=0x1cbc runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE

Locked ownable synchronizers:
- None

"Attach Listener" #5 daemon prio=5 os_prio=2 cpu=0.00ms elapsed=39.63s tid=0x000001eeff65f000 nid=0x51b4 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE

Locked ownable synchronizers:
- None

"C2 CompilerThread0" #6 daemon prio=9 os_prio=2 cpu=562.50ms elapsed=39.63s tid=0x000001eeff669000 nid=0x2e68 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
No compile task

Locked ownable synchronizers:
- None

"C1 CompilerThread0" #9 daemon prio=9 os_prio=2 cpu=390.63ms elapsed=39.63s tid=0x000001eeff690800 nid=0x2a44 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
No compile task

Locked ownable synchronizers:
- None

"Sweeper thread" #10 daemon prio=9 os_prio=2 cpu=0.00ms elapsed=39.63s tid=0x000001eefed49000 nid=0x46c runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE

Locked ownable synchronizers:
- None

"Common-Cleaner" #11 daemon prio=8 os_prio=1 cpu=0.00ms elapsed=39.60s tid=0x000001eeff5d0800 nid=0x12dc in Object.wait() [0x0000002beefff000]
java.lang.Thread.State: TIMED_WAITING (on object monitor)
at java.lang.Object.wait([email protected]/Native Method)
- waiting on <0x00000007011fd5b0> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove([email protected]/ReferenceQueue.java:155)
- waiting to re-lock in wait() <0x00000007011fd5b0> (a java.lang.ref.ReferenceQueue$Lock)
at jdk.internal.ref.CleanerImpl.run([email protected]/CleanerImpl.java:148)
at java.lang.Thread.run([email protected]/Thread.java:834)
at jdk.internal.misc.InnocuousThread.run([email protected]/InnocuousThread.java:134)

Locked ownable synchronizers:
- None

"Monitor Ctrl-Break" #12 daemon prio=5 os_prio=0 cpu=0.00ms elapsed=39.56s tid=0x000001eeff913800 nid=0x13ec runnable [0x0000002bef0fe000]
java.lang.Thread.State: RUNNABLE
at java.net.SocketInputStream.socketRead0([email protected]/Native Method)
at java.net.SocketInputStream.socketRead([email protected]/SocketInputStream.java:115)
at java.net.SocketInputStream.read([email protected]/SocketInputStream.java:168)
at java.net.SocketInputStream.read([email protected]/SocketInputStream.java:140)
at sun.nio.cs.StreamDecoder.readBytes([email protected]/StreamDecoder.java:284)
at sun.nio.cs.StreamDecoder.implRead([email protected]/StreamDecoder.java:326)
at sun.nio.cs.StreamDecoder.read([email protected]/StreamDecoder.java:178)
- locked <0x0000000701206658> (a java.io.InputStreamReader)
at java.io.InputStreamReader.read([email protected]/InputStreamReader.java:185)
at java.io.BufferedReader.fill([email protected]/BufferedReader.java:161)
at java.io.BufferedReader.readLine([email protected]/BufferedReader.java:326)
- locked <0x0000000701206658> (a java.io.InputStreamReader)
at java.io.BufferedReader.readLine([email protected]/BufferedReader.java:392)
at com.intellij.rt.execution.application.AppMainV2$1.run(AppMainV2.java:64)

Locked ownable synchronizers:
- None

"Service Thread" #13 daemon prio=9 os_prio=0 cpu=0.00ms elapsed=39.56s tid=0x000001eeff914000 nid=0x2964 runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE

Locked ownable synchronizers:
- None

"VM Thread" os_prio=2 cpu=0.00ms elapsed=39.64s tid=0x000001eefed3e000 nid=0x1860 runnable

"GC Thread#0" os_prio=2 cpu=15.63ms elapsed=39.66s tid=0x000001eef3f3b800 nid=0x3b84 runnable

"GC Thread#1" os_prio=2 cpu=15.63ms elapsed=39.16s tid=0x000001ee9991f000 nid=0x43cc runnable

"GC Thread#2" os_prio=2 cpu=15.63ms elapsed=39.16s tid=0x000001ee9991f800 nid=0x5144 runnable

"GC Thread#3" os_prio=2 cpu=15.63ms elapsed=39.16s tid=0x000001ee998e0800 nid=0x53d8 runnable

"GC Thread#4" os_prio=2 cpu=15.63ms elapsed=39.16s tid=0x000001ee998e1800 nid=0x4208 runnable

"GC Thread#5" os_prio=2 cpu=15.63ms elapsed=39.16s tid=0x000001ee998e2000 nid=0xd48 runnable

"G1 Main Marker" os_prio=2 cpu=0.00ms elapsed=39.66s tid=0x000001eef3f9b000 nid=0x53c0 runnable

"G1 Conc#0" os_prio=2 cpu=0.00ms elapsed=39.66s tid=0x000001eef3f9e800 nid=0x18ac runnable

"G1 Conc#1" os_prio=2 cpu=0.00ms elapsed=38.91s tid=0x000001ee99f0f000 nid=0x41ac runnable

"G1 Conc#2" os_prio=2 cpu=0.00ms elapsed=38.91s tid=0x000001ee99f10000 nid=0x33dc runnable

"G1 Refine#0" os_prio=2 cpu=0.00ms elapsed=39.65s tid=0x000001eefec27800 nid=0x13d0 runnable

"G1 Young RemSet Sampling" os_prio=2 cpu=0.00ms elapsed=39.65s tid=0x000001eefec28800 nid=0xee4 runnable
"VM Periodic Task Thread" os_prio=2 cpu=0.00ms elapsed=39.56s tid=0x000001eeff916000 nid=0x5234 waiting on condition

JNI global refs: 16, weak refs: 0

`

Possibly a jvm deadlock?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant