?
Solved

Analyzing Dr watson Log

Posted on 2004-09-19
7
Medium Priority
?
424 Views
Last Modified: 2013-11-20
Hi,

I am working in a VC++ project. While running one of our services, one server is generating Dr.Watson error. I have Dr Watson log and user dump at that time. How to analyze these logs to find out the reason for the crash of my server.

Thanks
sai
0
Comment
Question by:dssrrjy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
7 Comments
 
LVL 48

Accepted Solution

by:
AlexFM earned 280 total points
ID: 12099637
You can use CrashFinder utility for this:

http://www.microsoft.com/msj/0498/bugslayer0498.aspx

Bug report from client computer should contain address of program instruction where exception occured. For computer without Visual C exception is logged to Dr. Watson log:
<system disk>:\Documents and Settings\All Users\Application Data\Microsoft\
Dr Watson\drwtsn32.log

Exception report has the following format:

Application exception occurred:
...
*----> Task List <----*
...
State Dump for Thread Id 0x...
...
function: ...
...
FAULT ->nnnnnnnn

where nnnnnnnn is exception address.

Having exception address from Dr. Watson log we can find source code line where exception occured (see details in the book "Debugging Applications" by John Robbins). To do this:
   - run CrashFinder program (one of the book samples)
   - create new CrashFinder project, add to it executable and all Dll from of your program. All these files are selected by green sign if CrashFinder finds Debug Info and mapfiles for these exe and Dll's.
- run function Find Crash from Edit menu, type crash address from bug report and see result. If source line not found, exception occured in some other code (MFC, third-party Dll etc.)
Actual source line where exception occured may be exactly the line poined by CrashFinder or line close to it because of compiler optimizations.

Executable and all Dll should contain mapfiles and debug information.

See also:
http://codeproject.com/debug/moomoo.asp
0
 

Author Comment

by:dssrrjy
ID: 12099734
Hi,

Thanks for your info. Currently i am using Windbg tool to debug the user dump file, that i got along with the watson log. But i dont know exactly how to use this tool. I tried to anlyse the dump but i was getting some error regarding the symbols. i installed win 2k sp3 symbols, which is the client OS, still i am getting the same problem. wht can be reason.
any help?

thanks
sai
0
 

Author Comment

by:dssrrjy
ID: 12099743
where can i download crashfinder?
0
 
LVL 48

Expert Comment

by:AlexFM
ID: 12099785
Download link is in the beginning of this article:
http://www.microsoft.com/msj/0498/bugslayer0498.aspx
0
 

Author Comment

by:dssrrjy
ID: 12109221
hi,

I am trying to download symbols for some of the hotfixes on windows 2000. But I couldnt able to
get the exact URL for this.
any help in this regard?
regards
sai
0

Featured Post

Independent Software Vendors: 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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

762 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