[cairo] Problems running GTK+2.8.7 on Solaris

David Hollenberg dhollen at mosis.org
Fri Nov 18 17:10:30 PST 2005

I'm not sure this is the appropriate forum, but some of the symptoms
seem to indicate that my problem *might* be related to cairo.

I compiled GTK+2.8.7 with cairo 1.0.0 on Solaris 9, using gcc 3.3.2.
I believe Solaris is big-endian.  When I try to run gtk-demo, I get a
segmentation fault.  If I run it under gdb, gdb reports an internal

If I run it under dbx, I get the backtrace shown below.  Is this some
kind of a configuration problem?  Has anyone successfully run a 2.8 gtk-demo
on Solaris?

Also, I have another application that needs GTK+ and it mostly runs
fine with GTK+2.8.7.  However, the red and blue components seem to be
switched in all text labels, so the color of text is wrong.

Any ideas on how to track this down?  I tried posting on the GTK+ list
but didn't get any response.

(dbx) run
Running: gtk-demo 
(process id 24941)
Reading libpixbufloader-gif.so
Reading pango-basic-fc.so
signal SEGV (no mapping at the fault address) in (unknown) at 0x0
0x00000000:     <bad address 0x0>
(dbx) bt
  [1] 0x0(0xe76d0, 0x0, 0xa3, 0xffbf626c, 0x0, 0x0), at 0xffffffffffffffff 
  [2] fbFetch(0xe8000, 0x0, 0x0, 0xa3, 0xffbf626c, 0x7f0ed82c), at 0x7f0ed8f4 
  [3] fbCompositeRect(0xffbf5fb8, 0xffbf5fe0, 0xe75e0, 0xe8000, 0xffbf5fb8, 0xffff9fcc), at 0x7f0f2a64 
  [4] pixman_compositeGeneral(0x3, 0xe80f0, 0xe75e0, 0xe8000, 0x13, 0x7), at 0x7f0f3960 
  [5] _cairo_pixman_composite(0x3, 0xe80f0, 0xe75e0, 0xe8000, 0x13, 0x7), at 0x7f0d2a74 
  [6] _cairo_image_surface_composite(0x2, 0xffbfc8e0, 0xffbfc490, 0xe8078, 0x13, 0x7), at 0x7f09d7dc 
  [7] _fallback_composite(0x2, 0xffbfc8e0, 0xffbfc490, 0xe18c0, 0x13, 0x7), at 0x7f0a75ec 
  [8] _cairo_surface_composite(0x2, 0xffbfc8e0, 0xffbfc490, 0xe18c0, 0x13, 0x7), at 0x7f0a77d0 
  [9] _cairo_ft_scaled_font_show_glyphs(0xf42b0, 0x2, 0xffbfc8e0, 0xe18c0, 0x13, 0x7), at 0x7f0b91d8 
  [10] _cairo_scaled_font_show_glyphs(0xf42b0, 0x2, 0xffbfc8e0, 0xe18c0, 0x13, 0x7), at 0x7f0948a0 
  [11] _cairo_gstate_show_glyphs_draw_func(0xffbfc8b8, 0x2, 0xffbfc8e0, 0xe18c0, 0x0, 0x0), at 0x7f09ab60 
  [12] _cairo_gstate_clip_and_composite(0xe5d70, 0x2, 0xffbfc8e0, 0x7f09a934, 0xffbfc8b8, 0xe18c0), at 0x7f098688 
  [13] _cairo_gstate_show_glyphs(0xe5ce0, 0xffbfca58, 0x17, 0x0, 0x0, 0x145b80), at 0x7f09af0c 
  [14] cairo_show_glyphs(0xe5418, 0xffbfca58, 0x17, 0xe5828, 0xffbfcc68, 0x17), at 0x7f08ed98 
  [15] pango_cairo_renderer_draw_glyphs(0xe5828, 0xecbf0, 0xe4900, 0x0, 0x0, 0xe5540), at 0x7fa03e58 
  [16] pango_renderer_draw_glyphs(0xe5828, 0xecbf0, 0xe4900, 0x0, 0x0, 0xe5850), at 0x7f365850 
  [17] pango_cairo_show_glyph_string(0xe5418, 0xecbf0, 0xe4900, 0x40320000, 0x0, 0x0), at 0x7fa04984 
  [18] gdk_pango_renderer_draw_glyphs(0xe5588, 0xecbf0, 0xe4900, 0x5000, 0x4800, 0xe51f8), at 0x7faa9f28 
  [19] pango_renderer_draw_glyphs(0xe5588, 0xecbf0, 0xe4900, 0x5000, 0x4800, 0x4800), at 0x7f365850 
  [20] pango_renderer_draw_layout_line(0xe5588, 0xb9ec8, 0x5000, 0x4800, 0x5000, 0x1000), at 0x7f365524 
  [21] pango_renderer_draw_layout(0xe5588, 0xe1d08, 0x5000, 0x1000, 0x2, 0x5000), at 0x7f364864 
  [22] gdk_draw_layout_with_colors(0x15ae70, 0x158c10, 0x14, 0x4, 0xe1d08, 0x0), at 0x7faaca00 
  [23] gdk_draw_layout(0x15ae70, 0x158c10, 0x14, 0x4, 0xe1d08, 0x106220), at 0x7faacf44 
  [24] gtk_default_draw_layout(0x106220, 0x15ae70, 0x1, 0x1, 0xffbfd678, 0x74d50), at 0x7f6b26f8 
  [25] gtk_paint_layout(0x106220, 0x15ae70, 0x1, 0x1, 0xffbfd678, 0x74d50), at 0x7f6b6fe8 
  [26] gtk_cell_renderer_text_render(0x892e8, 0x15ae70, 0x74d50, 0xffbfd620, 0xffbfd630, 0xffbfd678), at 0x7f4b2b54 
  [27] gtk_cell_renderer_render(0x892e8, 0x15ae70, 0x74d50, 0xffbfd620, 0xffbfd630, 0xffbfd678), at 0x7f4a92a8 
  [28] gtk_tree_view_column_cell_process_action(0x8c208, 0x15ae70, 0xffbfd8f0, 0xffbfd8e0, 0x1, 0x0), at 0x7f7a8280 
  [29] _gtk_tree_view_column_cell_render(0x8c208, 0x15ae70, 0xffbfd8f0, 0xffbfd8e0, 0xffbfe24c, 0x1), at 0x7f7a94b0 
  [30] gtk_tree_view_bin_expose(0x74d50, 0xffbfe240, 0x0, 0x0, 0x0, 0x15ae70), at 0x7f780f8c 
  [31] gtk_tree_view_expose(0x74d50, 0xffbfe240, 0x5d708, 0x0, 0x74d54, 0x72760), at 0x7f781c58 
  [32] _gtk_marshal_BOOLEAN__BOXED(0x72760, 0xffbfdc78, 0x2, 0xffbfde38, 0xffbfdca8, 0x7f781b34), at 0x7f6024d4 
  [33] g_type_class_meta_marshal(0x72760, 0xffbfdc78, 0x2, 0xffbfde38, 0xffbfdca8, 0xc8), at 0x7f28f594 
  [34] g_closure_invoke(0x72760, 0xffbfdc78, 0x2, 0xffbfde38, 0xffbfdca8, 0x2), at 0x7f28f10c 
  [35] signal_emit_unlocked_R(0x72118, 0x0, 0x74d50, 0xffbfddc0, 0xffbfde38, 0x0), at 0x7f2b24f0 
  [36] g_signal_emit_valist(0x74d50, 0x21, 0x0, 0xffbfe098, 0x0, 0x7ede0), at 0x7f2b0c3c 
  [37] g_signal_emit(0x74d50, 0x21, 0x0, 0xffbfe240, 0xffbfe0bc, 0xffbfe0bc), at 0x7f2b10f8 
  [38] gtk_widget_event_internal(0x74d50, 0xffbfe240, 0x0, 0xc8, 0x170, 0x7ede0), at 0x7f7c70c8 
  [39] gtk_widget_send_expose(0x74d50, 0xffbfe240, 0xd82c0, 0xffbfe24c, 0x170, 0xffbfe240), at 0x7f7c6b24 
  [40] gtk_main_do_event(0xffbfe240, 0x0, 0xffbfe288, 0x7fa837a4, 0xffbfe240, 0x7f5fd6ec), at 0x7f5fdb68 
  [41] gdk_window_process_updates_internal(0x15ae70, 0x3fd9c, 0x0, 0x0, 0x0, 0x61050), at 0x7facaacc 
  [42] gdk_window_process_all_updates(0x78f30, 0x0, 0x0, 0x0, 0x5dd20, 0x78f30), at 0x7facaccc 
  [43] gtk_container_idle_sizer(0x0, 0x0, 0x0, 0x0, 0x0, 0x1), at 0x7f501d8c 
  [44] g_idle_dispatch(0x109d28, 0x7f501cb4, 0x0, 0xffbfe4b4, 0xffbfe4b4, 0x157cd8), at 0x7f1ca57c 
  [45] g_main_dispatch(0x5cfc0, 0x109d28, 0x0, 0x0, 0x5cfb0, 0x1), at 0x7f1c447c 
  [46] g_main_context_dispatch(0x5cfc0, 0x6e, 0x157c68, 0x1, 0x1, 0x1), at 0x7f1c65c4 
  [47] g_main_context_iterate(0x5cfc0, 0x1, 0x1, 0x43ac8, 0x0, 0xb8a40), at 0x7f1c6e24 
  [48] g_main_loop_run(0xb8a40, 0xb8a40, 0x2f418, 0x1, 0x81010100, 0xfea10), at 0x7f1c7b5c 
  [49] gtk_main(0x2ee08, 0x258, 0x190, 0x2bc, 0x2f598, 0x2f5f0), at 0x7f5fcc14 
  [50] main(0x1, 0xffbfe81c, 0xffbfe824, 0x41f18, 0x0, 0x0), at 0x2a088 

More information about the cairo mailing list