gtk, Xlib or libc problem?



Hi,

I have a number of applications, using gtk, originally written and built on
a Linux platform, that I have now built on a Solaris7 platform. Some of them
still work, and some don't. The behaviour of those that don't work on
Solaris is the same.

All I get is a segmentation fault as soon as I try calling gtk_init. (Notice
that those that DO work also use gtk_init and other gtk-functions..)

If I look at the call stack with gdb, I get the following (the gtk_init call
is at the bottom of th log):

Program received signal SIGSEGV, Segmentation fault.
0x0 in ?? ()
(gdb) up
#1  0xfe5ce050 in scrwidth () from /usr/lib/libc.so.1
(gdb) up
#2  0xfe5ff004 in _doprnt () from /usr/lib/libc.so.1
(gdb) up
#3  0xfe600a08 in sprintf () from /usr/lib/libc.so.1
(gdb) up
#4  0xfee62868 in _XlcResolveLocaleName () from /usr/openwin/lib/libX11.so.4
(gdb)
#5  0xfee62488 in _XlcLocaleDirName () from /usr/openwin/lib/libX11.so.4
(gdb) up
#6  0xfee5e524 in resolve_ct_list () from /usr/openwin/lib/libX11.so.4
(gdb) up
#7  0xfee5e904 in _XlcInitCTInfo () from /usr/openwin/lib/libX11.so.4
(gdb) up
#8  0xfee64094 in initialize () from /usr/openwin/lib/libX11.so.4
(gdb) up
#9  0xfee63cd8 in _XlcCreateLC () from /usr/openwin/lib/libX11.so.4
(gdb) up
#10 0xfee29d68 in _XlcDefaultLoader () from /usr/openwin/lib/libX11.so.4
(gdb) up
#11 0xfee582d8 in _XOpenLC () from /usr/openwin/lib/libX11.so.4
(gdb) up
#12 0xfee3c1c4 in XOpenIM () from /usr/openwin/lib/libX11.so.4
(gdb) up
#13 0xfefbe7ec in gdk_im_real_open ()
   from /opt/Projects/HLX/pre-ost-a/gtk/lib/libgdk-1.2.so.0
(gdb) up
#14 0xfefbea0c in gdk_im_open () from
/opt/Projects/HLX/pre-ost-a/gtk/lib/libgdk-1.2.so.0
(gdb) up
#15 0xfef9d8c8 in gdk_init_check ()
   from /opt/Projects/HLX/pre-ost-a/gtk/lib/libgdk-1.2.so.0
(gdb) up
#16 0xff127dc0 in gtk_init_check ()
   from /opt/Projects/HLX/pre-ost-a/gtk/lib/libgtk-1.2.so.0
(gdb) up
#17 0xff1286bc in gtk_init () from
/opt/Projects/HLX/pre-ost-a/gtk/lib/libgtk-1.2.so.0
(gdb) up
#18 0x19b4c in main (argc=1, argv=0xffbef114) at src/main.cc:330
330         gtk_init(&argc, &argv);


Does this ring a bell for anyone? Would this be gtk-related at all?

Regards,
/Johan Reuterskiold, Sweden

e-mail: johan.reuterskiold@nokia.com





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