Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's in a dump file?

I've been asked by a MS Connect moderator to provide a mini dump file for an issue I'm experiencing with Visual Studio.

My business is mildly concerned about what might be contained within the dump file (which is around half a gig in size).

By "mildly concerned", I merely mean they've asked me to find out whether any proprietary code will be included (and, if so, how much).

The dump file was created by Visual Studio by doing the following:

  1. Start Visual Studio.
  2. Start another instance of VS.
  3. In the second instance click Tools | Attach to Process...
  4. In the list of processes locate devenv.exe.
  5. Click Select... and explicitly choose 'Native' and 'Managed' code.
  6. Click OK and OK to close Select dialog and Attach to Process dialog.
  7. Go back to the first instance of VS and repro the crash.
  8. Upon the crash, control should go to the second instance of VS.
  9. In the second instance click Debug | Save Mini Dump.

I thought the lovely people here at StackOverflow would be able to help. So my questions to you are:

  • What's in a Visual Studio dump file?
  • Are there any considerations I should take into consideration before creating the dump file, to avoid sending the contents of my emails, all my passwords and my bank account details along with the source code of all my colleagues?
like image 389
m-smith Avatar asked Nov 14 '11 16:11

m-smith


1 Answers

A user mode mini dump contains the memory of the process you're dumping, not the entire system. Other processes running on the system are not affected. In other words the dump contains data and executable code for the specific process.

For native code that means the compiled code. For a managed application that means both the IL and the compiled code. I.e. it is a no-brainer to extract high level managed IL code from a dump file. The IL can be interpreted by tools like Reflector.

In your case, you're creating a dump file of a Visual Studio process (devenv.exe), so unless you have a VS plugin that stores your personal data the dump will not contain your personal information. As for your source code the dump may contain some data related to this, but you're definitely not shipping all your source code as part of the dump file.

like image 199
Brian Rasmussen Avatar answered Nov 15 '22 03:11

Brian Rasmussen