[cairo] Cairo 1.8 crashes when creating PDF (OS X 10.5 PowerPC)

Paolo Bonzini bonzini at gnu.org
Mon Dec 8 15:26:13 PST 2008

Asko Kauppi wrote:
> I would like to use 1.8.x because of its nice Quartz integration, but  
> it gives either "segfault" or "bus error" when generating PDF files.  

> This has happened using two separate Lua bindings; I have not tried  
> with C level PDF creation, yet.

Please try.  This for example works for me:

#include <cairo.h>
#include <cairo-pdf.h>
int main ()
  cairo_surface_t *surface;
  cairo_t *cr;

  surface = cairo_pdf_surface_create ("hello.pdf", 120, 120);
  cr = cairo_create (surface);
  cairo_arc(cr, 60, 60, 25, 0, 6.283);
  cairo_set_source_rgb(cr, 0.5, 0.6, 0.8);
  cairo_set_line_width(cr, 5.0);
  cairo_set_source_rgb(cr, 0.3, 0.4, 0.6);
  cairo_destroy (cr);
  cairo_surface_destroy (surface);

Try it in C and with your two bindings.

And since you are at it, could you try if you can reproduce


on your setup?  I reported it but nobody confirmed it.



More information about the cairo mailing list