gtk-demo_debug.txt

davshao, 03/26/2010 06:15 PM

Download (5.77 KB)

 
1
GNU gdb (GDB) 7.0
2
Copyright (C) 2009 Free Software Foundation, Inc.
3
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
4
This is free software: you are free to change and redistribute it.
5
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
6
and "show warranty" for details.
7
This GDB was configured as "x86_64-dragonfly".
8
For bug reporting instructions, please see:
9
<http://bugs.dragonflybsd.org/>...
10
Reading symbols from /usr/pkg/bin/gtk-demo...done.
11
(gdb) start
12
Temporary breakpoint 1 at 0x422873: file main.c, line 941.
13
Starting program: /usr/pkg/bin/gtk-demo 
14

    
15
Temporary breakpoint 1, main (argc=1, argv=0x7ffffffff890) at main.c:941
16
941	  if (g_file_test ("../../gdk-pixbuf/libpixbufloader-pnm.la",
17
(gdb) continue
18
Continuing.
19

    
20
Program received signal SIGSEGV, Segmentation fault.
21
0x00000008007c6577 in gdk_rgb_convert_565 (image_info=0x8039c1b90, image=0x8005f82a0, x0=0, y0=0, width=107, height=64, 
22
    buf=0x80428d000 '\377' <repeats 200 times>..., rowstride=768, x_align=0, y_align=0, cmap=0x0) at gdkrgb.c:1522
23
1522		      ((guint32 *)obptr)[0] =
24
(gdb) bt
25
#0  0x00000008007c6577 in gdk_rgb_convert_565 (image_info=0x8039c1b90, image=0x8005f82a0, x0=0, y0=0, width=107, height=64, 
26
    buf=0x80428d000 '\377' <repeats 200 times>..., rowstride=768, x_align=0, y_align=0, cmap=0x0) at gdkrgb.c:1522
27
#1  0x00000008007c8f3a in gdk_rgb_convert_32_generic (image_info=0x8039c1b90, image=0x8005f82a0, x0=0, y0=0, width=107, 
28
    height=64, buf=0x803c38000 "\377\377\377", rowstride=428, x_align=0, y_align=0, cmap=0x0) at gdkrgb.c:2895
29
#2  0x00000008007c9cc9 in gdk_draw_rgb_image_core (image_info=0x8039c1b90, drawable=0x8005d8780, gc=0x8005f8830, x=0, y=0, 
30
    width=107, height=140, buf=0x803c38000 "\377\377\377", pixstride=4, rowstride=428, 
31
    conv=0x8007c8ea4 <gdk_rgb_convert_32_generic>, cmap=0x0, xdith=0, ydith=0) at gdkrgb.c:3330
32
#3  0x00000008007ca0f6 in IA__gdk_draw_rgb_32_image (drawable=0x8005d8780, gc=0x8005f8830, x=0, y=0, width=107, height=140, 
33
    dith=GDK_RGB_DITHER_NORMAL, buf=0x803c38000 "\377\377\377", rowstride=428) at gdkrgb.c:3442
34
#4  0x00000008007bdf02 in IA__gdk_pixbuf_render_pixmap_and_mask_for_colormap (pixbuf=0x8006209e0, colormap=0x8005f1820, 
35
    pixmap_return=0x8005d8818, mask_return=0x8005d8820, alpha_threshold=128) at gdkpixbuf-render.c:315
36
#5  0x0000000800c4716f in get_pixmap_and_mask (window=0x80056d360, parent_info=0x0, is_default_list=1, icon_list=0x8005d0b60, 
37
    pmap_return=0x8005d8818, mask_return=0x8005d8820) at gtkwindow.c:3142
38
#6  0x0000000800c475b2 in gtk_window_realize_icon (window=0x80056d250) at gtkwindow.c:3278
39
#7  0x0000000800c49b0c in gtk_window_realize (widget=0x80056d250) at gtkwindow.c:4854
40
#8  0x0000000802fe86f9 in IA__g_cclosure_marshal_VOID__VOID (closure=0x8039909a0, return_value=0x0, n_param_values=1, 
41
    param_values=0x8005d64a0, invocation_hint=0x7fffffffe970, marshal_data=0x800c493d9) at gmarshal.c:77
42
#9  0x0000000802fce331 in g_type_class_meta_marshal (closure=0x8039909a0, return_value=0x0, n_param_values=1, 
43
    param_values=0x8005d64a0, invocation_hint=0x7fffffffe970, marshal_data=0xe0) at gclosure.c:878
44
#10 0x0000000802fce021 in IA__g_closure_invoke (closure=0x8039909a0, return_value=0x0, n_param_values=1, 
45
    param_values=0x8005d64a0, invocation_hint=0x7fffffffe970) at gclosure.c:767
46
#11 0x0000000802fe75dc in signal_emit_unlocked_R (node=0x803971d80, detail=0, instance=0x80056d250, emission_return=0x0, 
47
    instance_and_params=0x8005d64a0) at gsignal.c:3177
48
#12 0x0000000802fe67a4 in IA__g_signal_emit_valist (instance=0x80056d250, signal_id=16, detail=0, var_args=0x7fffffffed00)
49
    at gsignal.c:2980
50
#13 0x0000000802fe6d8e in IA__g_signal_emit (instance=0x80056d250, signal_id=16, detail=0) at gsignal.c:3037
51
#14 0x0000000800c324ac in IA__gtk_widget_realize (widget=0x80056d250) at gtkwidget.c:3328
52
#15 0x0000000800c48e6f in gtk_window_show (widget=0x80056d250) at gtkwindow.c:4488
53
#16 0x0000000802fe86f9 in IA__g_cclosure_marshal_VOID__VOID (closure=0x803990920, return_value=0x0, n_param_values=1, 
54
    param_values=0x8005d6880, invocation_hint=0x7ffffffff2c0, marshal_data=0x800c48d48) at gmarshal.c:77
55
#17 0x0000000802fce331 in g_type_class_meta_marshal (closure=0x803990920, return_value=0x0, n_param_values=1, 
56
    param_values=0x8005d6880, invocation_hint=0x7ffffffff2c0, marshal_data=0xb0) at gclosure.c:878
57
#18 0x0000000802fce021 in IA__g_closure_invoke (closure=0x803990920, return_value=0x0, n_param_values=1, 
58
    param_values=0x8005d6880, invocation_hint=0x7ffffffff2c0) at gclosure.c:767
59
#19 0x0000000802fe75dc in signal_emit_unlocked_R (node=0x803971c40, detail=0, instance=0x80056d250, emission_return=0x0, 
60
    instance_and_params=0x8005d6880) at gsignal.c:3177
61
#20 0x0000000802fe67a4 in IA__g_signal_emit_valist (instance=0x80056d250, signal_id=12, detail=0, var_args=0x7ffffffff650)
62
    at gsignal.c:2980
63
#21 0x0000000802fe6d8e in IA__g_signal_emit (instance=0x80056d250, signal_id=12, detail=0) at gsignal.c:3037
64
#22 0x0000000800c31a6c in IA__gtk_widget_show (widget=0x80056d250) at gtkwidget.c:3012
65
#23 0x0000000800a2bc2a in gtk_container_show_all (widget=0x80056d250) at gtkcontainer.c:2595
66
#24 0x0000000800c31f11 in IA__gtk_widget_show_all (widget=0x80056d250) at gtkwidget.c:3160
67
#25 0x0000000000422b46 in main (argc=1, argv=0x7ffffffff890) at main.c:1005
68
(gdb) x image->mem
69
0x8400000:	Cannot access memory at address 0x8400000
70
(gdb) ptype image
71
type = struct _GdkImage {
72
    GObject parent_instance;
73
    GdkImageType type;
74
    GdkVisual *visual;
75
    GdkByteOrder byte_order;
76
    gint width;
77
    gint height;
78
    guint16 depth;
79
    guint16 bpp;
80
    guint16 bpl;
81
    guint16 bits_per_pixel;
82
    gpointer mem;
83
    GdkColormap *colormap;
84
    gpointer windowing_data;
85
} *
86
(gdb) print image
87
$1 = (GdkImage *) 0x8005f82a0
88
(gdb) quit
89
A debugging session is active.
90

    
91
	Inferior 1 [process 47176] will be killed.
92

    
93
Quit anyway? (y or n)