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

readv(3, [{"_GTK_LOAD_ICONTHEMES", 20}, {"", 0}], 2) = 20
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

In reply to Gtk2 apps are seg-faulting my Tk apps by zentara

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.