GNOME Bugzilla – Bug 139080
Right-click Close during Heavy System Load: Crashes WNCK (2.6.0)
Last modified: 2007-07-31 03:02:15 UTC
I found today that while right-clicking on the items in the window list and using the context-menu functions, mainly the "Close" function, that WNCK had a propensity to crash. Backtrace from one of the crashes: Backtrace was generated from '/usr/libexec/wnck-applet' Using host libthread_db library "/lib/libthread_db.so.1". [Thread debugging using libthread_db enabled] [New Thread 16384 (LWP 8103)] 0x40b3f018 in waitpid () from /lib/libpthread.so.0
+ Trace 45700
Thread 1 (Thread 16384 (LWP 8103))
What version of libwnck, gnome-panel, gtk+ etc did you use to get this? Also telling us the exact steps to reproduce this would be helpful.
Moving to the right component. Sorry for the spam :p
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for. Thanks!
We had a customer hit this bug here: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=192963 (although most of the comments are private unfortunately)
Created attachment 92729 [details] [review] remove weak pointers before destroying objects So it turned out the problem was that the button and action_menu of a task were living slightly longer than the task itself (because the task was getting finalized as part of the destruction of the button), so the button/action_menu pointers were getting nullified after the task block was freed.
Nothing beats someone else tracking down the cause and fixing it. :-) Thanks, Ray, I'll assume you and others have tested the patch (as you said, most the comments are private in that other bug report), so go ahead and commit.
2007-07-30 Ray Strode <rstrode@redhat.com> * libwnck/tasklist.c (wnck_task_finalize): remove weak pointers on fields in task structure before freeing task block (bug 139080)