Jump to content

Analyzing minidumps via PHP Website


rtadams89

Recommended Posts

I'm trying to create a PHP website that will analyze Windows minidump files. I am using the Microsoft Debugger Tools, and specifically kd.exe, to analyze minidumps. If I'm interacting with the computer PHP/Apache is running on, I can open a command prompt and type:

"c:\program files\debugging tools for windows (x86)\kd.exe" -y srv*c:\symbols*http://msdl.microsoft.com/download/symbols -i c:\windows\i386 -z c:\test.dmp

This will tell me what file caused the crash recorded in the test.dmp minidump file.

 

I'm trying to run this same command in a PHP web page using:

 

passthru("\"c:\program files\debugging tools for windows (x86)\kd.exe\" -y srv*c:\symbols*http://msdl.microsoft.com/download/symbols -i c:\windows\i386 -z c:\test.dmp")

 

Unfortunately, this causes PHP and the web server to hang. I suspect this happens because kd.exe doesn't automatically quit after running. Instead, it goes to a kd.exe debugger prompt.

 

Any ideas about how to go about getting the output of kd.exe using PHP?

Link to comment
https://forums.phpfreaks.com/topic/160602-analyzing-minidumps-via-php-website/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.