wukenaihe / google-breakpad

Automatically exported from code.google.com/p/google-breakpad
0 stars 0 forks source link

Windows 2000 support: Windows minidump writer without DbgHelp!MiniDumpWriteDump #76

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
DbgHelp.dll is not guaranteed to be present on Windows 2000.  It's
redistributable, but rather than shipping a dll (and all of that bloat), we
can write the minidumps out ourselves.  We already have a minidump writer
class (#72).  All we need to do is tie it in to the Windows exception
handler.  We will continue to use MiniDumpWriteDump from DbgHelp.dll when
it is available, but will fall back to our own minidump-writing code when
it is not.

Original issue reported on code.google.com by mmento...@gmail.com on 17 Nov 2006 at 9:19

GoogleCodeExporter commented 9 years ago

Original comment by mmento...@gmail.com on 17 Nov 2006 at 9:29

GoogleCodeExporter commented 9 years ago
Correction: Windows 2000 has a DbgHelp.dll (5.0) that does not implement
MiniDumpWriteDump.  MiniDumpWriteDump is in DbgHelp.dll 5.1 (Windows XP).  The
function may also be found in some other WinDbg packages.

Original comment by mmento...@gmail.com on 17 Nov 2006 at 9:48

GoogleCodeExporter commented 9 years ago
To me it seems better to stick with own implementation of minidump writer. What 
if
minidumps of DbgHelp are incompatible between releases? On the other side 
ability to
read native windows minidump files and import this information into breakpad 
space is
very useful.

Original comment by techtonik@gmail.com on 27 Feb 2007 at 6:22

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The quickest fix seems to be copying DbgHelp.dll (version 5.1.2600.2180 or 
greater)
into the program directory. That is a common fix for some programs and games 
that
also demand MiniDumpWriteDump from DbgHelp.dll and therefore fail to run under
Windows 2000 if no newer version of DbgHelp.dll is installed.

Original comment by gerd.roe...@gmail.com on 4 Aug 2007 at 10:13

GoogleCodeExporter commented 9 years ago
This works only if a program is compiled with MS Visual Studio.

Original comment by techtonik@gmail.com on 5 Aug 2007 at 6:09

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
At least it works here for me. I am able to submit Breakpad crash reports under
Windows 2000 for the Mozilla Firefox nightly builds.

Original comment by gerd.roe...@gmail.com on 10 Aug 2007 at 12:56

GoogleCodeExporter commented 9 years ago
I don't think this is something we should fix. Windows 2000 is no longer 
supported by Microsoft, and Chrome already doesn't support running on it, and 
Firefox will no longer support it post-version 4.0. 

Plus, shipping the DbgHelp.dll is an acceptable workaround for anyone else 
using Breakpad.

Original comment by ted.mielczarek on 24 Sep 2010 at 12:20

GoogleCodeExporter commented 9 years ago
4 years later it is no more actual, indeed.

Original comment by techtonik@gmail.com on 24 Sep 2010 at 1:54