I'd like to ask a couple of questions on getting core dumps from crashed and
otherwise unresponsive processes that run unattended on Windows machines.
Here's what I've got so far: I've registered a Perl script as the 'Debugger'
value for this registery key ( HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\AeDebug) and set it to launch automatically (no dialog).
The script gets passed the PID of the failed process and I can get all the
process information using Win32::Process::Info. Question 1: How to generate
the dump? Is there a module that will do this?
Now these processes that (may) crash are launched by a Perl script which then
collects the launched processes output thusly:
open( RUNHANDLE, "$executeThis 2>&1 |" )
When 'executeThis' fails, the launcher script need to be notifiedt by the
debugging script so things can be cleaned up. Question 2: How best to pass
some signal from debugger to launcher? Is there a best way to start
'executeThis' (maybe a separate thread) to make cleaning it up easier?
Thanks in advance for your help.
Jim Cant
p.s. It may seem 4 questions but they're really 2 questions with 2 parts each.
;-)
_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm