How to make a coredump

From Zarafa wiki

Revision as of 09:16, 24 November 2010 by Ddebyttere (Talk | contribs)
Jump to: navigation, search

How to report segfaults and coredumps

When a Zarafa services creates an error, you may see the following error in your log:

Caught SIGSEGV, traceback:

To correctly report this issue to the Zarafa development team, you can write an email to [email protected] with these lines from the log.

You must also add the following information:

  • Zarafa version
  • Distribution name and version
  • Architecture (i386, x86_64)

To help the development team even further, you can create a coredump of the process that crashed. To to that, you need to add the following command before restarting the service again:

ulimit -c unlimited

Then start the service. When the services crashes again, you will have a file called 'core' or 'core.PID', where PID is the pid number the process had. Compress this file:

gzip core

And send the core.gz file to [email protected] with the same information about versions and distributions used. If the compressed file is larger than 40 Mb, please upload it somewhere where we can download the file, and add a link in the email.

Adding ulimit to the Zarafa processes

Instead of manually running ulimit while you are logged in to the terminal.

You may also find that it is easier to add it to the init.d script of the process, for example: /etc/init.d/zarafa-server

If the server process was restarted after adding ulimit to the init.d a coredump will be generated.

Which will generally make it much easier for Zarafa to debug the crash.

Add above line "case "$1" in",

ulimit -c unlimited
Personal tools