gtk 2.2.4/2.3.0 segmentation fault



hi,

on my linux box,
gtk+ 2.2.4 or 2.3.0 and all required dependency packages compile/install
ok but each gtk demos produce a segmentation fault without showing
a gtk window.

here is what i did:

> uname -a
Linux agouti 2.4.21 #6 Wed Oct 1 16:24:09 CEST 2003 i686 unknown
> gcc -v
Reading specs from /usr/lib/gcc-lib/i486-suse-linux/2.95.3/specs
gcc version 2.95.3 20010315 (SuSE)


- installed all of the following packages in this order in /vol/gtk2:

 libiconv-1.9.1
 glib-2.3.0
 atk-1.2.4
 freetype-2.1.5
 fontconfig-2.2.92
 render-0.8
 xrender-0.8.3
 xft-2.1.2
 pango-1.2.5
 gtk+-2.3.0


- trying demo:

> cd /tmp/gtk_src/gtk+-2.3.0/tests
> rm simple
> make simple
/bin/sh ../libtool --mode=link gcc -I/vol/gtk2/include -Wall -L/vol/gtk2/lib -Wl,-rpath=/vol/gtk2/lib -o simple simple.o ../gdk-pixbuf/libgdk_pixbuf-2.0.la ../gdk/libgdk-x11-2.0.la ../gtk/libgtk-x11-2.0.la gcc -I/vol/gtk2/include -Wall -Wl,-rpath=/vol/gtk2/lib -o .libs/simple simple.o -L/vol/gtk2/lib ../gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so ../gdk/.libs/libgdk-x11-2.0.so -L/usr/X11R6/lib ../gtk/.libs/libgtk-x11-2.0.so /tmp/gtk_src/gtk+-2.3.0/gdk/.libs/libgdk-x11-2.0.so /tmp/gtk_src/gtk+-2.3.0/gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so -lXinerama -lXext /vol/gtk2/lib/libXft.so /vol/gtk2/lib/libXrender.so /vol/gtk2/lib/libfontconfig.so /vol/gtk2/lib/libfreetype.so -lz -lexpat -lX11 /vol/gtk2/lib/libpangoxft-1.0.so /vol/gtk2/lib/libpangox-1.0.so /vol/gtk2/lib/libpango-1.0.so /vol/gtk2/lib/libatk-1.0.so /vol/gtk2/lib/libgobject-2.0.so /vol/gtk2/lib/libgmodule-2.0.so -ldl /vol/gtk2/lib/libglib-2.0.so /vol/gtk2/lib/libiconv.so -lm -Wl,--rpath -Wl,/vol/gtk2/lib
creating simple

> ldd simple
libgdk_pixbuf-2.0.so.0 => /vol/gtk2/lib/libgdk_pixbuf-2.0.so.0 (0x40017000)
 libgdk-x11-2.0.so.0 => /vol/gtk2/lib/libgdk-x11-2.0.so.0 (0x4002f000)
 libgtk-x11-2.0.so.0 => /vol/gtk2/lib/libgtk-x11-2.0.so.0 (0x400bf000)
 libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40464000)
 libXft.so.2 => /vol/gtk2/lib/libXft.so.2 (0x40472000)
 libXrender.so.1 => /vol/gtk2/lib/libXrender.so.1 (0x40487000)
 libfontconfig.so.1 => /vol/gtk2/lib/libfontconfig.so.1 (0x40491000)
 libfreetype.so.6 => /vol/gtk2/lib/libfreetype.so.6 (0x404c3000)
 libz.so.1 => /lib/libz.so.1 (0x40540000)
 libexpat.so.1 => /usr/lib/libexpat.so.1 (0x40550000)
 libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x4056e000)
 libpangoxft-1.0.so.0 => /vol/gtk2/lib/libpangoxft-1.0.so.0 (0x40651000)
 libpangox-1.0.so.0 => /vol/gtk2/lib/libpangox-1.0.so.0 (0x4067c000)
 libpango-1.0.so.0 => /vol/gtk2/lib/libpango-1.0.so.0 (0x4068b000)
 libatk-1.0.so.0 => /vol/gtk2/lib/libatk-1.0.so.0 (0x406c6000)
 libgobject-2.0.so.0 => /vol/gtk2/lib/libgobject-2.0.so.0 (0x406e2000)
 libgmodule-2.0.so.0 => /vol/gtk2/lib/libgmodule-2.0.so.0 (0x40727000)
 libdl.so.2 => /lib/libdl.so.2 (0x4072b000)
 libglib-2.0.so.0 => /vol/gtk2/lib/libglib-2.0.so.0 (0x4072f000)
 libiconv.so.2 => /vol/gtk2/lib/libiconv.so.2 (0x407bc000)
 libm.so.6 => /lib/libm.so.6 (0x40895000)
 libc.so.6 => /lib/libc.so.6 (0x408b4000)
 /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

> .libs/simple
Segmentation fault

> gdb .libs/simple
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-suse-linux"...
(gdb) run
Starting program: /tmp/gtk_src/gtk+-2.3.0/tests/.libs/simple
list

Program received signal SIGSEGV, Segmentation fault.
0xe5 in ?? ()
(gdb) where
[...]
#46 0x40704e21 in g_signal_emit_by_name () from /vol/gtk2/lib/libgobject-2.0.so.0
#47 0x4027be79 in do_size_request () from /vol/gtk2/lib/libgtk-x11-2.0.so.0
#48 0x4027c33c in _gtk_size_group_compute_requisition () from /vol/gtk2/lib/libgtk-x11-2.0.so.0 #49 0x403650da in gtk_widget_size_request () from /vol/gtk2/lib/libgtk-x11-2.0.so.0 #50 0x4037cd16 in gtk_window_compute_configure_request () from /vol/gtk2/lib/libgtk-x11-2.0.so.0
#51 0x4037a590 in gtk_window_show () from /vol/gtk2/lib/libgtk-x11-2.0.so.0
#52 0x40705f87 in g_cclosure_marshal_VOID__VOID () from /vol/gtk2/lib/libgobject-2.0.so.0 #53 0x406ec5c6 in g_type_class_meta_marshal () from /vol/gtk2/lib/libgobject-2.0.so.0
#54 0x406ec297 in g_closure_invoke () from /vol/gtk2/lib/libgobject-2.0.so.0
#55 0x407052ce in signal_emit_unlocked_R () from /vol/gtk2/lib/libgobject-2.0.so.0 #56 0x407048a9 in g_signal_emit_valist () from /vol/gtk2/lib/libgobject-2.0.so.0
#57 0x40704c4e in g_signal_emit () from /vol/gtk2/lib/libgobject-2.0.so.0
#58 0x40363647 in gtk_widget_show () from /vol/gtk2/lib/libgtk-x11-2.0.so.0
#59 0x8048975 in main ()
#60 0x408d0c6f in __libc_start_main () from /lib/libc.so.6
(gdb)

Any help would be appreciated!

Thanks in advance

Chris


--

--------------------------------------------------------------------
Dr. Chris Schleiermacher                     Bioinformatics Research





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