Gtk2 apps are seg-faulting my Tk appsby zentara (Archbishop)
|on Nov 15, 2005 at 18:37 UTC||Need Help??|
zentara has asked for the
wisdom of the Perl Monks concerning the following question:
This is is really weird problem. I have noticed that some Gtk2 apps are causing seg-faults in my Perl/Tk apps and killing them. So I'm wondering if anyone could try it on their linux system, and tell me if it happens to them.
First, to reproduce this, you need the latest gtk2 libs, and gtk+-2.8.6. Once you have them installed, start a Perl/Tk app, such as Tk ImageMap-color-zones, but others should die too. Then start the demo program for gtk+-2.8.6. When you double-click an item from the left list, to run it's demo(say Button Boxes), it will cause seg-faults in the Perl/Tk apps. If you restart the Perl/Tk app, the double-clicking will not cause the seg-fault. It only occurs the first time after the demo is started.
I ran strace on the perl script, and watched what happened just before the seg-fault, and the line
is what occurs before the seg-fault.
I googled for _GTK_LOAD_ICONTHEMES and there seems to be some talk about it, but nothing as serious as killing Tk.
So can anyone shed some light?
I use the gtk-demo to demonstrate this, but I first saw it in my day-2-day use, when checking my mail with Sylpheed-Claws would kill my Perl/Tk tvguide program.
It would seem to me that the Gtk2 app should die if a fault occurs, how can it be jumping into Tk's space and crashing it?
I'm not really a human, but I play one on earth. flash japh