Closed Bug 1071079 Opened 11 years ago Closed 11 years ago

Nightly crash in moz_cairo_surface_destroy with 0x5a5a... rbx/rcx registers

Categories

(Core :: Graphics, defect)

All
Windows NT
defect
Not set
critical

Tracking

()

RESOLVED FIXED
Tracking Status
firefox34 --- fixed
firefox35 + fixed
firefox36 + fixed
firefox-esr31 --- fixed

People

(Reporter: kairo, Unassigned)

References

Details

(Keywords: crash)

Crash Data

This bug was filed from the Socorro interface and is report bp-b7f90133-9ebc-4aae-8da5-4176d2140920. ============================================================= Top frames: 0 gkmedias.dll moz_cairo_surface_destroy gfx/cairo/cairo/src/cairo-surface.c 1 xul.dll mozilla::gfx::DrawTargetCairo::~DrawTargetCairo() gfx/2d/DrawTargetCairo.cpp 2 xul.dll mozilla::gfx::DrawTargetCairo::`scalar deleting destructor'(unsigned int) 3 xul.dll mozilla::gfx::Factory::CreateDrawTargetForData(mozilla::gfx::BackendType, unsigned char*, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits> const&, int, mozilla::gfx::SurfaceFormat) gfx/2d/Factory.cpp 4 xul.dll mozilla::layers::ImageDataSerializerBase::GetAsDrawTarget(mozilla::gfx::BackendType) gfx/layers/ImageDataSerializer.cpp 5 xul.dll mozilla::layers::BufferTextureClient::BorrowDrawTarget() gfx/layers/client/TextureClient.cpp 6 xul.dll mozilla::layers::ContentClientRemoteBuffer::CreateBuffer(gfxContentType, nsIntRect const&, unsigned int, mozilla::RefPtr<mozilla::gfx::DrawTarget>*, mozilla::RefPtr<mozilla::gfx::DrawTarget>*) gfx/layers/client/ContentClient.cpp 7 xul.dll mozilla::layers::RotatedContentBuffer::BeginPaint(mozilla::layers::ThebesLayer*, unsigned int) gfx/layers/RotatedBuffer.cpp 8 xul.dll mozilla::layers::ContentClientBasic::BeginPaintBuffer(mozilla::layers::ThebesLayer*, unsigned int) gfx/layers/client/ContentClient.h 9 xul.dll mozilla::layers::ClientThebesLayer::PaintThebes() gfx/layers/client/ClientThebesLayer.cpp [...] This started with the 20140920030206 build on 35.0a1 Nightly, is Win64 only (7/8/8.1) and the registers in the "Raw Dump" tab have rbx: "0x5a5a5a5a5a5a5a5a", rcx: "0x5a5a5a5a5a5a5a72" which sounds somewhat suspect. The crashes are EXCEPTION_ACCESS_VIOLATION_READ and the address is reported as 0xffffffffffffffff but we know that might be bogus due to Intel processor limitations in 64bit and the registers can be telling us more, that's why I mentioned the suspect ones here. Exploitability is reported as low and graphics cards are all over the place. More stats and reports can be found at https://crash-stats.mozilla.com/report/list?signature=moz_cairo_surface_destroy
Dead surface. rbx is |surface| and rcx is |&surface->ref_count|: gkmedias!_moz_cairo_surface_destroy+0x11: 000007fe`ee6afa71 8339ff cmp dword ptr [rcx],0FFFFFFFFh ds:5a5a5a5a`5a5a5a72=????????
Depends on: 1072847
Crash Signature: [@ moz_cairo_surface_destroy] → [@ moz_cairo_surface_destroy] [@ _moz_cairo_surface_destroy]
Doesn't that mean that |this| is already deleted in the DrawTargetCairo dtor? I can't see how that could happen (or how the earlier cairo call in the same dtor works).
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0 ID:20141015030202 CSet: 62f0b771583c Report ID Date Submitted bp-f64ec831-2612-4c18-8322-22b662141015 10/15/2014 1:47 PM bp-0802317f-ebe8-4945-8352-5bb842141015 10/15/2014 1:45 PM So this is not "Win64 only" or am I miss reading the bug?
Flags: needinfo?(kairo)
Originally this looked like Win64 only because of some signature variation. But Win32 has the same bug.
Flags: needinfo?(kairo)
Summary: Win64 Nightly crash in moz_cairo_surface_destroy with 0x5a5a... rbx/rcx registers → Nightly crash in moz_cairo_surface_destroy with 0x5a5a... rbx/rcx registers
The _moz_cairo_surface_destroy signature is almost exclusively 32bit, the signature without the leading underscore is 64bit.
Is it possible the cause of this bug is somewhat similar to what was at issue in Bug 1082850?
Jeff - can you confirm if the question in comment 7 is on the right track here?
Flags: needinfo?(jgilbert)
No more betas left for Desktop 35, have to wontfix.
Milan, do you know someone who could help on this bug? thanks
Flags: needinfo?(milan)
This was fixed a long time ago by bug 1071079. Double checked with crash-stats.
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: needinfo?(milan)
Flags: needinfo?(jgilbert)
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.