Closed Bug 81877 Opened 24 years ago Closed 24 years ago

xpconnect threadsafety error reporting can infinitely recur

Categories

(Core :: XPConnect, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: jband_mozilla, Assigned: jband_mozilla)

Details

Attachments

(3 files)

peterv pointed out the problem he was having with the DEBUG_ReportWrapperThreadSafetyError recuring in the call to xpc_DumpJSStack I'll attach a test case that shows the problem, and a patch to fix it. The test case should be copied to the components directory. It will hit the DEBUG_ReportWrapperThreadSafetyError case because Components and Components.interfaces are not marked threadsafe in their nsClassInfos (though they should be! - that would be another bug) In the trunk this case will get into infinite recursion. With the patch it will report the errors and get on wioth things. NOTE that running this test multiple time requites 'touching' the test case .js file otherwise the JS component loader will not try to load it on subsequent runs.
Attached patch proposed fixSplinter Review
I have fixed my threadsafety problems in the meantime, but this looks like the right fix for the infinite recursion. One little nit: WrappepNative should be WrappedNative in the error message. Other than that, r=peterv. I haven't had any problems with Components or Components.interfaces.
> One little nit: WrappepNative should be WrappedNative Thanks Peter. I saw this after I posted the diff and fixed it locally. I wondered if you'd notice :) I'll solicit an sr= for this and get it checked in.
Status: NEW → ASSIGNED
sr=jst, with the fixed typo :-)
r=dbradley
fix checked in
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Marking Verified -
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: