problem about postmortem-debugging-Collection of common programming errors


  • Ansis Atteka
    gdb shared-libraries remote-debugging postmortem-debugging
    How do you usually get around this problem? Imagine that a thread crashes inside libc code (which is a system shared library) on Computer1 and then generates a coredump. But the Computer2 on which this coredump will be analysed might have a different version of libc. So:How important it is to have the same shared library on the remote computer? Will the gdb correctly reconstruct stacktrace without having exact same version of libc on Conputer2? How important it is to have correct debug symbols f

  • Mats Petersson
    c++ linux gdb postmortem-debugging
    I am doing a postmortem analysis of a crashed program. I am on Linux (Ubuntu 12.04, x86), the code is written in C++. The Program is using some singletons that may contain valuable information. Is it possible to find the pointer to the instance of a singleton if it was created like this:SingletonType& SingletonType::getInstance(){static SingletonType* instance = new SingletonType();return *instance; }And if its is possible, how is it done in GDB?

  • Roger Lipscombe
    minidump postmortem-debugging
    The MiscInfoStream in a minidump file contains the process create time. I’d like to find out how long the process has been running for before the crash. Does a minidump file contain the exception timestamp anywhere?WinDbg on this dump file displays the following, which implies that it’s in there somewhere…Debug session time: Tue Dec 29 15:49:20.000 2009 (GMT+0) System Uptime: not available Process Uptime: 0 days 0:33:03.000(DumpChk displays the same information, at the end of the list of strea

  • John
    c++ debugging managed-c++ mixed-mode postmortem-debugging
    Here’s the situation:BackgroundI have a mixed mode .NET/Native application developed in Visual Studio 2008. What I mean by mixed mode is that the front end is written in C++ .NET which calls into a native C++ library. The native code does the bulk of the work in the app, including kicking off new threads as it requires. The .NET code is just for UI purposes (win forms).I have a release build of application running on a tester’s computer.The native libraries were compiled with full optimisations

  • Edward Brey
    minidump ngen postmortem-debugging wer
    When ngen is executed on a .NET managed application at installation time, and a crash dump is retrieved from Windows Error Reporting for the app, how can you use it to see a stack trace, variables, etc.?Here’s some background related to the question: We have a .NET app that gets ngened at installation. When it crashes due to an unhandled .NET exception, the crash is bucketted in Windows Error Reporting, and from that I was able to download the minidump.mdmp file from winqual.microsoft.com.I put

  • Patrick
    windows debugging debug-symbols postmortem-debugging
    Within my application, I use the MiniDumpWriteDump function (see dbghelp.dll) to write a crash dump file whenever my application crashes.I also use a symbol server to store all my executables and pdb files, so that whenever a customer sends me a crash-dump file, the debugger automatically picks up the correct version of the executable and the debug information.I also store Windows DLL’s (ntdll.dll, kernel32.dll, …) and their debug information in the symbol server (using SymChk). The debug inf

  • Brent Arias
    c++ windows dump postmortem-debugging
    I’m using DebugDiag for the first time, and I’m using it on Windows 7 x64. I’ve created a crash rule for (x86) myprogram.exe, which is guaranteed to crash because I’ve coded it intentionally to crash with an “unknown exception (0xc0000417)”.I have windows “startup and recovery” configured to capture mini-dumps. It works. I’ve adjusted registry entries to capture custom mini-dumps. It works. Yes, I’m getting two different dump files as a consequence. It’s ok by me.But if I understand correc

  • Mark0978
    visual-c++ postmortem-debugging
    The Map file looks like:0002:000442e4 00000118H .idata$2 DATA 0002:000443fc 00000014H .idata$3 DATA 0002:00044410 00000b7cH .idata$4 DATA 0002:00044f8c 0000512eH .idata$6 DATA 0002:0004a0ba 00000000H .edata DATA The Crash info looks like:Application Error : The instruction at “0x00458ae1” referenced memory at “0x00000074”. The memory could not be “read”.I’m trying to get a stack dump on the next crash, but

  • Peter Mortensen
    c++ cross-platform crash crash-dumps postmortem-debugging
    I’m looking for a cross-platform crash handler. Google Breakpad looks promising, but it is sorely lacking any documentation, and requires a reasonable amount of fiddling to actually get going.What is a better alternative? All I need is the ability to reliably record crash dumps, stack traces, and CPU information at the time of a crash. Alternatively, what is the experience using Google Breakpad? Has it been great or horrible?

  • Community
    c++ debugging map remote-debugging postmortem-debugging
    I’ve lately been involved with a VC++ application running on production (Win Server 2003 SE, SP2) daily for the past few years. Every once in a while (every few months or so) the application crashes due to an unhandled exception. Obviously, we have a release executable running on prod and that is not about to change. Examining the latest crash:Two events (event viewer):APPLICATION Event (error): “Faulting application XXX , faulting module mfc42.dll, version 6.6.8032.0, fault address 0x00026e12″S

  • persiflage
    visual-studio-debugging postmortem-debugging
    I’ve got a crash in our app which I can’t debug as one of our partners has seen fit to use truly horrible ‘CodeMeter’ to encrypt their DLL. CodeMeter licensing prevents all attempts to debug an app containing a CodeMeter encrypted DLL and even seems to cause MiniDumpWriteDump called from an unhandled exception filter to fail (this technique works without this DLL loaded). The crash only happens when the encrypted DLL is loaded into the process.I’m going mad trying to debug this and establish whe

  • sergmat
    windows windows-services windbg postmortem-debugging
    I have Windbg set as the default post mortem debugger. I did this by running windbg -I. However, this only appears to catch unhandled exceptions from applications run by the user I’m logged on as, not Windows services. Does anyone know how I can configure windbg to catch these too?

  • Ian Goldby
    delphi debugging delphi-xe2 postmortem-debugging wm-paint
    I need some suggestions for debugging a crash in a Delphi XE2 application. I’ve never seen the crash myself – indeed it occurs very rarely and is not reproducible on demand. We do though have a set of 10 crash reports from MadExcept. These show that the main thread was processing a WM_PAINT message at the time in the list view on the main form. The call stack in each case shows no references to my own code, just VCL code and functions in comctl32.dll, ntdll.dll and USER32.dll.The list view in qu

  • IanH
    c++ gcc delete probability postmortem-debugging
    Please note that I don’t want to solve any problem with my question – I was thinking about probabilities of things to happen and thus was wondering about something:What exactly happens if you delete on object and use gcc as compiler?Last week I was investigating a crash, where a race condition lead to an double delete of an object.The crash occured when calling the virtual destructor of the object, because the pointer to the virtual function table already was overwritten.Is the virtual function

  • Hans Passant
    c# .net debugging .net-1.1 postmortem-debugging
    Im a developer for a major company and we are facing a nasty crash scenario.Some backgroundthe application is fundamentally a message processing system. The aplication has a large in memory dataset shared across several threads. Access to the dataset is syncronised (usually) The in memory dataset contains several tables Most messages which are processed in some way access the shared dataset object. (Select from a given table, loop through rows retrieved froma given table, update rows) The app

  • Yossi Dahan
    c# active-directory windbg postmortem-debugging
    I have an WCF-service running on an server, and occasionally(1-2 times every month) it throws an COMException with the informative message “Unknown error (0x8005008)”. When i googled for this particular error I only got threads about problems when creating virtual directories in IIS. And the source code hasn’t anything with making a virtual directory in IIS.DirectoryServiceLib.LdapProvider.Directory – CreatePost – Could not create employee for 195001010000,000000000000: System.Runtime.InteropSer

Web site is in building