Using google breakpad client to make dump files

286 views
Skip to first unread message

Joel Anderson

unread,
May 20, 2013, 8:42:34 PM5/20/13
to google-brea...@googlegroups.com
Hi,

I'm trying to catch a crash inside a DLL on windows 7.  This works in some dll projects but not others.  I am wondering what I am doing wrong?  Is there some project setting I need to enable?  How would I enable out-of-process exception handling?  Thanks for you help in advance.

bool filterCallback(void* context, EXCEPTION_POINTERS* exinfo, MDRawAssertionInfo* assertion)
{
context; exinfo; assertion;
MessageBox(0,"filter callback",0,0);  //Never gets called
return true;
}

bool callback(const wchar_t *dump_path, const wchar_t *id, void *context, EXCEPTION_POINTERS *exinfo, MDRawAssertionInfo *assertion, bool succeeded) 
{
MessageBox(0,0,0,0); //Never gets called
dump_path; id; context; exinfo; assertion; succeeded;
return succeeded;
}

static google_breakpad::ExceptionHandler eh(L".", filterCallback, callback, NULL, google_breakpad::ExceptionHandler::HANDLER_ALL, MiniDumpNormal); 

int* GoCrashNow = NULL;
*GoCrashNow = 12;

Joel Anderson

unread,
May 20, 2013, 8:44:45 PM5/20/13
to google-brea...@googlegroups.com
Not part of the issue but I am actually using:

static google_breakpad::ExceptionHandler eh(L".", filterCallback, callback, NULL, google_breakpad::ExceptionHandler::HANDLER_ALL);

The other was a typo.

Bruce Dawson

unread,
Jun 12, 2013, 1:32:54 PM6/12/13
to google-brea...@googlegroups.com
Where are you crashing? If you crash in a kernel callback (such as a WindowProc) on 64-bit Windows then the exception may be silently swallowed by Windows. Yep -- your crash may be ignored, with all of the undefined behavior that follows.
 
I documented this madness, and how to control it, as the second of two frustrating issues here:
 

Joel Anderson

unread,
Jun 12, 2013, 1:56:55 PM6/12/13
to google-brea...@googlegroups.com
Cheers,

Thanks for the information Bruce.   Nice blog by the way :P


--
You received this message because you are subscribed to a topic in the Google Groups "google-breakpad-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-breakpad-discuss/_xLW4eg0jHo/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to google-breakpad-d...@googlegroups.com.
To post to this group, send email to google-brea...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-breakpad-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages