Re: [gtk-list] gtk-engines themes dump core



On Mon, 17 May 1999 10:49:26 +0200, gtk-list@redhat.com (robert_gasch@peoplesoft.com) wrote:
> I've received RH6.0, installed it and for the first time in months
> had a consistent set of libraries and versions where everything
> works ... of course when seeing the possibilities, I got bold
> and started playing with themes only to find a problem: when I run
> it with gtk themes that are based on gtk-engines (pixmap, redmond95,
> stone, etc) it segfaults at start; with gtk themes that are not gtk-engines
> (such as steelgradient), it works fine.
> 
> Doing a backtrace, gdb points me at an innocent place in my own code
> which works as soon as I switch back to another (working) theme.
> 
> I'm using RH6.0, gtk+ 1.2.3, Gtk-- 1.0.0 ...
> 
> Does anybody have any suggestions?

Sounds like a wild pointer. There are two possibilities:

- There's a bug in the gtk + gtk-engines combination.
- There's a bug in your code.

The easiest way to find out is to take a GTK program that is known to work
(take for testgtk from the gtk source) and look if the themes work with
it. If it crashes, there is a bug in the gtk + gtk-engines combination. If
it doesn't crash it is still possible that there is a bug in gtk, but
chances are big that you are doing something wrong with your pointers.

Messing with pointers can lead to very unpredictible results, especially
if you overwrite memory you don't own (memory allocator structures are a
famous example). Try using a memory debugger, like dmalloc or Electric
Fence (efence).


Erik

-- 
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031,  2600 GA Delft, The Netherlands
Phone: +31-15-2785859  Fax: +31-15-2781843  Email J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/




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