Closed Bug 992406 Opened 6 years ago Closed 6 years ago

crash in mozilla::gfx::SurfaceToPackedBGRA(mozilla::gfx::DataSourceSurface*)


(Core :: Graphics, defect, critical)

31 Branch
Windows NT
Not set



Tracking Status
firefox30 --- verified
firefox31 --- verified


(Reporter: lizzard, Assigned: jwatt)



(Keywords: crash, verifyme)

Crash Data


(1 file)

This bug was filed from the Socorro interface and is 
report bp-543d31c1-f064-4132-9405-11a8a2140403.
This was the #22 topcrasher today for Firefox 31.0a1, with 73 out of 7220 crashes.  It first appeared 2014-03-27. 


0 	xul.dll 	mozilla::gfx::SurfaceToPackedBGRA(mozilla::gfx::DataSourceSurface *) 	gfx/2d/DataSurfaceHelpers.cpp
1 	xul.dll 	mozilla::widget::AsyncFaviconDataReady::OnComplete(nsIURI *,unsigned int,unsigned char const *,nsACString_internal const &) 	widget/windows/WinUtils.cpp
2 	xul.dll 	mozilla::places::NotifyIconObservers::Run() 	toolkit/components/places/AsyncFaviconHelpers.cpp
3 	xul.dll 	nsThread::ProcessNextEvent(bool,bool *) 	xpcom/threads/nsThread.cpp
4 	xul.dll 	NS_ProcessNextEvent(nsIThread *,bool) 	xpcom/glue/nsThreadUtils.cpp
5 	xul.dll 	mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate *) 	ipc/glue/MessagePump.cpp
6 	xul.dll 	MessageLoop::RunHandler() 	ipc/chromium/src/base/
7 	xul.dll 	MessageLoop::Run() 	ipc/chromium/src/base/
8 	xul.dll 	nsBaseAppShell::Run() 	widget/xpwidgets/nsBaseAppShell.cpp
9 	xul.dll 	nsAppShell::Run() 	widget/windows/nsAppShell.cpp
10 	xul.dll 	nsAppStartup::Run() 	toolkit/components/startup/nsAppStartup.cpp
11 	xul.dll 	XREMain::XRE_mainRun() 	toolkit/xre/nsAppRunner.cpp
12 	xul.dll 	XREMain::XRE_main(int,char * * const,nsXREAppData const *) 	toolkit/xre/nsAppRunner.cpp
13 	xul.dll 	XRE_main 	toolkit/xre/nsAppRunner.cpp
14 	firefox.exe 	do_main 	browser/app/nsBrowserApp.cpp
15 	firefox.exe 	NS_internal_main(int,char * *) 	browser/app/nsBrowserApp.cpp
16 	firefox.exe 	wmain 	toolkit/xre/nsWindowsWMain.cpp
17 	firefox.exe 	__tmainCRTStartup 	f:/dd/vctools/crt_bld/self_x86/crt/src/crtexe.c
18 	kernel32.dll 	BaseThreadInitThunk 	
19 	ntdll.dll 	__RtlUserThreadStart 	
20 	ntdll.dll 	_RtlUserThreadStart

More Reports:*%29&date=2014-04-04&range_value=14#tab-sigsummary
Jeff, where should we start looking based on the stack?
Flags: needinfo?(jmuizelaar)
Flags: needinfo?(jmuizelaar)
This code was introduced in bug 981430
Attached patch patchSplinter Review
Pretty clearly a null-deref on dataSurface. The crash reports show that this is not an OOM issue though. Bas, it seems a bit concerning that GetDataSurface can be failing. Any thoughts on that?
Assignee: nobody → jwatt
Attachment #8405920 - Flags: review?(bas)
Attachment #8405920 - Flags: review?(bas) → review+
There was a question for you in comment 3. ;)
Flags: needinfo?(bas)
This has risen to #13 for Firefox 31, now accounting for 1.07% of all Firefox 31 browser crashes in the last week. At this rate I expect this to become a topcrash very soon.
Blocks: 981430
Comment on attachment 8405920 [details] [diff] [review]

[Approval Request Comment]
Bug caused by (feature/regressing bug #): bug 981430
User impact if declined: topcrash
Testing completed (on m-c, etc.): landed on m-i, trivial patch safe for immediate uplift
Risk to taking this patch (and alternatives if risky): pretty much zero
String or IDL/UUID changes made by this patch: none
Attachment #8405920 - Flags: approval-mozilla-aurora?
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
Attachment #8405920 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
(In reply to Jonathan Watt [:jwatt] (vacation Dec 22 - Jan 5) from comment #3)
> Created attachment 8405920 [details] [diff] [review]
> patch
> Pretty clearly a null-deref on dataSurface. The crash reports show that this
> is not an OOM issue though. Bas, it seems a bit concerning that
> GetDataSurface can be failing. Any thoughts on that?

This should be able to occur on device loss and things like that.
Flags: needinfo?(bas)
You need to log in before you can comment on or make changes to this bug.