Closed Bug 624835 Opened 14 years ago Closed 14 years ago

Exception handler should handle DebugBreak exceptions

Categories

(Toolkit :: Crash Reporting, defect)

x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla2.0b10
Tracking Status
blocking2.0 --- betaN+

People

(Reporter: benjamin, Assigned: benjamin)

References

Details

(Whiteboard: [softblocker])

Attachments

(1 file)

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).
I believe this should block, we might be hiding intentional aborts which affect our perceived crashiness.
Assignee: nobody → benjamin
blocking2.0: --- → betaN+
Attached patch Catch ::DebugBreak, rev. 1 (deleted) — Splinter Review
This appears to work, but I don't have a test. Ted, do you think that matters?
Attachment #502931 - Flags: review?(ted.mielczarek)
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+
[hardblocker] or [softblocker], bsmedberg?
Whiteboard: [softblocker]
(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?
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
Target Milestone: --- → mozilla2.0b10
(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.

Attachment

General

Created:
Updated:
Size: