This is a mirror of official site: http://jasper-net.blogspot.com/

Intro to Debugging a Memory Dump

| Tuesday, March 20, 2012
I was discussing debugging with some folk internally that didn’t really have much exposure to it, but wanted to learn.  I considered the items pretty basic and didn’t really dive into to much, but I had a few comments that the information was good.  One thing I found that was interesting was that I did some searching around, and couldn’t really find a good reference that summed up the items below.  I found some information on the individual items, but I knew what to go look for.  From the perspective of someone just getting started, it wasn’t obvious.  So, I figured I would share out what I put together as it may be helpful for someone else.

NOTE:  All examples below are using the public Debugger along with public symbols and extensions.  These are available to everyone.

Intro to the Intro

There are some concepts that go along with Debugging that are sometimes not addressed directly when we look at the topic of debugging itself.  These concepts are extremely helpful when we start going through dumps and understand how to connect the dots.  Foundational knowledge really helps in this complex topic.  I will try to add some public references to some items you can read up on, but this shouldn’t be where you stop.  If you really are interested in this topic, there is a wealth of information out there that can help with some of the background. 

A good place to start is the Windows Internals book by David Solomon and Mark Russinovich.  Specifically the chapter on Memory Management and how this works. When talking about Dumps and Debugging, we are working with the contents of Memory. Understanding how memory works is extremely helpful.  Note:  Volume 6 Part 1 was just recently release, but it looks like the Memory Management pieces for Volume 6 will be in Part 2. 

Having some development experience is also helpful.  While you may not need to look at Code directly in a dump, you are looking at the results of code.  The concept of Pointers is sometimes hard for someone to grasp that doesn’t necessarily have a programming background, but when dealing with a memory dump, or debugging, the understanding of how Pointers work can be very helpful.  Even when we are debugging a Managed (.NET) application instead of a Native (C++ or non-managed) Application.  Another good book is Windows via C/C++ by Jeffrey Rickter and Christophe Nasarre. 

The last book I will mention is Debugging Applications by John Robbins.  It should be obvious why I’m recommending it – having to do with Debugging and all.

The above books are not for the feint of heart, but do provide a lot of great information.  From a support perspective, these are two books you see on most people’s bookshelves.  I definitely recommend them for yours and will really help with regards to this topic.

QR: Inline image 1

Posted via email from Jasper-net

6 comments:

Anonymous said...

Hi there are using Wordpress for your site platform?

I'm new to the blog world but I'm trying to get started and set up my own.
Do you require any coding knowledge to make your own blog?
Any help would be really appreciated!
Stop by my weblog :: hot products

Anonymous said...

Hi there! Quick question that's completely off topic. Do you know how to make your site mobile friendly? My weblog looks weird when browsing from my apple iphone. I'm
trying to find a theme or plugin that might be able
to fix this issue. If you have any recommendations, please share.
Thank you!

My weblog :: mail.Tilojavideo.com

Anonymous said...

Valuable info. Fortunate me I found your site accidentally, and I'm shocked why this twist of fate did not came about in advance! I bookmarked it.

Also visit my blog ... drinking coffee

Anonymous said...

You really make it seem so easy with your presentation but I
find this topic to be actually something that I think I
would never understand. It seems too complex and extremely broad for me.
I'm looking forward for your next post, I will try to get the hang of it!

my web blog: cancerfightersz.com

Anonymous said...

I just could not leave your website before suggesting that I extremely enjoyed the standard information
a person supply for your visitors? Is gonna be again often in order to inspect
new posts

my website; http://www.mypump.de/index.php?title=Work_Clothes_For_Women

Anonymous said...

I'm not sure why but this blog is loading very slow for me. Is anyone else having this problem or is it a problem on my end? I'll check back later and
see if the problem still exists.

Also visit my web page :: evo-training.com