[cairo-bugs] [Bug 4995] New: Segfault on Win32
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Nov 9 06:39:16 PST 2005
Please do not reply to this email: if you want to comment on the bug, go to
the URL shown below and enter yourcomments there.
https://bugs.freedesktop.org/show_bug.cgi?id=4995
Summary: Segfault on Win32
Product: cairo
Version: 1.0.3
Platform: PC
OS/Version: Windows 2000
Status: NEW
Severity: critical
Priority: P2
Component: general
AssignedTo: cworth at cworth.org
ReportedBy: Christoph.Bauer at lms-gmbh.de
QAContact: cairo-bugs at cairographics.org
Hi,
I took from the FAQ this program:
#include <cairo.h>
int
main (int argc, char *argv[]) {
cairo_surface_t *surface;
surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 200, 100);
cairo_t *cr;
cr = cairo_create (surface);
cairo_select_font_face (cr, "Serif", CAIRO_FONT_SLANT_NORMAL,
CAIRO_FONT_WEIGHT_BOLD);
cairo_set_font_size (cr, 32.0);
cairo_set_source_rgba (cr, 0.0, 0.3, 1.0, 1.0);
cairo_move_to (cr, 10.0, 50.0);
cairo_show_text (cr, "Hello World");
cairo_destroy (cr);
cairo_surface_write_to_png (surface, "hw.png");
cairo_surface_destroy (surface);
return 0;
}
and get with the latest CVS cairo this:
Program received signal SIGSEGV, Segmentation fault.
0x7788f281 in ?? ()
(gdb) where
#0 0x7788f281 in ?? ()
#1 0x77887f26 in ?? ()
#2 0x004145c7 in _cairo_toy_font_face_create (family=0x437000 "Serif",
slant=CAIRO_FONT_SLANT_NORMAL, weight=CAIRO_FONT_WEIGHT_BOLD)
at ../../src/cairo-font.c:336
#3 0x00412c80 in _cairo_gstate_select_font_face (gstate=0xa12d50,
family=0x437000 "Serif", slant=CAIRO_FONT_SLANT_NORMAL,
weight=CAIRO_FONT_WEIGHT_BOLD) at ../../src/cairo-gstate.c:1683
#4 0x004059a7 in cairo_select_font_face (cr=0xa12be8,
family=0x437000 "Serif", slant=CAIRO_FONT_SLANT_NORMAL,
weight=CAIRO_FONT_WEIGHT_BOLD) at ../../src/cairo.c:1805
#5 0x0040135a in main (argc=1, argv=0xa14f48) at hw.c:8
regards,
Christoph Bauer
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
More information about the cairo-bugs
mailing list