Solved

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

Posted on 2009-05-19
8
331 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
Backup Your Microsoft Windows Server®

Backup 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

Can I legally transfer my OEM version of Windows to another PC?  (AKA - Can I put a new systemboard in my OEM PC?) Few of us are both IT and legal experts but we all have our own views of Microsoft's licensing rules and how they apply.  There are…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
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.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

813 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now