Closed
Bug 999016
Opened 11 years ago
Closed 11 years ago
ASAN failure if nsThread doesn't busy-loop in Shutdown() or DISPATCH_SYNC
Categories
(Core :: XPCOM, defect)
Core
XPCOM
Tracking
()
RESOLVED
INVALID
People
(Reporter: jesup, Unassigned)
References
Details
(Keywords: perf)
Attachments
(1 file)
|
9.76 KB,
text/plain
|
Details |
+++ This bug was initially created as a clone of Bug #998880 +++
Opening a security bug to track a possible serious sec issue in XPCOM and/or IPC and/or DOM.
Bug 998880 switches to waiting from busy-waiting in nsThread::Shutdown() and ::Dispatch(...,DISPATCH_SYNC). This should cause no difference in execution other than details of what thread switches occur (and if the thread loops through Wait).
A try his this asan failure:
https://tbpl.mozilla.org/php/getParsedLog.php?id=38181578&tree=Try&full=1#error0
(callstack attached)
This happens deep below dom::TabChild::RecvLoadRemoteScript(), called a few frames earlier from ipc::MessageChannel::DispatchAsyncMessage()
I presume this is because the change in thread-switching behavior has exposed a latent ASAN bug in cross-thread usage.
| Reporter | ||
Updated•11 years ago
|
Summary: nsThread shouldn't busy-loop in NS_ProcessNextEvent waiting for a thread to shutdown → ASAN failure if nsThread doesnn't busy-loop in Shutdown() or DISPATCH_SYNC
| Reporter | ||
Updated•11 years ago
|
Summary: ASAN failure if nsThread doesnn't busy-loop in Shutdown() or DISPATCH_SYNC → ASAN failure if nsThread doesn't busy-loop in Shutdown() or DISPATCH_SYNC
| Reporter | ||
Comment 1•11 years ago
|
||
Per bent, this is an intentional crash via
http://mxr.mozilla.org/mozilla-central/source/dom/ipc/tests/process_error_contentscript.js
so it's not an actual ASAN bug; just odd that it would show up on my push. Timing? I guess
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
Updated•11 years ago
|
Group: core-security
Comment 2•11 years ago
|
||
We don't need to use the more restrictive component-specific security groups unless a bug is sec-high or sec-critical
Group: media-core-security
Updated•11 years ago
|
Group: core-security
You need to log in
before you can comment on or make changes to this bug.
Description
•