Summary: | Bus error or Segfault inside cairo_show_text | ||
---|---|---|---|
Product: | cairo | Reporter: | Asko Kauppi <askok> |
Component: | quartz font backend | Assignee: | Vladimir Vukicevic <vladimir> |
Status: | RESOLVED FIXED | QA Contact: | cairo-bugs mailing list <cairo-bugs> |
Severity: | normal | ||
Priority: | medium | CC: | askok |
Version: | 1.8.4 | ||
Hardware: | All | ||
OS: | Mac OS X (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Asko Kauppi
2008-12-09 03:00:26 UTC
A stack trace may be of use, but first can you confirm whether the bug is still present in 1.8.6 and git? I seem to recall Jeff Muizelaar complaining (and I think fixing) about the breakage of quartz fonts. It really seems to be fixed in the git. I will now need to push for fink authors to update Cairo to 1.8.6 and have a go. The error persists with MacPorts cairo 1.8.10 under MacOSX 10.6.3. Askos example saved in q.c: odradek:q marco$ uname -a Darwin odradek.schatzhaus 10.3.2 Darwin Kernel Version 10.3.2: Wed Mar 17 14:55:00 PDT 2010; root:xnu-1504.5.30~3/RELEASE_I386 i386 i386 odradek:q marco$ gcc -v Using built-in specs. Target: i686-apple-darwin10 Configured with: /var/tmp/gcc/gcc-5659~1/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1 Thread model: posix gcc version 4.2.1 (Apple Inc. build 5659) odradek:q marco$ pkg-config --modversion cairo 1.8.10 odradek:q marco$ pkg-config cairo --cflags --libs -I/opt/local/include/cairo -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng12 -L/opt/local/lib -lcairo -lpixman-1 -lfontconfig -lexpat -lfreetype -liconv -lglitz -lm -lpng12 -lz -lXrender -lX11 -lXau -lXdmcp odradek:q marco$ gcc -g $(pkg-config cairo --cflags --libs) q.c -o q odradek:q marco$ ./q Segmentation fault odradek:q marco$ gdb q GNU gdb 6.3.50-20050815 (Apple version gdb-1461.2) (Fri Mar 5 04:43:10 UTC 2010) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries ............... done (gdb) run Starting program: /Users/marco/tmp/q/q Reading symbols for shared libraries .++++++++++++++....................................................... done Reading symbols for shared libraries .. done Reading symbols for shared libraries . done Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: 13 at address: 0x0000000000000000 0x00007fff842c61ec in CGFontCreateGlyphPath () (gdb) backtrace #0 0x00007fff842c61ec in CGFontCreateGlyphPath () #1 0x00007fff843c0dca in CGFontGetGlyphPaths () #2 0x00007fff843c0ebb in CGFontGetGlyphPath () #3 0x000000010004668f in _cairo_quartz_font_scaled_glyph_init () #4 0x000000010002113d in _cairo_scaled_glyph_lookup () #5 0x0000000100030b51 in _cairo_scaled_font_subsets_map_glyph () #6 0x000000010003771d in _cairo_pdf_operators_emit_cluster () #7 0x0000000100037a5a in _cairo_pdf_operators_show_text_glyphs () #8 0x000000010005b02c in _cairo_pdf_surface_show_text_glyphs () #9 0x000000010002495c in _cairo_surface_show_text_glyphs () #10 0x00000001000151c8 in _cairo_meta_surface_replay_internal () #11 0x0000000100017305 in _paint_page () #12 0x00000001000174b8 in _cairo_paginated_surface_show_page () #13 0x00000001000250c4 in cairo_surface_show_page () #14 0x00000001000176b8 in _cairo_paginated_surface_finish () #15 0x0000000100026be6 in cairo_surface_finish () #16 0x0000000100026c73 in cairo_surface_destroy () #17 0x0000000100000e3e in main () at q.c:20 (gdb) (In reply to comment #3) > The error persists with MacPorts cairo 1.8.10 under MacOSX 10.6.3. Askos > example saved in q.c: git bisect seems to indicate that the problem has been fixed by commit 449d81cd0e1ea99118d639dda8c9516d96260c5b Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Mon Aug 10 16:51:07 2009 +0100 [quartz] Use the implementation font-face not the associated As the associated is now explicitly the font-face used to create the font by the user, whereas what we require is the current implementation (quartz) font. Could you please check if you can reproduce the bug with release which includes this change (cairo 1.10.0, 1.10.2 or from git)? If you manage to, please reopen this bug providing further details on how to reproduce. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.