/*
* crash.d - Crashed Application info.
* Written in DTrace (Solaris 10 3/05).
*
* $Id: crash.d 3 2007-08-01 10:50:08Z brendan $
*
* When applications crash via a SIGSEGV or SIGBUS, a report of the
* process state is printed out.
*
* USAGE: crash.d
*
* FIELDS:
* Type Signal type
* Program Execname of process
* Agrs Argument listing of process
* PID Process ID
* TID Thread ID
* LWPs Number of Light Weight Processes
* PPID Parent Process ID
* UID User ID
* GID Group ID
* TaskID Task ID
* ProjID Project ID
* PoolID Pool ID
* ZoneID Zone ID
* zone Zone name
* CWD Current working directory
* errno Error number of last syscall
*
* SEE ALSO: mdb, pstack, coreadm
* app_crash.d - Greg Nakhimovsky & Morgan Herrington
*
* COPYRIGHT: Copyright (c) 2005 Brendan Gregg.
*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* See the License for the specific language governing permissions
* and limitations under the License.
*
* CDDL HEADER END
*
* 29-May-2005 Brendan Gregg Created this.
* 24-Apr-2006 " " Last update.
*/
#pragma D option destructive
{
printf("Waiting for crashing applications...\n");
}
/*
* Print Report Header
*/
{
stop();
printf("\n-----------------------------------------------------\n");
printf("-----------------------------------------------------\n");
printf("\nUser Stack Backtrace,");
ustack();
printf("\nKernel Stack Backtrace,");
stack();
}
/*
* Print Java Details
*/
{
printf("\nJava Stack Backtrace,");
jstack();
}
/*
* Print Ancestors
*/
{
printf("\nAnsestors,\n");
}
/* ancestory un-rolled loop, reverse order, 6 deep */
{
}
{
}
{
}
{
}
{
}
{
}
/*
* Print Report Footer
*/
{
printf("\nTimes,\n");
printf("\nSizes,\n");
}