Page MenuHomeSchine - Phabricator

Starmade | Deadlock in server
Closed, DuplicatePublic

Description

Deadlock in server.

jstack of deadlock (core part):

Found one Java-level deadlock:
=============================
"SERVER-PROCESSOR: null; PID: 472":
  waiting to lock monitor 0x00007f8c5401ce18 (object 0x00000003fd1c7fe0, a obfuscated.aoY),
  which is held by "ServerEntityWriterThread"
"ServerEntityWriterThread":
  waiting for ownable synchronizer 0x00000003eabfe248, (a java.util.concurrent.locks.ReentrantReadWriteLock$NonfairSync),
  which is held by "ServerController"
"ServerController":
  waiting to lock monitor 0x00007f8c5401ce18 (object 0x00000003fd1c7fe0, a obfuscated.aoY),
  which is held by "ServerEntityWriterThread"

Java stack information for the threads listed above:
===================================================
"SERVER-PROCESSOR: null; PID: 472":
	at org.schema.schine.network.server.ServerProcessor.run(SourceFile:564)
	- waiting to lock <0x00000003fd1c7fe0> (a obfuscated.aoY)
	at java.lang.Thread.run(Thread.java:745)
"ServerEntityWriterThread":
	at sun.misc.Unsafe.park(Native Method)
	- parking to wait for  <0x00000003eabfe248> (a java.util.concurrent.locks.ReentrantReadWriteLock$NonfairSync)
	at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
	at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:836)
	at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireShared(AbstractQueuedSynchronizer.java:967)
	at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireShared(AbstractQueuedSynchronizer.java:1283)
	at java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock.lock(ReentrantReadWriteLock.java:727)
	at obfuscated.acw.a(SourceFile:455)
	- locked <0x000000046b235f80> (a [B)
	at org.schema.game.common.controller.io.SegmentDataIO.a(SourceFile:943)
	at obfuscated.Su.handle(SourceFile:2062)
	at obfuscated.Sc.a(SourceFile:382)
	at org.schema.game.common.controller.SegmentBuffer.a(SourceFile:646)
	- locked <0x0000000403a972c8> (a org.schema.game.common.controller.SegmentBuffer)
	at org.schema.game.common.controller.SegmentBufferManager.a(SourceFile:513)
	- locked <0x00000004740a5198> (a it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap)
	at obfuscated.Sr.writeAllBufferedSegmentsToDatabase(SourceFile:290)
	- locked <0x00000004293561a0> (a org.schema.game.common.controller.SegmentBufferManager)
	at obfuscated.acx.a(SourceFile:2408)
	at obfuscated.acx.a(SourceFile:107)
	at obfuscated.acA.run(SourceFile:2486)
	- locked <0x00000003ffc73a68> (a org.schema.schine.network.NetworkStateContainer)
	- locked <0x00000003fd1c7fe0> (a obfuscated.aoY)
	at org.schema.schine.network.server.ServerEntityWriterThread.run(SourceFile:48)
"ServerController":
	at org.schema.schine.network.server.ServerController.synchronizePrivate(SourceFile:462)
	- waiting to lock <0x00000003fd1c7fe0> (a obfuscated.aoY)
	at org.schema.schine.network.server.ServerController.synchronize(SourceFile:390)
	at org.schema.game.server.controller.GameServerController.update(SourceFile:1410)
	at org.schema.schine.network.server.ServerController.run(SourceFile:256)
	at java.lang.Thread.run(Thread.java:745)

Found 1 deadlock.

Details

Task Type
Bug
Testing Results
Affected Gamemode(s)
none/unspecified
Reproducible
uncertain
Category
none/unspecified
Hardware/Software/System
OS-Specific
No
Hardware-Specific
No
Video Card Vendor
uncertain
Steps to reproduce

Logs & complete jstack available upon request.

Serverconfig (server.cfg)
<replace this line with the file content>
Clientconfig (settings.cfg)
<replace this line with the file content>

Event Timeline

Restricted Application added a project: Issue Navigation. · View Herald TranscriptApr 20 2016, 5:38 PM
AndyP shifted this object from the S1 Public space to the S3 Starmade space.Apr 20 2016, 9:56 PM
AndyP changed the visibility from "Custom Policy" to "Public (No Login Required)".
AndyP changed the edit policy from "Task Author" to "Starmade (Project)".
AndyP closed this task as a duplicate of T1367: Deadlock in server.
AndyP claimed this task.
Restricted Application edited projects, added Starmade; removed Issue Navigation. · View Herald TranscriptApr 20 2016, 9:57 PM
AndyP moved this task from Unclassed to Archived on the Starmade board.Apr 25 2016, 6:19 PM