Hi all,

I am trying to write a D script which would print ustack() for every 
program in the system receiving SIGSEGV. All the stacks printed in 
trap()/sigtoproc() context do not have meaningful symbols.

The following solves the problem to some degree but I'd much rather have 
a self-contained D script.

dtrace -w -n 'fbt:genunix:sigtoproc:entry/arg2 == 11/ { 
self->pid=((proc_t *)arg0)->p_pidp->pid_id; stop(); 
system("/usr/bin/gcore %d", self->pid); system("/usr/bin/prun %d", 
self->pid); }'

Any ideas (or code) will be appreciated,


v.
_______________________________________________
dtrace-discuss mailing list
[email protected]

Reply via email to