zentara has asked for the wisdom of the Perl Monks concerning the following question:
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.readv(3, [{"_GTK_LOAD_ICONTHEMES", 20}, {"", 0}], 2) = 20
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?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Gtk2 apps are seg-faulting my Tk apps
by Aristotle (Chancellor) on Nov 15, 2005 at 18:50 UTC | |
Re: Gtk2 apps are seg-faulting my Tk apps
by Courage (Parson) on Dec 18, 2005 at 21:52 UTC | |
by zentara (Cardinal) on Dec 19, 2005 at 12:03 UTC | |
by Courage (Parson) on Dec 19, 2005 at 22:03 UTC | |
by zentara (Cardinal) on Dec 19, 2005 at 22:07 UTC | |
by Courage (Parson) on Dec 20, 2005 at 17:33 UTC |