RE: [ILUG] [OT] Forcing core dumps

From: Jakma, Paul (Paul.Jakma at domain compaq.com)
Date: Tue 28 Sep 1999 - 14:12:29 IST


>
> I'm messing with someone elses code which has a lot of traps
> for segsegv
> signals are set up which I want to avoid. How can I force a program to
> core dump in the signal handler? I can't just remove the
> signal(SIGSEGV
> calls because half of them are in libraries. I want a bloody
> core dump so
> I can figure out why the damn program is crashing!
>

the default action, apart from the well known signals, is usually to dump
core and exit. Try sending it some signals for which the programme has no
handler installed. eg USR1, USR2, BUS...

regards,

paul.



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:04:37 GMT