Closed Bug 586804 Opened 14 years ago Closed 14 years ago

Infinite loop on shutdown via Tester_observe

Categories

(Testing :: Mochitest, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: roc, Assigned: roc)

Details

Attachments

(1 file)

Somehow we get into a situation where during shutdown, there's a console error message reported to nsIConsoleListeners and in browser-test.js, Tester_observe is called with its scope torn down. This triggers the "ASSERTION: XPConnect is being called on a scope without a 'Components' property!", but more importantly, the call to "new testMessage" throws a JS exception: "ReferenceError: testMessage is not defined". This JS exception is reported to the console listeners ... infinite loop.
Attached patch fixSplinter Review
We need to swallow exceptions here. Nothing good can happen if we let them escape to XPCOM and be reported.
Attachment #465422 - Flags: review?(rcampbell)
Comment on attachment 465422 [details] [diff] [review]
fix

acceptable
Attachment #465422 - Flags: review?(rcampbell) → review+
Status: NEW → ASSIGNED
Keywords: checkin-needed
Whiteboard: [needs landing]
http://hg.mozilla.org/mozilla-central/rev/6db5378923fb
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Whiteboard: [needs landing]
Component: BrowserTest → Mochitest
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: