Crash when running any gtk apps.



Hi,
  Recently I tried to compile gtk and its related packages by my self, including:

atk-1.20.0
cairo-1.4.10
fontconfig-2.4.2
freetype-2.3.5
glib-2.14.3
glitz-0.5.6
gtk+-2.12.1 (2.12.2 also doesn't work)
libxml2-2.6.30
pango-1.18.3
pixman-0.9.6

  And installed them into a separated prefix. But when I run any gtk based app, such as gtk-demo, it always crashs. gdb prints out following backtrace (for gtk-demo):

(process:9886): Gdk-CRITICAL **: gdk_window_set_title: assertion `title != NULL' failed

(process:9886): Pango-WARNING **: error opening config file '/home/suzhe/.pangorc': No such file or directory


(process:9886): GLib-GObject-CRITICAL **: gtype.c:2242: initialization assertion failed, use IA__g_type_init() prior to this function

(process:9886): GLib-GObject-CRITICAL **: gtype.c:2242: initialization assertion failed, use IA__g_type_init() prior to this function

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

(process:9886): GLib-GObject-CRITICAL **: g_type_register_static: assertion `parent_type > 0' failed

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

Program received signal SIGSEGV, Segmentation fault.
pango_find_map (language=0x823d610, engine_type_id=866, render_type_id=867) at modules.c:353
353      module->path = path;
(gdb) bt
#0  pango_find_map (language=0x823d610, engine_type_id=866, render_type_id=867) at modules.c:353
#1  0xb7ba752d in itemize_state_process_run (state=0xbfffe2d0) at pango-context.c:1215
#2  0xb7ba7ad6 in pango_itemize_with_base_dir (context=0x80f30c0, base_dir=PANGO_DIRECTION_LTR,
    text=0x823d118 "Chinese (中�\226\207,�\231��\200\232��
\235,��\211语)", start_index=0, length=33, attrs=0x0, cached_iter=0x0)
    at pango-context.c:1427
#3  0xb7baf92f in pango_layout_check_lines (layout=0x8110cd8) at pango-layout.c:3619
#4  0xb7bb0b9e in pango_layout_get_extents_internal (layout=0x8110cd8, ink_rect=0x0, logical_rect=0xbfffe650, line_extents=0x0)
    at pango-layout.c:2311
#5  0xb7bd3a91 in pango_fc_font_create_metrics_for_context (fcfont=0x80da8a8, context=0x80f30c0) at pangofc-font.c:455
#6  0xb7c001ea in pango_cairo_fc_font_create_metrics_for_context (cfont=0x0, context=0x0) at pangocairo-fcfont.c:74
#7  0xb7bfdbf2 in _pango_cairo_font_get_metrics (font=0x80da8a8, language=0x80fb500) at pangocairo-font.c:250
#8  0xb7ba17bb in pango_font_get_metrics (font=0x0, language=0x0) at fonts.c:1390
#9  0xb7badfef in pango_layout_line_get_extents (line=0x809be48, ink_rect=0x809be64, logical_rect=0xbfffe7b8) at pango-layout.c:4157
#10 0xb7baef00 in get_line_extents_layout_coords (layout=0x809cdc8, line=0x809be48, layout_width=-1, y_offset=0, baseline=0xbfffe858,
    line_ink_layout=0x0, line_logical_layout=0xbfffe838) at pango-layout.c:2258
#11 0xb7bb0cb5 in pango_layout_get_extents_internal (layout=0x809cdc8, ink_rect=0x0, logical_rect=0xbfffe9c4, line_extents=0x0)
    at pango-layout.c:2369
#12 0xb7dfd6f4 in IA__gtk_text_layout_get_line_display (layout=0x80f5c18, line=0x80f4690, size_only=1) at gtktextlayout.c:2398
#13 0xb7dfeb12 in gtk_text_layout_real_wrap (layout=0x80f5c18, line=0x80f4690, line_data=0x80fc9e8) at gtktextlayout.c:1152
#14 0xb7dfbaac in IA__gtk_text_layout_wrap (layout=0x823d730, line=0x0, line_data=0x0) at gtktextlayout.c:696
#15 0xb7de3c8c in _gtk_text_btree_validate_line (tree=0x80f46f0, line=0x80f4690, view_id=0x80f5c18) at gtktextbtree.c:5402
#16 0xb7dfc488 in IA__gtk_text_layout_validate_yrange (layout=0x80f5c18, anchor=0xbfffeaf4, y0=0, y1=200) at gtktextlayout.c:1067
#17 0xb7e0f825 in gtk_text_view_validate_onscreen (text_view=0x80f2060) at gtktextview.c:3335
#18 0xb7e0efe3 in gtk_text_view_value_changed (adj=0x0, text_view=0x80f2060) at gtktextview.c:7053
#19 0xb7d5608f in _gtk_marshal_VOID__OBJECT_OBJECT (closure=0x80ef760, return_value=0x0, n_param_values=3, param_values=0xbfffedec,
    invocation_hint=0xbfffed0c, marshal_data=0xb7e0f2c3) at gtkmarshalers.c:2288
#20 0xb7af2b09 in IA__g_closure_invoke (closure=0x80ef760, return_value=0x0, n_param_values=3, param_values=0xbfffedec,
    invocation_hint=0xbfffed0c) at gclosure.c:490
#21 0xb7b010ee in signal_emit_unlocked_R (node=0x80efb48, detail=0, instance=0x80f2060, emission_return=0x0,
    instance_and_params=0xbfffedec) at gsignal.c:2478
#22 0xb7b02143 in IA__g_signal_emit_valist (instance=0x80f2060, signal_id=151, detail=0, var_args=<value optimized out>)
    at gsignal.c:2199
---Type <return> to continue, or q <return> to quit---
#23 0xb7b023e5 in IA__g_signal_emit (instance=0x0, signal_id=0, detail=0) at gsignal.c:2243
#24 0xb7e67faf in IA__gtk_widget_set_scroll_adjustments (widget=0x80f2060, hadjustment=0x809bd88, vadjustment=0x809bdc8)
    at gtkwidget.c:4742
#25 0xb7db1a2a in gtk_scrolled_window_add (container=0x809c598, child=0x80f2060) at gtkscrolledwindow.c:1625
#26 0xb7af2b09 in IA__g_closure_invoke (closure=0x80b9d00, return_value=0x0, n_param_values=2, param_values=0xbffff25c,
    invocation_hint=0xbffff17c) at gclosure.c:490
#27 0xb7b00d62 in signal_emit_unlocked_R (node=0x80b9d58, detail=0, instance=0x809c598, emission_return=0x0,
    instance_and_params=0xbffff25c) at gsignal.c:2370
#28 0xb7b02143 in IA__g_signal_emit_valist (instance=0x809c598, signal_id=75, detail=0, var_args=<value optimized out>)
    at gsignal.c:2199
#29 0xb7b023e5 in IA__g_signal_emit (instance=0x0, signal_id=0, detail=0) at gsignal.c:2243
#30 0xb7cc1192 in IA__gtk_container_add (container=0x809c598, widget=0x80f2060) at gtkcontainer.c:1155
#31 0x0806009a in create_text (buffer=0x8067cc4, is_source=0) at main.c:667
#32 0x08060f86 in main (argc=1, argv=0xbffff614) at main.c:884

While pango-view runs without any problem. And glib passed make check.

The environment I uses to compile these packages is 32bit ubuntu with gcc 4.0.3 and glibc 2.3.6.
Any idea?

Regards
James Su


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]