Closed
Bug 843923
Opened 12 years ago
Closed 12 years ago
ASAN: js/xpconnect/tests/unit/test_bug608142.js triggers heap-use-after-free error
Categories
(Core :: XPConnect, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: decoder, Assigned: bholley)
References
(Blocks 1 open bug)
Details
(Keywords: csectype-uaf, sec-high, Whiteboard: [asan][asan-test-failure][adv-main24-])
Attachments
(1 file)
11.42 KB,
text/plain
|
Details |
ASan Try run has detected that js/xpconnect/tests/unit/test_bug608142.js is failing under ASan. I was able to reproduce this locally with a debug build (mozilla-central 885cde564ff3) by running the following command in the objdir:
taskset -c 0 make -C js/xpconnect/tests xpcshell-tests
Without the taskset, the bug doesn't reproduce (it seems to be a thread race). I'll attach the symbolized ASan log.
Comment 1•12 years ago
|
||
That looks kind of bad. Bug 608142 is "Disallow sending JS objects to a different thread", and in the log something in thread T8 is calling nsXPCWrappedJS::Release() on an object that was freed on the main thread.
Yeah this whole thing is just bad and we should make it go away.
Assignee | ||
Comment 3•12 years ago
|
||
yeah, I'm working on fixing bug 773610. Once we do that, we can rip out all the half-baked thread support.
Comment 4•12 years ago
|
||
over to bobby. Can you make sure that someone addresses this when you're done with bug 773610
Assignee: nobody → bobbyholley+bmo
Reporter | ||
Updated•12 years ago
|
Blocks: asan-maintenance
Reporter | ||
Comment 5•12 years ago
|
||
This is still happening on try: https://tbpl.mozilla.org/php/getParsedLog.php?id=23204529&tree=Try
Comment 6•12 years ago
|
||
This test is gone, I'm assuming as part of bholley's work to add runtime aborts for refcounting nsXPCWrappedJS off the main thread, so I'm going to mark this as fixed. I don't think we have any real way of backporting this, unfortunately.
Updated•11 years ago
|
Whiteboard: [asan][asan-test-failure] → [asan][asan-test-failure][adv-main24-]
Updated•11 years ago
|
status-b2g18:
--- → wontfix
status-firefox-esr17:
--- → wontfix
Keywords: csec-uaf
Summary: ASAN: js/xpconnect/tests/unit/test_bug608142.js triggers error → ASAN: js/xpconnect/tests/unit/test_bug608142.js triggers heap-use-after-free error
Updated•10 years ago
|
Group: core-security
You need to log in
before you can comment on or make changes to this bug.
Description
•