Closed
Bug 624835
Opened 14 years ago
Closed 14 years ago
Exception handler should handle DebugBreak exceptions
Categories
(Toolkit :: Crash Reporting, defect)
Tracking
()
RESOLVED
FIXED
mozilla2.0b10
Tracking | Status | |
---|---|---|
blocking2.0 | --- | betaN+ |
People
(Reporter: benjamin, Assigned: benjamin)
References
Details
(Whiteboard: [softblocker])
Attachments
(1 file)
(deleted),
patch
|
ted
:
review+
|
Details | Diff | Splinter Review |
The exception handler should handle DebugBreak exceptions: we use these in release code (mozalloc_abort): see bug 624809 for STR.
Ted says we should be calling ExceptionHandler::set_handle_debug_exceptions(true).
Assignee | ||
Comment 1•14 years ago
|
||
I believe this should block, we might be hiding intentional aborts which affect our perceived crashiness.
Assignee: nobody → benjamin
blocking2.0: --- → betaN+
Assignee | ||
Comment 2•14 years ago
|
||
This appears to work, but I don't have a test. Ted, do you think that matters?
Attachment #502931 -
Flags: review?(ted.mielczarek)
Comment 3•14 years ago
|
||
Comment on attachment 502931 [details] [diff] [review]
Catch ::DebugBreak, rev. 1
You could add an xpcshell test, you'd have to add to the C++ component to call DebugBreak though, probably.
Attachment #502931 -
Flags: review?(ted.mielczarek) → review+
Comment 4•14 years ago
|
||
[hardblocker] or [softblocker], bsmedberg?
Assignee | ||
Updated•14 years ago
|
Whiteboard: [softblocker]
Comment 5•14 years ago
|
||
(In reply to comment #3)
> (From update of attachment 502931 [details] [diff] [review])
> You could add an xpcshell test, you'd have to add to the C++ component to call
> DebugBreak though, probably.
ctypes?
Assignee | ||
Comment 6•14 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/dab2f429fe20 (tests)
http://hg.mozilla.org/mozilla-central/rev/0e44149ece98 (patch)
I had to add Windows #ifdefs because set_handle_debug_exceptions is Windows-only.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•14 years ago
|
Target Milestone: --- → mozilla2.0b10
Comment 7•14 years ago
|
||
(In reply to comment #6)
> http://hg.mozilla.org/mozilla-central/rev/dab2f429fe20 (tests)
> http://hg.mozilla.org/mozilla-central/rev/0e44149ece98 (patch)
Ftr, the former is patch and the latter is test.
***
+++ b/toolkit/crashreporter/test/unit/test_crash_runtimeabort.js
+ dump("INFO | test_crash_purevirtual.js | Can't test crashreporter in a non-libxul build.\n");
Nit: s/test_crash_purevirtual.js/test_crash_runtimeabort.js/
Version: unspecified → Trunk
You need to log in
before you can comment on or make changes to this bug.
Description
•