Solved

How do I examine the call stack of a crashed windows service?

Posted on 2009-05-19
8
335 Views
Last Modified: 2013-11-25
I have a service I programmed.   It works fine on my machine and in my virtual host testing but it crashes about once a day on a few laptops that we have here.   I'm frustrated, because I don't know how to get information about the call stack at the time of the crash.

In unix I would just turn on core file generation, debug the core file and initiate a back trace.  What do you do in windows?
0
Comment
Question by:Drachs
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 6

Expert Comment

by:drewha1969
ID: 24424165
Maybe this will help.

Ollydbg
http://www.ollydbg.de/
0
 
LVL 16

Expert Comment

by:warturtle
ID: 24424253
This might help:

How to solve Windows system crashes in minutes
http://www.networkworld.com/news/2005/041105-windows-crash.html

Debugging Tools for Windows - Overview
http://www.microsoft.com/whdc/devtools/debugging/default.mspx

0
 
LVL 86

Expert Comment

by:jkr
ID: 24424484
You can just enable DrWatson to obtain a post mortem dump, including the call stack. See

http://msdn.microsoft.com/en-us/library/cc265790.aspx ("Installing Dr. Watson as the Postmortem Debugger")
http://support.microsoft.com/kb/121434 ("Specifying the Debugger for Unhandled User Mode Exceptions")
0
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 

Author Comment

by:Drachs
ID: 24424771
jkr:

Everything I'm reading is saying dr watson should be the default, is that not the case on vista?  If it is the case, do these post mortem dumps already exist some where?
0
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 24424826
Oh, sorry - there is no DrWatson on Vista. See http://support.microsoft.com/kb/951018 ("How to generate a full user-mode dump file in Windows Vista") for that one, it uses the more advanced NTSD (NT Symbolic Debugger)
0
 

Author Comment

by:Drachs
ID: 24424882
Thanks jkr!
0
 

Author Closing Comment

by:Drachs
ID: 31583081
Thanks jkr
0
 
LVL 6

Expert Comment

by:drewha1969
ID: 24425134
I just missed this thread closing, and I dont know if you are using 64 bit Vista, but incase you were hesitant to trying my suggestion, here is a screenshot of what it offers.

I havent tried it on Vista at all, but decide if you like what you see and try it yourself.  No need to install.

It just doesnt seem like there is any benefit to analyzing a crash dump vs live.  Unless it crashes windows...

Anyways, just thought I would give other options :)
OllyDbgScreen.JPG
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question