[Freeswitch-users] FreeSWITCH dying with no core file

Stefan Knoblich stkn at freeswitch.org
Sat Jul 28 00:59:24 MSD 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/27/12 21:34, Adam Johnston wrote:
> I use FreeSWITCH exclusively for high-volume fax, both sending and receiving, and I've been running into a sporadic issue where the FreeSWITCH process will die with nothing in the logs to
> indicate an issue and no core file anywhere on the system. I'm setting "ulimit -c unlimited" in my init script, so I would expect to see a core file. Version: FreeSWITCH Version
> 1.2.0-rc2+git~20120713T162602Z~0afd7318bd+unclean~20120713T182401Z

You need to set /proc/sys/fs/suid_dumpable to a non-zero value (see man 5 proc), to enable core dumping for processes
that switch their UID on startup (such as freeswitch with -u option).

By default, the freeswitch process will try to put the core file into the CWD (current work directory),
so make sure the UID it is running as can write there (or "cd" into a different directory before starting it).
You might also want to check out man 5 core, for all the other options (e.g. piping core dumps into a custom handler, with core_pattern).

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlATASwACgkQjiIIAK4rYUrjvQCgh1grtcBfPVhbZNw8tdQpsyda
614Amwb1pKDFL93dU33cy2wj1FNYYnzJ
=0Xqk
-----END PGP SIGNATURE-----



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list