Date: Wed, 22 Jun 2005 16:00:07 +0200 From: mats.lindberg@se.transport.bombardier.com To: freebsd-questions@freebsd.org Subject: Generating coredump's from within a signal handler. Message-ID: <OF8E633C28.2159E593-ONC1257028.004C4283-C1257028.004CEA64@UK.BOMBARDIER.TRANSPORT.COM>
next in thread | raw e-mail | index | archive | help
Hi all! I'm writing a program that when receiving a SIGTERM shall generate a coredump of itself and exit. This coredump shall be analysed later on using gdb. I've tried to raise(SIGABRT) when handling SIGTERM, this generates a coredump, but the stack seems messed up when examining it with gdb. Sending SIGABRT directly instead of SIGTERM to the process gives a readable coredump but this is not a solution to my problem. Mats _______________________________________________________________________________________________________________ This e-mail communication (and any attachment/s) may contain confidential or privileged information and is intended only for the individual(s) or entity named above and to others who have been specifically authorized to receive it. If you are not the intended recipient, please do not read, copy, use or disclose the contents of this communication to others. Please notify the sender that you have received this e-mail in error by reply e-mail, and delete the e-mail subsequently. Thank you. _________________________________________________________________________________________________________________ Ce message (ainsi que le(s) fichier/s), transmis par courriel, peut contenir des renseignements confidentiels ou protégés et est destiné à l’usage exclusif du destinataire ci-dessus. Toute autre personne est par les présentes avisée qu’il est strictement interdit de le diffuser, le distribuer ou le reproduire. Si vous l’avez reçu par inadvertance, veuillez nous en aviser et détruire ce message. Merci. _________________________________________________________________________________________________________________
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?OF8E633C28.2159E593-ONC1257028.004C4283-C1257028.004CEA64>
