more on gtk_init problem



Well, I tried using gdb to step through the program. I set breakpoints around
gtk_init, and when it crashed ran bt to see where, exactly, it happened.  Here
is the result:

#0  0x401e6eab in ?? () from /lib/libc.so.6
#1  0x80491fb in close_files () at files.c:61
#2  0x8049008 in close () at main.c:79
#3  0x401286fd in ?? () from /usr/X11R6/lib/libX11.so.6
#4  0x4012884b in ?? () from /usr/X11R6/lib/libX11.so.6
#5  0x4011ff7d in ?? () from /usr/X11R6/lib/libX11.so.6
#6  0x401200d4 in ?? () from /usr/X11R6/lib/libX11.so.6
#7  0x40165d54 in ?? () from /usr/X11R6/lib/libX11.so.6
#8  0x40166086 in ?? () from /usr/X11R6/lib/libX11.so.6
#9  0x40164da7 in ?? () from /usr/X11R6/lib/libX11.so.6
#10 0x40164e4d in ?? () from /usr/X11R6/lib/libX11.so.6
#11 0x40164508 in ?? () from /usr/X11R6/lib/libX11.so.6
#12 0x4013b20a in ?? () from /usr/X11R6/lib/libX11.so.6
#13 0x400c43ca in gdk_im_open (db=0x0, res_name=0x0, res_class=0x0)
    at gdk.c:3522
#14 0x400c0fe4 in gdk_init (argc=0xbffffd28, argv=0xbffffd2c) at gdk.c:581
#15 0x40053f3f in gtk_init (argc=0xbffffd28, argv=0xbffffd2c) at gtkmain.c:246
#16 0x8049811 in init_ws (argc=0xbffffd28, argv=0xbffffd2c) at ws.c:15
#17 0x8049230 in init_io (argc=0xbffffd28, argv=0xbffffd2c) at init.c:9
#18 0x8048f3d in init_once (argc=0xbffffd28, argv=0xbffffd2c) at main.c:31
#19 0x8048efd in main (argc=1, argv=0xbffffd3c) at main.c:13
(gdb) 

I think that the problem appears to be that something (somewhere) in libX11
is calling a function named close, which conflists with my function named
close.  I tried renaming the function to avoid this conflict, however this did
not work.  So this may be an error in libX11 (which is libX11.so.6.1 on my
machine).

Thanks for your help.
katre



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