I think I have found a consistent segmentation fault while using the
xcairo and pngcairo plotting devices under PLplot 5.9.0 (Debian
packages) and svn head on Debian Sid, x86-32.  I have not tested the
other *cairo devices, but given the error messages I think it would
affect others as well.

The following sequence of commands give the segfault:

plinit (selecting xcairo as the plotting device)
plenv 0.0 1.0 0.0 1.0 1 0 (I don't think the numbers matter)
plinit (select xcairo again)
plenv 0.0 1.0 0.0 1.0 1 0 (Again, the numbers don't seem to matter)
^^ This causes a segmentation fault

I have tried this with the Octave and OCaml interfaces.  The output is
the same for both bindings with the exception of the octave-specific
segfault bits at the end, and is pasted below.

I do not have the debugging packages installed for PLplot or Pango,
but hopefully this output will be of some help.  In each case the only
useful information from gdb are driversd/cairo.so and
libpango-1.0.so.0 as the culprits.  Please let me know if I can do
more to clarify.


octave:6> plenv(0,1,0,1,1,0)

(process:2854): GLib-GObject-WARNING **: cannot register existing type

(process:2854): GLib-GObject-WARNING **: cannot register existing type

(process:2854): GLib-GObject-CRITICAL **:
g_type_interface_add_prerequisite: assertion `G_TYPE_IS_INTERFACE
(interface_type)' failed

(process:2854): GLib-GObject-CRITICAL **: g_type_add_interface_static:
assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed

(process:2854): GLib-CRITICAL **: g_once_init_leave: assertion
`initialization_value != 0' failed

(process:2854): GLib-GObject-CRITICAL **: g_object_new: assertion
`G_TYPE_IS_OBJECT (object_type)' failed

(process:2854): GLib-GObject-WARNING **: cannot register existing type

(process:2854): GLib-GObject-CRITICAL **:
g_type_interface_add_prerequisite: assertion `G_TYPE_IS_INTERFACE
(interface_type)' failed

(process:2854): Pango-CRITICAL **:
pango_cairo_font_map_create_context: assertion
`PANGO_IS_CAIRO_FONT_MAP (fontmap)' failed

(process:2854): Pango-CRITICAL **: pango_layout_new: assertion
`context != NULL' failed

(process:2854): Pango-CRITICAL **: pango_cairo_update_context:
assertion `PANGO_IS_CONTEXT (context)' failed

(process:2854): GLib-GObject-CRITICAL **: g_object_unref: assertion
`G_IS_OBJECT (object)' failed

(process:2854): Pango-CRITICAL **: pango_layout_set_markup_with_accel:
assertion `PANGO_IS_LAYOUT (layout)' failed

(process:2854): Pango-CRITICAL **: pango_layout_get_pixel_extents:
assertion `PANGO_IS_LAYOUT (layout)' failed

(process:2854): Pango-CRITICAL **: pango_layout_get_context: assertion
`layout != NULL' failed

(process:2854): Pango-CRITICAL **:
pango_cairo_context_set_font_options: assertion `PANGO_IS_CONTEXT
(context)' failed
panic: Segmentation fault -- stopping myself...
attempting to save variables to `octave-core'...
save to `octave-core' complete
Segmentation fault

This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
Plplot-devel mailing list

Reply via email to