Page MenuHomeSchine - Phabricator

Starmade | Thread Dumps not created on linux
Closed, RejectedPublic

Description

Well, this issue is fairly simple to describe. On windows, thread dumps are created automatically and placed into the logs folder. These are useful for troubleshooting bugs. However, on Linux, running Oracle 64-bit server java, these thread dump files are not created. Seeing as how many servers run on Linux, including my own, this is problematic for bug fixing since relevant info cannot be provided to troubleshoot bugs. (Such as when I reported chunk corruption and server crashes previously - The thread dumps are requested and I do not have them, of course because the server program is not creating them.)

Details

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

Just run a server on Linux with Oracle java server version (64-bit) and you will see no thread dumps in the logs folder after running it for a while.

Serverconfig (server.cfg)
 <replace this block with the file content, 
but do not remove the first and last line. 
Before using the paste function, mark the area from the 
opening angle bracket to the closing angle bracket>
Clientconfig (settings.cfg)
 <replace this block with the file content, 
but do not remove the first and last line. 
Before using the paste function, mark the area from the 
opening angle bracket to the closing angle bracket>
Java Version (32bit)

Error: This Java instance does not support a 32-bit JVM.
Please install the desired version.

Java Version (64bit)

java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)

Event Timeline

AndyP shifted this object from the S1 Public space to the S3 Starmade space.Mar 17 2017, 12:35 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 claimed this task.
AndyP closed this task as Rejected.

This is not an issue we can fix.
It is a tribute to the way java is used on client computers and on server environments.

Those "hs_err_pid"-files are created when a native JVM crash occurs.

Not on any software related crash, like unhandled exceptions propagating to the main class.
"Softcrashes" from thread locks "Client has not sent any login information" are not catched by this either, and those are the only cases where a threaddump would help fixing problems on the starmade side.
OutOfMemory errors or stack errors usually result in an exception that is managed by the software and causing a proper exit/restart. Those do not cause threaddumps, not even on windows.

They only happen on driver related issues, like a video card locking up, or having an error causing the virtual machine to crash.
In those cases the threaddumps / hr_err_pid file gets created on linux and OSX too.
But they are unlikely to happen. (I think we had 2 or 3 of those on our testserver, while having a well into the 4 digit total crash count.)

Restricted Application removed a project: Issue Navigation. · View Herald TranscriptMar 17 2017, 12:44 PM