[cairo-bugs] [Bug 18977] Bus error or Segfault inside cairo_show_text

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Jun 9 13:35:20 PDT 2010


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

Marco Manfredini <tmp at phoyd.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |

--- Comment #3 from Marco Manfredini <tmp at phoyd.net> 2010-06-09 13:35:16 PDT ---
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)

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the cairo-bugs mailing list