Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1079673

Summary: FTBFS: _cairo_scaled_glyph_page_destroy: Assertion `!scaled_font->cache_frozen' failed
Product: [Fedora] Fedora Reporter: Karsten Hopp <karsten>
Component: pycairoAssignee: John (J5) Palmieri <john.j5live>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: rawhideCC: dan, jcajka, john.j5live, kdudka
Target Milestone: ---   
Target Release: ---   
Hardware: powerpc   
OS: Linux   
Whiteboard:
Fixed In Version: pycairo-1.8.10-10.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-21 13:31:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 467765, 1071880    
Attachments:
Description Flags
build.log
none
Patch fixing bug none

Description Karsten Hopp 2014-03-22 21:34:15 UTC
Created attachment 877675 [details]
build.log

Description of problem:
The latest pycairo fails on PPC during the unit tests:

+ py.test
============================= test session starts ==============================
platform linux2 -- Python 2.7.6 -- pytest-2.4.2
collected 7 items
api_test.py ......
examples_test.py F
=================================== FAILURES ===================================
________________________________ test_snippets _________________________________
    def test_snippets():
      '''Run all snippets in png,pdf,ps,svg mode and check they exit successfully.
      This will create *.{pdf,png,ps,svg} output files in
      examples/cairo_snippets/snippets/
      '''
      def doSnippets(name):
        retcode = subprocess.call('python %s -s' % name, shell=True)
        assert retcode == 0, 'Error: retcode == {0}'.format(retcode)
    
      os.chdir(os.path.join(os.path.dirname(__file__), '..', 'examples',
                            'cairo_snippets'))
      if cairo.HAS_PDF_SURFACE:
>       doSnippets('snippets_pdf.py')
../../test/examples_test.py:27: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
name = 'snippets_pdf.py'
    def doSnippets(name):
      retcode = subprocess.call('python %s -s' % name, shell=True)
>     assert retcode == 0, 'Error: retcode == {0}'.format(retcode)
E     AssertionError: Error: retcode == -6
../../test/examples_test.py:22: AssertionError
------------------------------- Captured stderr --------------------------------
python: cairo-scaled-font.c:459: _cairo_scaled_glyph_page_destroy: Assertion `!scaled_font->cache_frozen' failed.
====================== 1 failed, 6 passed in 0.40 seconds ======================


Version-Release number of selected component (if applicable):
pycairo-1.8.10-8.fc21

How reproducible:


Steps to Reproduce:
1. ppc-koji build--scratch f21 pycairo-1.8.10-8.fc21.src.rpm
2.
3.

Actual results:
http://ppc.koji.fedoraproject.org/koji/taskinfo?taskID=1726804

Expected results:


Additional info:

Comment 1 Dan Horák 2014-05-20 08:13:09 UTC
The tests seems to pass when built on F-20, so maybe a different Cairo or something like that.

Comment 2 Jakub Čajka 2014-05-21 13:24:32 UTC
Created attachment 897971 [details]
Patch fixing bug

lyx-font was missing on ppc from build dependencies, that caused test to fail.
Added patch fixing this bug to attachment.

Comment 3 Dan Horák 2014-05-21 13:31:23 UTC
Thanks a lot, Jakub, closing.