Closed Bug 941892 Opened 6 years ago Closed 3 years ago

crash in mozalloc_abort(char const* const) | NS_DebugBreak | mozilla::plugins::PluginModuleParent::StreamCast(_NPP*, _NPStream*)


(Core :: Plug-ins, defect, critical)

26 Branch
Windows NT
Not set



Tracking Status
firefox25 --- wontfix
firefox26 - wontfix
firefox27 + verified
firefox28 --- verified
firefox-esr17 - wontfix
firefox-esr24 - wontfix
b2g18 --- unaffected


(Reporter: jbecerra, Assigned: johns)



(Keywords: crash, topcrash-win, Whiteboard: [culprit addon blocklisted])

Crash Data


(1 file)

This bug was filed from the Socorro interface and is 
report bp-cf66b499-4103-49bb-a5e0-a59ff2131121.

This started to appear in the explosive reports for Firefox 26 beta on around 11/20/2013, but it is not in the list of top crashers. Most of the reports are happening in 25.0.1 and Windows 7, and many of the comments mention it happening while playing videos.
See also: bug 556643, bug 804368, bug 802355.

Do we have Flash versions for these crashes?
Need URLs; Tracy is that something you can do? Unlikely to be a recent Mozilla regression, but something triggered either by a Flash update or a website change.
Flags: needinfo?(twalker)
Keywords: needURLs
Flags: needinfo?(twalker)
Experiencing this issue myself. Have had no issues since 25.0.1 was released until today, I have experienced 9 crashes in the span of 4 hours today, and has changed that I know of.
Started on Flash 11.8.800.174 when the issue started, tried updating to 11.9.900.152 and the issue continued.

All of the crashes happened on Youtube. Crash report links if anyone would find them helpful:

Hopefully this information proves somewhat useful.
This is shooting into high topcrash ranges across all channels in yesterday's data.
Keywords: needURLstopcrash-win
So far I have not been able to reproduce this on Win 7 VMs, with the information I've gathered in the crash report comments, but I have emailed about a dozen users affected, and I've requested more information.
I don't know if any Microsoft Windows updates come into play, but from the following page, it looks like their last patch Tuesday was on 11/12, about a week+ ago:
As an effected user, I have not installed any Windows Updates in well over a month (something I should really get on). Microsoft Office 2013 released an update that I installed on 11/22 and the most recent application I've installed was an update for Reflector ( that was released 11/07.
Another likely possibility is that an addon update may have caused this, especially because I see stream-listener-tee and JS on the stack. Tracy or Juan can you check the addon correlations to see if something shows up high on the list?
Flags: needinfo?(twalker)
I actually tried to dig this up earlier today.  But correlations for the stack aren't working. so I went to the raw data. There I could not find this signature.  Other variations of mozalloc_abort(char const* const) | NS_DebugBreak | * are there, but not this one. 

KaiRo any ideas I might be able to look into?
Flags: needinfo?(twalker)
I went through several reports, and then I looked in the extensions tab for those individual reports. There are three or add-ons in common with the reports I looked at, something called Hola (which lets you play videos where licensing doesn't allow you to), Adblock Plus, and Video Download Helper.

Several comments called out the Hola app explicitly. I tried installing it from their site (the one in AMO is not compatible), but the latest version is from today and I haven't been able to reproduce the problem with that and youtube videos yet.
The hola addon is present in all the crashes I checked. It looks like a JS-Implemented stream listener is passing the a stream to the wrong plugin listener, causing a runtime abort. However, it seems like we could return an error in nsPluginStreamListener if it receives an unknown stream and avoid the need to abort in the lower level code here.
@bsmedberg - Are you familiar with the code here? I think this is a good change,
but this might be one of those asserts-constantly-but-is-never-noticed cases, so
I'm not sure how safe taking this on branches will be.
Attachment #8337052 - Flags: review?(benjamin)
Assignee: nobody → jschoenick
Flags: in-testsuite?
Comment on attachment 8337052 [details] [diff] [review]
Take an early return if nsPluginStreamListenerPeer gets passed an unknown stream

I don't know whether our tests might hit this or not. r=me to land with the MOZ_ASSERT or keeping the less fatal NS_ASSERTION if a try run shows orange.
Attachment #8337052 - Flags: review?(benjamin) → review+
Hola latest version solved this crash. The version was submitted last week and we are waiting for Mozilla to approve the version.
It looks to me like this crash is fixed by the blocklisting in bug 942935 and probably also a new version from Hola.

Thanks everyone participating for working on fixing this and making our users' lives better!
Closed: 6 years ago
Resolution: --- → FIXED
Oh, wait, I forgot there's a patch on here from our side, so let's keep it open until that lands as well.
Resolution: FIXED → ---
Comment on attachment 8337052 [details] [diff] [review]
Take an early return if nsPluginStreamListenerPeer gets passed an unknown stream
Attachment #8337052 - Flags: checkin+
this is invalid behavior to begin with, so figuring out a test isn't really worthwhile. Since Hola was updated and old versions blocked, there's probably little need to uplift.
Flags: in-testsuite?
Whiteboard: [culprit addon blocklisted]
Closed: 6 years ago6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
(In reply to John Schoenick [:johns] from comment #22)
> this is invalid behavior to begin with, so figuring out a test isn't really
> worthwhile. Since Hola was updated and old versions blocked, there's
> probably little need to uplift.

Is there a possibility this could be trigger by other addons?  Requesting tracking all over to get decision from RelMan to wontfix or not.

I'll keep an eye on crash stats to verify this drops off topcrash lists.  I won't be able to tell whether it was this fix, the blocklist or the addon update that actually resolved the issue. But with the three combined, we should be good.
Yes, we have seen other addons trigger this in the past. This is a low-risk fix but not something we need to take on ESR or 26. Worth uplifting to 27 probably.
Renom if this does get into topcrash territory, otherwise risk and timing make comment 25 the best path here.
Comment on attachment 8337052 [details] [diff] [review]
Take an early return if nsPluginStreamListenerPeer gets passed an unknown stream

[Approval Request Comment]
Bug caused by (feature/regressing bug #): N/A

User impact if declined:
Mis-handling stream listeners in addons can trigger crash.

Testing completed (on m-c, etc.): On m-c

Risk to taking this patch (and alternatives if risky): 
Low risk, code hitting this path would almost always crash without the patch.

String or IDL/UUID changes made by this patch: None
Attachment #8337052 - Flags: approval-mozilla-aurora?
Attachment #8337052 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Verified via crash stats that this signature is no longer occurring with recent builds on both Aurora(27) and Nighty(28).
Indeed, the spike went away, but the patch here did not stop the issue -- we're still somehow passing the wrong stream to the wrong plugin instance :-/
Resolution: FIXED → ---
Some plugin is still intercepting the plugin channel, then passing OnDataAvailable to the wrong plugin instance. There's no correlation data on the bug, but all the crashes I looked at had "NoTrace" installed:
The developers have been contacted through AMO.
I got this without Hola (albeit with a different add-on, not sure if related).

I can recreate reasonably consistenly on Windows if anyone wants me to look at something. About to build debug to see if I can catch there.
Crash Signature: [@ mozalloc_abort(char const* const) | NS_DebugBreak | mozilla::plugins::PluginModuleParent::StreamCast(_NPP*, _NPStream*)] → [@ mozalloc_abort(char const* const) | NS_DebugBreak | mozilla::plugins::PluginModuleParent::StreamCast(_NPP*, _NPStream*)] [@ mozalloc_abort | NS_DebugBreak | mozilla::plugins::PluginModuleParent::StreamCast]
I'm marking this bug as FIXED per comment #23 and also bug crashlog signature didn't appear from a long time (over half year) [except some obsolete <29 versions, no crashes starting since 29 version].
Closed: 6 years ago3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.