GNOME Bugzilla – Bug 101857
GnomeClient signal die emitted spuriously.
Last modified: 2014-12-15 21:10:55 UTC
So anyway, I was having trouble running my Bakery application under Valgrind. When under Valgrind, a window would pop up and then promptly disappear, terminating the run. 10 hours later I had a test case and discovered a lot more about the problem. As I reduced the test case, it didn't happen as often, it would sometimes happen and sometimes not, on successive runs. Do you know how hard it is to reduce a test case when the problem disappears for no good reason, and you're not aware of it yet? This behaviour and the fact it is only a problem under Valgrind loudly suggests a race condition or timeout. And yes, with appropriately placed sleeps, you can make it occur outside Valgrind. It seems to me that the GnomeClient signal die gets emitted if a sufficiently large time occurs between doing some things. From what I can determine, this shouldn't happen, so I'm filing here. I have reduced the test case to libgnomeui and will attach it. I'm running the Debian package 2.0.6-1 of libgnomeui2.
Created attachment 13188 [details] Test case demonstrating the problem.
Confirmed on Debian with libgnomeui 2.0.6. Seems to work on RH8 with libgnomeui 2.0.3.
Please tell us what the problem is and exactly how to reproduce it.
MurrayC, I explained the problem in my first paragraph, and I don't know how much more exact you can get than a test case.
Havoc, could you take a look at this?
gnome-session times out apps and kills them after a while. gnome-session rules! woohoo! See http://mail.gnome.org/archives/desktop-devel-list/2003-April/msg00090.html Now is your chance to save us. ;-) Anyway, not a libgnomeui bug, you could reassign to gnome-session, but the right behavior here is probably to add some nice dialog and so forth, and gnome-session is not easy to add that sort of thing to.
IIRC, the Red Hat RPMS have a patch that increases the default timeout value to 5 minutes instead of 30 seconds. Might be a good idea to change that in the stock version too.
Moving to gnome-session then.
This test case works well with gnome-session 2.22.x because the purge_delay is now 2 minutes. Need to check that on new code base.