Luigi Auriemma

aluigi.org (ARCHIVE-ONLY FORUM!)
It is currently 19 Jul 2012 16:26

All times are UTC [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Process crash analysis
PostPosted: 22 Mar 2009 12:52 

Joined: 22 Mar 2009 06:59
Posts: 5
Hi aluigi,

I have a program written in C++ for Windows, that is responsible for starting other programs (game servers).

Sometimes these servers crash and terminate, this is just something that happens with game servers and its not too abnormal.

However, I would find it useful if there was a way I could see *why* a server crashed.

Given I am starting the process (via OpenProcess API), am I able to record debug/minidump information for when a process crashes?

I have some C++ code that I have researched and put together that can write a small minidump (using the MiniDumpWriteDump API function), as well as try and write the exception code (eg, access violation) by attaching itself as a debugger and catching exceptions, but the information is not very useful (I suppose because I don't have the programs debug symbols).

Can you think of anything I could be doing to gather useful information that may hint at the reason for a process crashing; or is it not worth it because I'd never have the debug symbols available to analyse the problem myself?

Cheers,
Andrew


Top
 Profile  
 
 
 Post subject: Re: Process crash analysis
PostPosted: 22 Mar 2009 15:52 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
uhmmm this is a thing I have never tried so I can't give a good or complete answer.

I have spent some minutes taking a look at this thing of MiniDumpWriteDump and the attached code is a basic example I have written (it's only an example!)

at the moment I don't more than this, sorry


Attachments:
basicdmp.c [1.96 KiB]
Downloaded 75 times
Top
 Profile  
 
 Post subject: Re: Process crash analysis
PostPosted: 25 Mar 2009 11:11 

Joined: 22 Mar 2009 06:59
Posts: 5
Thanks for the help!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for: