Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Forums > Tutorials

Vista - BSOD - Debugging a BSOD in Vista

Comment
 

BSOD - Debugging a BSOD in Vista

How to Debug a BSOD in Vista
Published by Frostmourne
08-26-2009

How to Debug a BSOD in Vista


NOTE
  You might have been directed to Vox's BSOD troubleshooting via Vistax64 forums but STOP errors are caused by 4 key problems:

1. New hardware physically installed that is causing problems or its drivers are causing problems.
2. New software installed that is causing problems or its drivers/services may be causing Vista to STOP.
3. A virus infection could also be causing Vista to fall over.
4. Any system changes via the registry or services control panel that a user might have made or changes that could be made via the first 3 steps.
In essence, those are the roots of STOP errors, and most of them are related to poorly written drivers. So if you are getting any STOP errors, consult the above list, and if any of the steps stands out as a problem.




Debugging STOP errors is not too difficult. To begin, download the latest version - www.microsoft.com/whdc/devtools/debugging/.


Make sure you choose the right architecture for your system, whether x86 for 32-bit or x64 for 64-bit. Download and install the tool. It's a good idea to frequently check the website for new versions of the tool. Once installed you'll see this:

This is WinDbg running on an x64 system. The first thing you need to do is configure the symbol path, so open up File - Symbol File Path and enter the text you see in the following diagram:

You need an internet connection now, as WinDbg needs to download symbols to read any dump file you may import. Locate a .dmp file and then go to File - Open Crash Dump to locate a .dmp for analysis. Open it and wait for the symbols to download. While you are waiting now is a good time to adjust (as necessary) your dump settings. Open up system properties opening the start menu, right clicking Computer and selecting properties:

Accept the UAC prompt, which incidentally should always be turned on, and then select the settings part of Startup and Recovery:

It's up to you whether your PC/laptop should restart about a STOP error but I prefer to clear the box. You can also choose to overwrite an existing file or not and what size the dump should be. The following are my settings. Choose the options you want:

As the symbols would have been downloaded by now, it's time to examine the results in more detail, so enter !analyze - v

If you can't open the .dmp file, close WinDbg, then right-click the shortcut and select run as administrator. It would also be good if you moved the dumps out of protected system locations to your user folder.

Once the symbols are downloaded, you don't need an internet connection. Check the C: drive for a symbolfiles folder. I've used an example .dmp file here. However, the same general steps apply, so use this as a template. This has a lot of detail regarding the crash as you can see from the following example in two screenshots:

Note for this example the symbol file couldn't be loaded for the FAULTING_IP field, but there is still plenty of information. Your dumps will vary.


The first thing to see in the first screenshot:


is the VIDEO_TDR FAILURE just under BugCheck Analysis. The debugger lists that it was the result of a time out along with arguments. This is a starting point and the debugger is usually correct. Always look at the info before Debugging Details for reference. More info is displayed below.


The BUGCHECK_STR field shows the exception code - in this case its 0x116.


The DEFAULT_BUCKET_ID shows the category of the error. In this case, its a graphics driver.


The PROCESS_NAME shows the name of the process that raised the exception - in this case it was System.


The STACT_TEXT shows a stack trace. The trace shows a single function call in the memory of a call stack, which is a set of stack frames representing the function calls for each thread, if you wanted to know. A new function call means a new stack frame. When the function returns the stack frame is ejected from the stack. Note any recurring faults - in this case dxgkrnl.


The STACK_COMMAND shows the command used to obtain STACK_TEXT. You can alter the command or repeat the stack display.


The second screenshot shows a trace of the faulting component. The FAILURE_BUCKET_ID is more specific and points to a driver file, as shown by the IMAGE_NAME. It also references the BUGCHECK_STR.

This information points to a problem with nvidia drivers. The next step would be to google the IMAGE_NAME along with BSOD to see what solutions are available, i.e. nvlddmkm.sys BSOD. For this, I would first uninstall the driver via device manager, then reboot into safe mode and run drive sweeper by guru3d. Then I would install fresh drivers in safe mode and then try windows once again. More drivers might need to be updated and there might be a hotfix for the dxgkrnl that was at fault.

As I've shown, debugging crash dump's isn't too difficult. However, I've barely scratched the surface and there is a lot more to know. I may be posting some advanced guides in the future, but this is enough to check your crash dumps and begin working on a solution. Post back any feedback at www.vistax64.com if you can.

v1.2
Published by
Frostmourne's Avatar
Master
Join Date: Jul 2009
Posts: 1,336
Rep Power: 50
Frostmourne has much to be proud ofFrostmourne has much to be proud ofFrostmourne has much to be proud ofFrostmourne has much to be proud ofFrostmourne has much to be proud ofFrostmourne has much to be proud ofFrostmourne has much to be proud ofFrostmourne has much to be proud of

Tutorial Tools

Applies to
All Vista Versions
64 Bit & 32 Bit

Old 09-07-2009  
TURINTOO


Vista Home Premium 32 Bit
 
 

Re: BSOD - Debugging a BSOD in Vista

Hello, my system started BSODing quite recently and now will not boot (except to the OS DVD).
My problem is that I cannot download this tool to my faulty PC but I could download it to my Laptop. Can I manually enter my stop codes into this debugger software to trouble shoot my problem? I noted the codes down on paper just in case.

My System SpecsSystem Spec
Old 09-14-2009  
Frostmourne


Windows 7 Ultimate x64
 
 

Re: BSOD - Debugging a BSOD in Vista

You will need the .dmp files, not the stop codes. The easiest way to get the .dmp file is to download the Ubuntu live cd, then navigate to the .dmp file in your windows partition from the ubuntu live cd. Have you tried booting safe mode and the repair option on the vista dvd?
My System SpecsSystem Spec
Old 09-15-2009  
TURINTOO


Vista Home Premium 32 Bit
 
 

Re: BSOD - Debugging a BSOD in Vista

Hello, thanks for the response.

Yes I have tried the safe mode option but the PC will no longer boot into any mode. It just loops into a boot/crash/boot cycle. It gets as far as showing the mouse pointer but on a black screen.

It will boot into the repair utility from the DVD but none of the repair options can automatically fix my problem. The memory scan seems to work but after the second pass when it reboots it does not reboot to a page showing the results.

It is probably a hardware issue but without a bunch of spare parts available to swap in and out I am having a problem troubleshooting which componant is at fault. I have the Ubunto disc and when I have a free moment I will give it a go.

The manufacturer suggested I reformat the hard drive and start again but I have been told by others that this would cause more problems if I have a hardware fault.

All the data is backed up therefore that is not an issue.

Thanks again.
My System SpecsSystem Spec
Old 09-15-2009  
Frostmourne


Windows 7 Ultimate x64
 
 

Re: BSOD - Debugging a BSOD in Vista

Quote  Quote: Originally Posted by TURINTOO View Post
Hello, thanks for the response.

Yes I have tried the safe mode option but the PC will no longer boot into any mode. It just loops into a boot/crash/boot cycle. It gets as far as showing the mouse pointer but on a black screen.

It will boot into the repair utility from the DVD but none of the repair options can automatically fix my problem. The memory scan seems to work but after the second pass when it reboots it does not reboot to a page showing the results.

It is probably a hardware issue but without a bunch of spare parts available to swap in and out I am having a problem troubleshooting which componant is at fault. I have the Ubunto disc and when I have a free moment I will give it a go.

The manufacturer suggested I reformat the hard drive and start again but I have been told by others that this would cause more problems if I have a hardware fault.

All the data is backed up therefore that is not an issue.

Thanks again.
Use the Ubuntu live cd to navigate to the .dmp files, and debug them on another windows pc. That way, if it is a hardware fault, you can fix the offending part if you ever have to reformat the pc. Try this first before considering a complete reformat. Excellent that you back up your files.
My System SpecsSystem Spec
Old 09-18-2009  
TURINTOO


Vista Home Premium 32 Bit
 
 

Re: BSOD - Debugging a BSOD in Vista

Thanks for the reply.

Got an Ubuntu disc. The correct one, 32bit.

Tested the hard drive-ok.
Tested the RAM, two passes-no errors.

Tried to run Ubuntu from the CD and it crashes after a few seconds loading.

The disc worked fine on my XP laptop.

I am at a loss and am tempted to actual pay someone to fix it.

Any ideas would be greatly appreciated.
My System SpecsSystem Spec
Old 09-21-2009  
Frostmourne


Windows 7 Ultimate x64
 
 

Re: BSOD - Debugging a BSOD in Vista

Quote  Quote: Originally Posted by TURINTOO View Post
Thanks for the reply.

Got an Ubuntu disc. The correct one, 32bit.

Tested the hard drive-ok.
Tested the RAM, two passes-no errors.

Tried to run Ubuntu from the CD and it crashes after a few seconds loading.

The disc worked fine on my XP laptop.

I am at a loss and am tempted to actual pay someone to fix it.

Any ideas would be greatly appreciated.
Crash? What error messages?
My System SpecsSystem Spec
Old 09-21-2009  
TURINTOO


Vista Home Premium 32 Bit
 
 

Re: BSOD - Debugging a BSOD in Vista

When I say "crash", what I mean is it enters the Ubuntu start menu-black screen-beep-reboot cycle. It does not present a BSOD or 'stop' code.

My original BSOD was 0x00000124 if that helps.

From the Ubunto CD I can run the ram test and the HDD test but attemting to run the OS from the Ubuntu disc just causes it to loop the above cycle.

This is the same loop I get when I try to boot from my HDD OS.

If I boot from the Vista OS disc I can get to the repair utility and even a command prompt. I actually used the command prompt option to ensure that all my data files were copied (XCOPY) to a backup external HDD. Running MS DOS from the Vista disc makes me think that the problem lies with the graphics card, but without access to a spare I cannot verify this.

Thanks again for your help.
My System SpecsSystem Spec
Old 09-21-2009  
Frostmourne


Windows 7 Ultimate x64
 
 

Re: BSOD - Debugging a BSOD in Vista

Quote  Quote: Originally Posted by TURINTOO View Post
When I say "crash", what I mean is it enters the Ubuntu start menu-black screen-beep-reboot cycle. It does not present a BSOD or 'stop' code.

My original BSOD was 0x00000124 if that helps.

From the Ubunto CD I can run the ram test and the HDD test but attemting to run the OS from the Ubuntu disc just causes it to loop the above cycle.

This is the same loop I get when I try to boot from my HDD OS.

If I boot from the Vista OS disc I can get to the repair utility and even a command prompt. I actually used the command prompt option to ensure that all my data files were copied (XCOPY) to a backup external HDD. Running MS DOS from the Vista disc makes me think that the problem lies with the graphics card, but without access to a spare I cannot verify this.

Thanks again for your help.
You could try System Rescue cd, follow the instructions to mount your hard disk extract what you need. www.sysresccd.org/

Have you tried xcopying the .dmp files?
My System SpecsSystem Spec
Old 1 Week Ago  
jcgriff2


Windows 7 , Vista
 
 

Re: BSOD - Debugging a BSOD in Vista

@ Frostmourne - very nice job.

jcgriff2
My System SpecsSystem Spec
Comment

Tutorial Tools


Similar Threads
Tutorial Category
Debugging Vista BSOD - step by step guide General Discussion
Vista 64 New Ram BSOD Vista performance & maintenance
Vista BSOD Vista General
VISTA BSOD - Please Help!!!!! Vista General
Vista BSOD, am unable to shutdown without BSOD, logoff OK Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
Tutorial powered by GARS 2.1.8m ©2005-2006

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46