Strange problem running a Gnome App



I'm developing a small application using Gnome-- and Gtk--. I've written
and compiled it successfully on my Mandrake 8.0 system, which has the
latest versions of Gtk, Gnome, and their respective C++ wrapper
libraries. For some strange reason, it crashes when I run it on my
system, but if I copy and run the exact program on my Redhat 7.1 box, it
works just fine. Here is a gdb backtrace on my problematic system:

----------------------------------------------------------------------------
[loban enigma loban]$ gdb gchch
GNU gdb 5.0mdk-11mdk Linux-Mandrake 8.0
Copyright 2001 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-mandrake-linux"...
(gdb) run --disable-crash-dialog
Starting program: /home/loban/usr/bin/gchch --disable-crash-dialog
[New Thread 1024 (LWP 18213)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 18213)]
0x405b1648 in gdk_gc_set_tile () from /usr/lib/libgdk-1.2.so.0
(gdb) bt
#0  0x405b1648 in gdk_gc_set_tile () from /usr/lib/libgdk-1.2.so.0
#1  0x405b15f0 in gdk_gc_set_tile () from /usr/lib/libgdk-1.2.so.0
#2  0x0818c5f0 in ?? ()
#3  0x408c2c40 in __morecore () from /lib/libc.so.6
#4  0x0001c479 in ?? ()
Cannot access memory at address 0xff00ffff
(gdb) 
---------------------------------------------------------------------------

I'm not sure what the cause of the problem is. I'm pretty sure the
problem is _not_ in my code, cause it works perfectly in the second box.
Rather, it might be a problem with one of the Gtk+, Gnome, Gtk--, and
Gnome-- libraries.

OR I have another suspicion. About 6 months ago when I was developing
this app on a customized Mandrake 7.2 box, I noticed a weird problem. My
application would run fine if my Gtk Theme was the plain default one.
But if I chose other themes (can't remember what engine), my program
would crash with a similar gdb backtrace. Now, Redhat 7.1 has the same
plain default Gtk theme, but Mandrake 8.0 has changed it's default Gtk
theme to _not_ be the original plain one, rather something else. I can't
find the original plain theme to test my theory though.

Any anyone please shed some light on this? I can provide more info if
needed. Thank you.




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