Asterisk 13.1-cert1: Process stops/crashes but no coredump?

Hello, I am trying to troubleshoot a problem with our systems with the Asterisk process stopping/crashing periodically following an upgrade from Asterisk 11.6-cert10 to Asterisk 13.1-cert1. I have done the following:

  1. Uncommented ‘dumpcore = yes’ in asterisk.conf.
  2. Recompiled and installed with DONT_OPTIMIZE and BETTER_BACKTRACES.
  3. Started Asterisk using my normal method if I am starting from command line of “sudo service asterisk start”.
  4. Waited until next crash.

I cannot find a coredump file anywhere. From what I have read, this is usually named core.#### and located under /tmp but I have looked throughout the system for anything named “core*”.

Am I doing something wrong? Thank you for your help.

The core file is created in Asterisk’s current directory. That will depend on how it is started.

If you are not starting Asterisk as root and running it as root, you may find that the core file isn’t written for various security reasons.

You can always run Asterisk with the debug option, from gdb.