Closed Bug 324711 Opened 20 years ago Closed 20 years ago

crash of FF-cairo-gtk2 due to transparency blending code

Categories

(Core :: Graphics, defect)

x86
Linux
defect
Not set
critical

Tracking

()

RESOLVED FIXED

People

(Reporter: wuno, Unassigned)

Details

(Keywords: crash)

Attachments

(3 files)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a1) Gecko/20060125 Firefox/1.6a1 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a1) Gecko/20060125 Firefox/1.6a1 currently ff built with default-toolkit=cairo-gtk2 crashes immedeately after starting. Running with -g lets the window show frozen and incompletely (screenshot and gdb backtrace attached). I traced it down to this input 2006-01-18 14:43 vladimir%pobox.com mozilla/gfx/thebes/public/gfxPattern.h 1.7 4/0 Use PushGroup()/PopGroup() to implement transparency blending using cairo 2006-01-18 14:43 vladimir%pobox.com mozilla/gfx/thebes/public/gfxContext.h 1.16 7/0 2006-01-18 14:43 vladimir%pobox.com mozilla/gfx/src/thebes/nsThebesRenderingContext.h 1.4 4/0 2006-01-18 14:43 vladimir%pobox.com mozilla/gfx/src/thebes/nsThebesRenderingContext.cpp 1.7 17/10 2006-01-18 14:43 vladimir%pobox.com mozilla/gfx/thebes/src/gfxContext.cpp 1.16 18/0 When backing this out, it runs perfectly again. I am wondering, why backtrace shows a crash in /usr/lib/libcairo.so.2 (even with cairo-cvs installed) Reproducible: Always Steps to Reproduce: 1. compile with-default-toolkit=cairo-gtk2, disable-system-cairo 2. compiles fine 3. start -> immediate crash Expected Results: should run
Attached file backtrace under gdb —
Backtrace output
This is not a patch for the mozilla-tree but for cairo-cvs-HEAD as of 01-26-2006. I thought looking at the gdb output that libcairo.so.2 couldn't deal with cairo_push_group () . Patching cairo-cvs-HEAD accordingly to the in-tree-cairo worked to get a running FF-cairo-gtk2 with the original code (not backed out the transparency blending code)
Attachment #209729 - Attachment is patch: true
Severity: normal → critical
Keywords: crash
Traced it further down, I can run ff-cairo-gtk2 trunk w/o problems with unpatched cairo-1.0.2 when I don't use "--as-needed" in my ldflags. However, when I make a dummy-symlink from libthebes.so to libcairo.so.2, I can run it w/o crash also using -Wl,--as-needed. I used --as-needed for several months for building firefox with cairo-gtk2 or gtk2 and yet I haven't had any probs before the mentioned push-pop-group.patch was checked in. Again, the question why a library links to libcairo.so.2 (without as-needed all libs, with as-needed the only lib is libwidget_gtk2.so) Shouldn't all cairo functions be in libthebes.so??? Furtermore in pure gtk2 builds with as-needed the only lib that needs libcairo.so.2 is libgtklayout.so (and not libwidget_gtk2.so) and those gtk2 builds don't crash.
With the last fixes to intree-cairo and push-pop-group.patch as of 2006-02-07 the problems are gone, works with unpatched cairo-cvs and also cairo-1.0.2 :)
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: