Closed
Bug 81877
Opened 24 years ago
Closed 24 years ago
xpconnect threadsafety error reporting can infinitely recur
Categories
(Core :: XPConnect, defect)
Core
XPConnect
Tracking
()
VERIFIED
FIXED
People
(Reporter: jband_mozilla, Assigned: jband_mozilla)
Details
Attachments
(3 files)
|
169 bytes,
text/plain
|
Details | |
|
498 bytes,
text/plain
|
Details | |
|
3.28 KB,
patch
|
Details | Diff | Splinter Review |
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.
| Assignee | ||
Comment 1•24 years ago
|
||
| Assignee | ||
Comment 2•24 years ago
|
||
| Assignee | ||
Comment 3•24 years ago
|
||
Comment 4•24 years ago
|
||
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.
| Assignee | ||
Comment 5•24 years ago
|
||
> 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
Comment 6•24 years ago
|
||
sr=jst, with the fixed typo :-)
Comment 7•24 years ago
|
||
r=dbradley
| Assignee | ||
Comment 8•24 years ago
|
||
fix checked in
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•