Solved

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

Posted on 2009-05-19
8
328 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
 

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
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.

 
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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

If your system is showing symptoms of browser hijacks or 'google search redirects' check out my other article (http://rdsrc.us/u3GP7A) first and run the tool TDSSKiller (http://rdsrc.us/GDBBs4) to get rid of the infection. Once done, and if the …
Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
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…

910 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

24 Experts available now in Live!

Get 1:1 Help Now