SEGV in mozilla::css::StreamLoader::~StreamLoader() (StreamLoader.cpp:27:3)
Categories
(Core :: Networking, defect, P2)
Tracking
()
People
(Reporter: hanno, Assigned: kershaw)
Details
(Whiteboard: [necko-triaged])
Attachments
(2 files)
I got a SEGV with asan builds in mozilla::css::StreamLoader::~StreamLoader(). Unfortunately doesn't seem to be reproducible.
The code looks like this is triggered by an assert, however only enabled in nightly builds:
https://searchfox.org/mozilla-central/source/layout/style/StreamLoader.cpp#27
So this might have further consequences if it happens in a non-nightly build.
Stack trace attacked.
Updated•5 years ago
|
Comment 1•5 years ago
|
||
The assert means that Necko didn't notify us properly. We have wallpapers in place for this so it's not a security issue, but is a correctness issue.
Hanno, do you have some add-ons installed? (I believe service workers or add-ons are what cause InterceptedHttpChannel). If you could share the list that may help reproducing.
Thanks for filing!
| Reporter | ||
Comment 2•5 years ago
|
||
No addons, just a plain asan build.
| Assignee | ||
Comment 3•5 years ago
|
||
Looking at the stack trace, I think we can't call ReleaseListeners() if rv is an error.
In the case that rv is an error, the mListener is not assigned to the redirected channel and calling ReleaseListeners() will cause this bug.
Comment 4•5 years ago
|
||
What notifies the listeners of the error then? That's the last reference to the stream loader, and it hasn't been notified by then which is sketchy.
| Assignee | ||
Comment 5•5 years ago
|
||
The listener is notified when Cancel() is called, but it's called asynchronously here.
| Assignee | ||
Comment 6•5 years ago
|
||
Comment 8•5 years ago
|
||
| bugherder | ||
Comment 9•5 years ago
|
||
The patch landed in nightly and beta is affected.
:kershaw, is this bug important enough to require an uplift?
If not please set status_beta to wontfix.
For more information, please visit auto_nag documentation.
| Assignee | ||
Comment 10•5 years ago
|
||
I think this is no need to uplift, since this assertion is nightly only.
Description
•