Install a Microsoft product. (Sorry I couldn't resist when I saw the subject)
-----Original Message----- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Tzafrir Cohen Sent: March 4, 2009 8:48 AM To: Asterisk Users List Subject: Re: [asterisk-users] How to generate core dump? On Wed, Mar 04, 2009 at 09:32:43AM +0100, Klaus Darilion wrote: > > > Mark Michelson schrieb: > > Ken D'Ambrosio wrote: > >> Asterisk segfaulted on me the other day; how do I tell it to generate a > >> core file so -- if it happens again -- I can attempt to debug? I looked > >> in the obvious places in "make menuconfig" and didn't see anything > >> appropriate. > >> > >> Thanks, > >> > >> -Ken > >> > >> > > > > Run Asterisk with the -g option and it will dump a core file if it should crash. > > If you also want to specify the location/file name this can be useful > too (man core) > > echo "/tmp/core.%p" > /proc/sys/kernel/core_pattern Hmm.. this way you can't tell which executable generated it . echo "/tmp/core.%e.%t" > /proc/sys/kernel/core_pattern Or maybe (untested) echo "|/usr/local/sbin/core_handler '%e' '%s'" See the kernel documentation: http://kernel.org/doc/Documentation/sysctl/kernel.txt This is handy for those of you with limited disk space. OTOH, it will probably not work on "legacy" systems with kernel 2.6.18. -- Tzafrir Cohen icq#16849755 jabber:tzafrir.co...@xorcom.com +972-50-7952406 mailto:tzafrir.co...@xorcom.com http://www.xorcom.com iax:gu...@local.xorcom.com/tzafrir _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users