[cairo-bugs] [Bug 62885] [Patch] Fix for crasher in quartz backend

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Mar 30 07:43:29 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=62885

--- Comment #4 from Andrea Canciani <ranma42 at gmail.com> ---
(In reply to comment #3)
> >Actually I still cannot reproduce the issue (fun fact: I don't get the crash even >if I release the cgDrawContext multiple times, so there might be some kind of >auto-ignore in the libs I'm using).
> >I'm running Lion (10.7.5) with an up-to-date development environment.
> >What environment should I use to reproduce the crashes on >9e0748e223cfb8c5557c73f3ab5068ec1323e7c2 ?
> >
> >Side note: the CGContextRelease(status->cgDrawContext) is hit in 21 tests, yet >only 7 were crashing, so there might be something more to be fixed.
> 
> I'm running Mountain Lion 10.8.3 with Xcode 4.6.1, with an autotools
> toolchain and Cairo/GTK+/Mono stack built by our bockbuild build system.
> 
> To reproduce my build:
> 1) clone https://github.com/mono/bockbuild
> 2) checkout commit 276f40b6ab296bbc44785c8a55dcfb8fff786c64 (newer commits
> have my cairo patch applied)
> 3) build the profile: "cd profiles/monodevelop-mac-dev; make" (you can abort
> the build when it's reached cairo)

I reach cairo, but it crashes with the message:
Traceback (most recent call last):
  File "./monodevelop-mac-dev.py", line 22, in <module>
    MonoDevelopMacDevProfile ().build ()
  File "../../bockbuild/profile.py", line 147, in build
    exec compile (open (path).read (), path, 'exec')
  File "./../../packages/cairo.py", line 35, in <module>
    CairoPackage ()
  File "./../../packages/cairo.py", line 3, in __init__
    CairoGraphicsPackage.__init__ (self, 'cairo', '1.12.14')
TypeError: unbound method __init__() must be called with CairoGraphicsPackage
instance as first argument (got CairoPackage instance instead)
make: *** [all] Error 1

> 4) source the newly built environment: "source md-dev-env"

and I get no md-dev-env.

> 5) run cairo tests: "cd build-root/cairo-1.12.14; make test"

I tried to do the same thing on 4a17e295ecf40fae59f9fba0b59453223615c6a3
commenting out 'patches/cairo-quartz-crash.patch' and finally managed to
reproduce the crashes!

It looks like it is sufficient to use different env settings to trigger the
crashes.

I strongly suspect that it happens because of the 32-bits build; I will check
when I have more time.
In any case, thanks a lot for the feedback!

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo-bugs/attachments/20130330/605b7289/attachment.html>


More information about the cairo-bugs mailing list