Solved

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

Posted on 2009-05-19
8
326 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
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
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…

759 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

21 Experts available now in Live!

Get 1:1 Help Now