[cairo] SEGFAULT - cairo bug? or what?

Tomas Tomas at zemres.cz
Sun Nov 7 07:33:38 PST 2004


Hi,

I'm trying cairo-sdl-demo, but it SEGFAULTs ...
http://cvs.cairographics.org/cgi-bin/viewcvs.cgi/cairo/cairo-demo/sdl.tar.gz?view=tar

with libs:
cairo from cvs
libsvg-0.1.2
libsvg-cairo-0.1.4

$ export
LD_LIBRARY_PATH=/home/tnt/pcterc/sw/svg/libsvg-cairo-0.1.4/src/.libs/:/home/tnt/pcterc/sw/svg/cairo-cvs-041107/src/.libs:/home/tnt/pcterc/sw/svg/libsvg-0.1.2/src/.libs
$ gdb ./demo

(gdb) run
Starting program: /home/tnt/pcterc/sw/svg/sdl/demo
[Thread debugging using libthread_db enabled]
[New Thread 1079546528 (LWP 25404)]
rwidth/width = 0.400000
height/rheight = 0.400000

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1079546528 (LWP 25404)]
0x7340100d in ?? ()

(gdb) bt
#0  0x7340100d in ?? ()
#1  0x401064ce in *INT_cairo_surface_destroy (surface=0x822b098) at
cairo_surface.c:144
#2  0x402fc21a in _svg_cairo_set_gradient (svg_cairo=0x8167010,
gradient=0x8195cdc) at svg_cairo.c:606
#3  0x402fc4b5 in _svg_cairo_set_paint_and_opacity (svg_cairo=0x8167010,
paint=0x81d0204, opacity=1) at svg_cairo.c:674
#4  0x402fd006 in _svg_cairo_render_path (closure=0x8167010) at
svg_cairo.c:1011
#5  0x402fd5eb in _svg_cairo_render_rect (closure=0x8167010,
x_len=0x8195fc4, y_len=0x8195fd0, width_len=0x8195fdc,
height_len=0x8195fe8,
    rx_len=0x8195ff4, ry_len=0x8196000) at svg_cairo.c:1108
#6  0x402efe05 in _svg_rect_render (rect=0x8195fc4, engine=0x40300120,
closure=0x8167010) at svg_path.c:750
#7  0x402ea1ef in svg_element_render (element=0x8195ef0,
engine=0x40300120, closure=0x8167010) at svg_element.c:315
#8  0x402eb523 in _svg_group_render (group=0x819d6e4, engine=0x40300120,
closure=0x8167010) at svg_group.c:123
#9  0x402ea129 in svg_element_render (element=0x819d610,
engine=0x40300120, closure=0x8167010) at svg_element.c:300
#10 0x402e86e9 in svg_render (svg=0x8262718, engine=0x40300120,
closure=0x8167010) at svg.c:224
#11 0x402fb65f in svg_cairo_render (svg_cairo=0x8167010, cr=0x805d8e8)
at svg_cairo.c:332
#12 0x08048cf1 in load_svg (file=0x8049118 "demo.svg", width=320,
height=240, wscale=1, hscale=1) at main.c:107
#13 0x08048eb8 in main (argc=1, argv=0xbffff824) at main.c:152


Is it cairo bug or what is it?

T.
-- 
mailto: Tomas at Zemres.cz
icq# 22996508
jabber://tnt@jabber.sh.cvut.cz





More information about the cairo mailing list