Zombie Panic! Source

Zombie Panic! Source

View Stats:
 This topic has been pinned, so it's probably important
Dec 30, 2017 @ 8:57am
Sending us Crash Dumps (Windows)/Core Dumps (Linux)
Crash Dumps (Windows)
[You can find Core Dumps (Linux) tutorial below.]

There's likely to be crashes that we never experienced during development, so we'll need your help fixing them. What we need you to do is find crash dumps (for "zps.exe", or "srcds.exe" for dedicated servers), if any were created, and send them to us so our programmers can review them.

This post explains how Windows users can do that for us. (You can find the Core Dumps (Linux) tutorial post below.)


Where are crash dumps located?
You can find crash dumps in the "dumps" folder in the root of your Steam directory.

The default directory will be:
C:\Program Files (x86)\Steam\dumps



Which crash dumps do I send?
You'll want to look for crash dumps that are for "zps.exe", or "srcds.exe" if your crash was on a dedicated server. We won't be able to open and use the crash dumps for other files, so don't send any others to us.

Also pay attention to the dates on the crash dumps, because we won't be able to open and use old crash dumps from previous versions of the game.



Important information to include with your crash dumps:
It's very important that you tell us what happened during these crashes too, if you can remember. The more specific and clear you can be about it, then the easier it will be for us to figure out what the problem is (if the crash dump doesn't help us).

So please be sure to include any information you can regarding the crashes you experienced!



How to send crash dumps to us:
There's a few ways you can send crash dumps to us. You can send them via email, post them on a free download site, or host them on your own cloud storage (such as Dropbox).


Email:
You can send the crash dumps to our support email account. Please title the email something like "Crash dumps", so it's easy for us to see what the email is relating to.

Also be sure to provide a link in the email to your thread on our forums, if you created one.

Support Email Address: support@zombiepanicsource.com


Cloud Storage:
You're welcome to host the files on your own cloud storage programs, such as Dropbox or Google Drive - and send the links to us.

You can just create a thread here on our forums, and post the links to the files in your thread.


File hosting website:
There's plenty of file hosting websites that you could post the files onto for us to retreive. But this will probably be the most inconvenient for you and us, because some websites require an email address or account on their website to post, or even sometimes download, the files.

If you've posted the files on a website like this, then you can just create a thread here on our forums and post the links in it.
< >
Showing 1-1 of 1 comments
Jan 6, 2018 @ 8:34am 
Core dumps (Linux)
[You can find crash dumps (Windows) tutorial above.]

Crashes, those are players nightmares but also programmers nightmares. We do experience some of them when we work on ZPS but we can't experience them all, especially on a system that is very open like Linux.

When the client/server crashes, you can generate a "core dump". In a nutshell, a core dump is a "snapshot" of the whole application when it crashed that can help us (the programmers) determine what/when and why the server went fubar and fix the problem if we managed to track it down.

Terminology

DS = Dedicated Server.
GSP = Game Server Provider.
root = Name of the super-administrator account on a Linux machine (Windows equivalent = "Administrator").

Some important stuff before going in

If you are in the situation where your ZPS Linux DS hosting is provided by a GSP like this GameServers's offer[www.gameservers.com]. Then it's up to the GSP itself to follow this tutorial and send us the core dumps because only them have the "root" privileges of their machines.

In other words, access to "root" privileges are required. Remember that using the "root" account itself directly is a major security breach and you should always use "sudo" with a standard account instead.

We do NOT accept core dumps made with outdated versions of the game, always keep your client/server up to date!

If you were playing on a server, be sure to note somewhere what you were doing and also what other people in your field of view were doing. Taking the example of one of our previous fixed crash: a guy threw a grenade on Zomboeing's truck, he died and the grenade's explosion crashed the server. Remember, more information on the situation increases the chances of fixing the crash (even bugs).

Ready to generate that core dump? Let's get to it then!

Step One - Log in to the machine

For dedicated servers, it depends on your machine's setup, if you have the physical access to it, you just log in with the account used to start your ZPS server(s). Or if you have to do it remotely, then your connection will likely be through SSH.

For clients, you usually use the machine itself so that part is already covered.

Step Two - Change the core dump maximum file size limit

If your client/server(s) are still running, shut it (them) down completely first or they will ignore the changes!

By default, most Linux distributions (not all of them) set the maximum file size of core dumps to 0. To see what is your default value, you just type this in the terminal:

ulimit -c

Note that default value somewhere! If you lost it, restarting the whole machine should reset it back.

Since we want core dumps to be generated, we want to have something else than 0 (thanks Captain Obvious!). If you look at the "bash" manual page, it will tell you that the core dumps files sizes are expressed in blocks of 512 bytes (because Linux respects the POSIX standards). The choice of that size is entirely up to you, Valve uses "2000" in most of their games, I personally use "4000" or even "unlimited".

Changing that size is simple, you just type in the terminal:

ulimit -c <new size>

If you follow Valve's choice, the command would be "ulimit -c 2000". If you follow mine, it would be "ulimit -c 4000" or "ulimit -c unlimited".

Step Three - Change the core dump's file name pattern and path

Again, not all Linux distributions agrees on that standard. Some of them will redirect the core dumps to a specific application (in Ubuntu's case: Apport) or they will redirect it to a file at a certain location or the same location as the application.

We want the last case to happen: core dump as a file in the same location as our application which is the ZPS client or server.

To see what is the current pattern, use the following command:

cat /proc/sys/kernel/core_pattern

If the file's content is just "core". Then you are lucky and you can skip to the next step.

Otherwise, you'll need to change that file. You can note the file's default content or make a backup first before doing the changes like in step two. Restarting the machine will also reset that file to it's default content.

Use your favorite text editor (I use "nano" but you can use Vim, Emacs or whatever that pleases you) on that file, make sure to open it as "root" otherwise you'll be denied from saving the changes. The command would look like this:

sudo nano /proc/sys/kernel/core_pattern

Remove everything inside it and just type "core", save the changes and you are ready for the next step.

Step Four - Start the client/server (and reproduce the crash)

Just start your client/server(s) like normal and reproduce the crash.

Step Five - Crash happened, time to see if we have that core dump

Look at the directory where your client/DS is installed (the one that contains the "zps_linux" or "srcds_run" file). If you see a "core" file, then you successfully generated a core dump. If there is no core dump, either you missed something when following that guide, or the client/server didn't generated one (could happen).

Step Six - Disabling "debugging mode"

Stop your client/server(s) first before doing this!

Set back your "ulimit -c" value to it's default as well as the content of the "/proc/sys/kernel/core_pattern" file. Remember that restarting the machine also works.

Step Seven - Sending us the core dump and the report

You can send us an e-mail with the core dump as an attachment (if you need to archive it, please use ZIP or TAR.GZ formats) to "support@zombiepanicsource.com". Make sure to title your e-mail with something like "Core dump" and if you were playing when the crash happened: the description of the situation.

If the core dump (even archived) can't be attached to the e-mail, you can use a cloud storage service like Google Drive or Dropbox and share the link to download it in the e-mail.

File hosting services (like MEGA, MediaFire) should only be used as "last resort option". If you use that option, then post here on the Steam forums instead of sending us an e-mail. Again, don't forget the link to download as well as the description of the situation if you witnessed the crash.
< >
Showing 1-1 of 1 comments
Per page: 1530 50