After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 325759 - glade-2 crashes when deleting a widget
glade-2 crashes when deleting a widget
Status: RESOLVED FIXED
Product: atk
Classification: Platform
Component: gail
unspecified
Other other
: High critical
: ---
Assigned To: bill.haneman
bill.haneman
: 325797 325889 326493 329702 329835 336953 337253 339231 345764 349516 354131 355526 356338 356920 359308 360141 360218 360317 360326 360396 367019 367486 368307 370192 370193 371154 376521 376699 376754 376916 377641 378553 378845 379018 380160 380431 380791 381047 381185 381394 382359 382632 383760 384837 385333 386190 393186 393723 394217 394253 394581 395785 396631 397263 401380 401423 401570 403830 404418 404520 404556 405464 405714 407121 407139 408226 412391 412516 412886 416014 420418 420989 422155 423584 423796 424009 426133 426719 432698 438640 443792 461057 462800 462920 464226 472641 476756 477302 478543 482400 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-01-04 12:04 UTC by alexandre.nunes
Modified: 2008-04-22 23:51 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
patch based on Damon's suggestions (3.93 KB, patch)
2006-09-13 11:24 UTC, bill.haneman
committed Details | Review

Description alexandre.nunes 2006-01-04 12:04:49 UTC
Distribution: Debian testing/unstable
Package: glade
Severity: blocker
Version: GNOME2.10.2 2.10.x
Gnome-Distributor: Debian
Synopsis: glade-2 crashes when deleting a widget
Bugzilla-Product: glade
Bugzilla-Component: general
Bugzilla-Version: 2.10.x
BugBuddy-GnomeVersion: 2.0 (2.10.1)
Description:
Description of the crash:

Deleted a widget and them this shows up:

** ERROR **: file gailtreeview.c: line 3601 (garbage_collect_cell_data):
assertion failed: (GAIL_IS_TREE_VIEW (data))
aborting...

Steps to reproduce the crash:
1. 
2. 
3. 

Expected Results:


How often does this happen?


Additional Information:



Debugging Information:

Backtrace was generated from '/usr/bin/glade-2'

(no debugging symbols found)
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1223743808 (LWP 7936)]
(no debugging symbols found)
0xffffe410 in __kernel_vsyscall ()

Thread 1 (Thread -1223743808 (LWP 7936))

  • #0 __kernel_vsyscall
  • #1 __waitpid_nocancel
    from /lib/tls/i686/cmov/libpthread.so.0
  • #2 libgnomeui_module_info_get
    from /usr/lib/libgnomeui-2.so.0
  • #3 <signal handler called>
  • #4 __kernel_vsyscall
  • #5 raise
    from /lib/tls/i686/cmov/libc.so.6
  • #6 abort
    from /lib/tls/i686/cmov/libc.so.6
  • #7 g_logv
    from /usr/lib/libglib-2.0.so.0
  • #8 g_log
    from /usr/lib/libglib-2.0.so.0
  • #9 g_assert_warning
    from /usr/lib/libglib-2.0.so.0
  • #10 gail_tree_view_new
    from /usr/lib/gtk-2.0/modules/libgail.so
  • #11 g_child_watch_add
    from /usr/lib/libglib-2.0.so.0
  • #12 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #13 g_main_context_check
    from /usr/lib/libglib-2.0.so.0
  • #14 g_main_loop_run
    from /usr/lib/libglib-2.0.so.0
  • #15 bonobo_main
    from /usr/lib/libbonobo-2.so.0
  • #16 main
  • #0 __kernel_vsyscall




------- Bug created by bug-buddy at 2006-01-04 12:04 -------

Comment 1 Damon Chaplin 2006-01-04 13:55:05 UTC
This was a gail bug, and has been fixed, so you need to update gail.

*** This bug has been marked as a duplicate of 171965 ***
Comment 2 Christian Kirbach 2006-01-04 21:17:13 UTC
Damon, I believe you are in error here.
The stack traces do not match.
It crashes in g_assert_warning() which is caused by gail_tree_view_new ()
All critical warnings will cause a crash since 1/1/2006

Or am I mistaken?
Comment 3 Christian Kirbach 2006-01-04 21:19:14 UTC
*** Bug 325797 has been marked as a duplicate of this bug. ***
Comment 4 André Klapper 2006-01-06 11:40:09 UTC
*** Bug 325889 has been marked as a duplicate of this bug. ***
Comment 5 Damon Chaplin 2006-01-06 20:13:14 UTC
The crashes are very similar, and it was an old version of GNOME, so I guessed
it was probably the same bug.

But the duplicates seem to be with newer versions of GNOME (and using Evolution rather than Glade), so maybe the gail maintainers should have a look.
Comment 6 Christian Kirbach 2006-01-06 21:37:50 UTC
Thanks for the bug report. Unfortunately, no stack trace is very useful in determining the cause of the crash. Can any of you get us one with debugging symbols? Please see http://live.gnome.org/GettingTraces for more information on how to do so.
Comment 7 Christian Kirbach 2006-02-04 01:16:58 UTC
*** Bug 329835 has been marked as a duplicate of this bug. ***
Comment 8 Christian Kirbach 2006-02-04 01:17:27 UTC
*** Bug 326493 has been marked as a duplicate of this bug. ***
Comment 9 bill.haneman 2006-02-24 14:48:52 UTC
This has to be some weird lifecycle thing; the assertion is coming from trying to instantiate a gail-tree-view for something that fails GTK_IS_TREE_VIEW.  It's always in the add_child_watch code... ?

As critical warnings go, this one seems appropriate.  It should not be crashing things though, and certainly the crash behavior needs to be turned off in the stable branch of gnome-session.

The assert in the stack traces doesn't match the initial bug report, by the way.
Comment 10 bill.haneman 2006-02-24 14:54:39 UTC
I don't understand how/why g_child_watch_add can be calling gail_tree_view_new().

Can anybody provide some insight here?
Comment 11 Karsten Bräckelmann 2006-04-04 21:19:43 UTC
*** Bug 336953 has been marked as a duplicate of this bug. ***
Comment 12 Karsten Bräckelmann 2006-04-04 21:19:46 UTC
*** Bug 337253 has been marked as a duplicate of this bug. ***
Comment 13 Calum Benson 2006-04-26 17:05:46 UTC
Apologies for spam... ensuring Sun a11y folks are cc'ed on all current accessibility bugs.
Comment 14 Fabio Bonelli 2006-05-16 11:30:39 UTC
*** Bug 329702 has been marked as a duplicate of this bug. ***
Comment 15 Damon Chaplin 2006-05-16 12:42:56 UTC
The g_child_watch_add() is almost certainly really a g_idle_dispatch().

Since the library doesn't have symbols I guess gdb outputs the first public
function it finds before the given address.

If you look in glib/gmain.c g_idle_dispatch() is just after g_child_watch_add().

(You can also look at other bugs if you don't believe me, e.g. bug 337420).

Similarly the gail_tree_view_new() is probably not the real function.

Looking at the warning at the top of this bug I'd guess your garbage_collect_cell_data() idle function is the problem.


I think I can see one possible problem. You sometimes call garbage_collect_cell_data() directly, and it sets      
  tree_view->garbage_collection_pending = FALSE;

But what if there really was a pending idle handler?
If the treeview is destroyed now, any pending handler won't be removed,
so you may get a crash.
Comment 16 Damon Chaplin 2006-05-17 10:04:02 UTC
The idle handler also needs to do GDK_THREADS_ENTER () / GDK_THREADS_LEAVE ().

So basically you need to split garbage_collect_cell_data() into 2 functions,
one that does the idle handler stuff and the other one that does the real
work and can be called directly.
Comment 17 Karsten Bräckelmann 2006-09-03 15:09:30 UTC
*** Bug 354131 has been marked as a duplicate of this bug. ***
Comment 18 Karsten Bräckelmann 2006-09-03 15:10:14 UTC
*** Bug 349516 has been marked as a duplicate of this bug. ***
Comment 19 Karsten Bräckelmann 2006-09-12 10:06:25 UTC
*** Bug 355526 has been marked as a duplicate of this bug. ***
Comment 20 Karsten Bräckelmann 2006-09-12 10:06:41 UTC
*** Bug 339231 has been marked as a duplicate of this bug. ***
Comment 21 Karsten Bräckelmann 2006-09-12 10:08:56 UTC
*** Bug 345764 has been marked as a duplicate of this bug. ***
Comment 22 bill.haneman 2006-09-12 10:09:39 UTC
Thanks Karsten.  I'll have a closer look at this one today.  And thanks Damon for the analysis and suggestion.
Comment 23 bill.haneman 2006-09-12 10:09:50 UTC
Thanks Karsten.  I'll have a closer look at this one today.  And thanks Damon for the analysis and suggestion.
Comment 24 bill.haneman 2006-09-13 11:24:04 UTC
Created attachment 72689 [details] [review]
patch based on Damon's suggestions
Comment 25 bill.haneman 2006-09-13 14:48:51 UTC
Patch committed - Damon and/or Karsten, please reopen if this does not solve your problem.
Comment 26 Karsten Bräckelmann 2006-09-16 23:47:01 UTC
*** Bug 356338 has been marked as a duplicate of this bug. ***
Comment 27 bill.haneman 2006-09-25 12:30:49 UTC
*** Bug 356920 has been marked as a duplicate of this bug. ***
Comment 28 Karsten Bräckelmann 2006-10-03 23:46:52 UTC
*** Bug 359308 has been marked as a duplicate of this bug. ***
Comment 29 André Klapper 2006-10-06 12:25:21 UTC
*** Bug 360141 has been marked as a duplicate of this bug. ***
Comment 30 Karsten Bräckelmann 2006-10-06 16:46:01 UTC
*** Bug 360218 has been marked as a duplicate of this bug. ***
Comment 31 Elijah Newren 2006-10-07 03:56:40 UTC
*** Bug 360317 has been marked as a duplicate of this bug. ***
Comment 32 Elijah Newren 2006-10-07 06:06:45 UTC
*** Bug 360326 has been marked as a duplicate of this bug. ***
Comment 33 Elijah Newren 2006-10-07 15:31:08 UTC
*** Bug 360396 has been marked as a duplicate of this bug. ***
Comment 34 André Klapper 2006-10-29 23:37:26 UTC
*** Bug 367019 has been marked as a duplicate of this bug. ***
Comment 35 Karsten Bräckelmann 2006-10-30 12:20:19 UTC
*** Bug 367486 has been marked as a duplicate of this bug. ***
Comment 36 André Klapper 2006-10-31 16:44:45 UTC
*** Bug 368307 has been marked as a duplicate of this bug. ***
Comment 37 Karsten Bräckelmann 2006-11-03 20:41:31 UTC
*** Bug 370192 has been marked as a duplicate of this bug. ***
Comment 38 Karsten Bräckelmann 2006-11-03 20:41:39 UTC
*** Bug 370193 has been marked as a duplicate of this bug. ***
Comment 39 Karsten Bräckelmann 2006-11-05 19:03:42 UTC
*** Bug 371154 has been marked as a duplicate of this bug. ***
Comment 40 Susana 2006-11-18 13:32:16 UTC
*** Bug 376521 has been marked as a duplicate of this bug. ***
Comment 41 André Klapper 2006-11-18 17:00:52 UTC
*** Bug 376699 has been marked as a duplicate of this bug. ***
Comment 42 André Klapper 2006-11-18 23:29:13 UTC
*** Bug 376754 has been marked as a duplicate of this bug. ***
Comment 43 André Klapper 2006-11-19 15:00:42 UTC
*** Bug 376916 has been marked as a duplicate of this bug. ***
Comment 44 André Klapper 2006-11-21 14:04:36 UTC
*** Bug 377641 has been marked as a duplicate of this bug. ***
Comment 45 André Klapper 2006-11-24 12:51:18 UTC
*** Bug 378553 has been marked as a duplicate of this bug. ***
Comment 46 André Klapper 2006-11-27 18:06:19 UTC
*** Bug 379018 has been marked as a duplicate of this bug. ***
Comment 47 André Klapper 2006-11-29 00:11:30 UTC
*** Bug 380160 has been marked as a duplicate of this bug. ***
Comment 48 Carlos Garcia Campos 2006-11-29 10:04:36 UTC
*** Bug 380431 has been marked as a duplicate of this bug. ***
Comment 49 André Klapper 2006-12-01 15:38:05 UTC
*** Bug 380791 has been marked as a duplicate of this bug. ***
Comment 50 André Klapper 2006-12-01 15:38:10 UTC
*** Bug 381047 has been marked as a duplicate of this bug. ***
Comment 51 André Klapper 2006-12-01 15:38:15 UTC
*** Bug 381185 has been marked as a duplicate of this bug. ***
Comment 52 Carlos Garcia Campos 2006-12-05 16:07:52 UTC
*** Bug 382632 has been marked as a duplicate of this bug. ***
Comment 53 André Klapper 2006-12-05 23:30:51 UTC
*** Bug 382359 has been marked as a duplicate of this bug. ***
Comment 54 André Klapper 2006-12-05 23:31:47 UTC
*** Bug 381394 has been marked as a duplicate of this bug. ***
Comment 55 André Klapper 2006-12-05 23:31:57 UTC
*** Bug 378845 has been marked as a duplicate of this bug. ***
Comment 56 Damon Chaplin 2006-12-06 10:49:29 UTC
Are we sure these are all duplicates? A lot of them are quite recent.
It looks like a different bug to me.
Comment 57 André Klapper 2006-12-14 12:24:24 UTC
*** Bug 385333 has been marked as a duplicate of this bug. ***
Comment 58 André Klapper 2006-12-14 12:24:33 UTC
*** Bug 384837 has been marked as a duplicate of this bug. ***
Comment 59 palfrey 2006-12-15 17:22:27 UTC
*** Bug 386190 has been marked as a duplicate of this bug. ***
Comment 60 André Klapper 2006-12-17 02:18:42 UTC
i guess that bug 383760 comment 2 is another duplicate?
Comment 61 Li Yuan 2006-12-20 09:35:01 UTC
Which gail version are you using? Is there anyone using gail 1.9.3 or 1.9.4?
Comment 62 André Klapper 2007-01-12 02:43:57 UTC
*** Bug 383760 has been marked as a duplicate of this bug. ***
Comment 63 André Klapper 2007-01-18 23:11:55 UTC
*** Bug 393186 has been marked as a duplicate of this bug. ***
Comment 64 André Klapper 2007-01-18 23:12:02 UTC
*** Bug 393723 has been marked as a duplicate of this bug. ***
Comment 65 André Klapper 2007-01-18 23:12:09 UTC
*** Bug 395785 has been marked as a duplicate of this bug. ***
Comment 66 Adam Schreiber 2007-01-21 13:54:22 UTC
*** Bug 394217 has been marked as a duplicate of this bug. ***
Comment 67 Adam Schreiber 2007-01-21 13:55:39 UTC
*** Bug 394253 has been marked as a duplicate of this bug. ***
Comment 68 Adam Schreiber 2007-01-21 13:56:00 UTC
*** Bug 394581 has been marked as a duplicate of this bug. ***
Comment 69 Adam Schreiber 2007-01-21 13:56:28 UTC
*** Bug 396631 has been marked as a duplicate of this bug. ***
Comment 70 Adam Schreiber 2007-01-21 13:56:47 UTC
*** Bug 397263 has been marked as a duplicate of this bug. ***
Comment 71 palfrey 2007-01-27 19:40:06 UTC
*** Bug 401423 has been marked as a duplicate of this bug. ***
Comment 72 palfrey 2007-01-27 19:40:13 UTC
*** Bug 401380 has been marked as a duplicate of this bug. ***
Comment 73 Susana 2007-01-28 13:03:16 UTC
*** Bug 401570 has been marked as a duplicate of this bug. ***
Comment 74 Bruno Boaventura 2007-02-05 03:10:35 UTC
*** Bug 404418 has been marked as a duplicate of this bug. ***
Comment 75 André Klapper 2007-02-06 00:02:14 UTC
*** Bug 404556 has been marked as a duplicate of this bug. ***
Comment 76 André Klapper 2007-02-06 00:02:20 UTC
*** Bug 404520 has been marked as a duplicate of this bug. ***
Comment 77 André Klapper 2007-02-06 00:02:28 UTC
*** Bug 403830 has been marked as a duplicate of this bug. ***
Comment 78 André Klapper 2007-02-10 14:39:55 UTC
*** Bug 405464 has been marked as a duplicate of this bug. ***
Comment 79 André Klapper 2007-02-10 14:40:00 UTC
*** Bug 405714 has been marked as a duplicate of this bug. ***
Comment 80 Adam Schreiber 2007-02-12 17:03:05 UTC
*** Bug 407121 has been marked as a duplicate of this bug. ***
Comment 81 Adam Schreiber 2007-02-12 17:52:49 UTC
*** Bug 407139 has been marked as a duplicate of this bug. ***
Comment 82 Susana 2007-02-20 13:50:40 UTC
*** Bug 409834 has been marked as a duplicate of this bug. ***
Comment 83 Pedro Villavicencio 2007-02-27 11:36:21 UTC
*** Bug 412391 has been marked as a duplicate of this bug. ***
Comment 84 Damon Chaplin 2007-03-09 12:35:24 UTC
*** Bug 408226 has been marked as a duplicate of this bug. ***
Comment 85 Damon Chaplin 2007-03-09 12:42:45 UTC
*** Bug 416014 has been marked as a duplicate of this bug. ***
Comment 86 Damon Chaplin 2007-03-09 12:43:51 UTC
*** Bug 412516 has been marked as a duplicate of this bug. ***
Comment 87 Kjartan Maraas 2007-04-06 13:37:35 UTC
*** Bug 420989 has been marked as a duplicate of this bug. ***
Comment 88 André Klapper 2007-04-12 20:46:12 UTC
*** Bug 426719 has been marked as a duplicate of this bug. ***
Comment 89 André Klapper 2007-04-12 20:46:17 UTC
*** Bug 426133 has been marked as a duplicate of this bug. ***
Comment 90 André Klapper 2007-04-12 20:46:25 UTC
*** Bug 424009 has been marked as a duplicate of this bug. ***
Comment 91 André Klapper 2007-04-12 20:46:27 UTC
*** Bug 423584 has been marked as a duplicate of this bug. ***
Comment 92 André Klapper 2007-04-12 20:46:31 UTC
*** Bug 422155 has been marked as a duplicate of this bug. ***
Comment 93 André Klapper 2007-04-12 20:46:35 UTC
*** Bug 420418 has been marked as a duplicate of this bug. ***
Comment 94 André Klapper 2007-04-12 20:47:16 UTC
*** Bug 423796 has been marked as a duplicate of this bug. ***
Comment 95 André Klapper 2007-04-12 20:48:59 UTC
*** Bug 412886 has been marked as a duplicate of this bug. ***
Comment 96 Christian Kirbach 2007-05-15 17:39:54 UTC
*** Bug 432698 has been marked as a duplicate of this bug. ***
Comment 97 Christian Kirbach 2007-05-15 17:40:00 UTC
*** Bug 438640 has been marked as a duplicate of this bug. ***
Comment 98 Pedro Villavicencio 2007-06-04 23:36:21 UTC
*** Bug 443792 has been marked as a duplicate of this bug. ***
Comment 99 Steve Yrjänä 2007-08-03 08:37:38 UTC
*** Bug 462800 has been marked as a duplicate of this bug. ***
Comment 100 Pascal Terjan 2007-09-02 16:07:57 UTC
*** Bug 462920 has been marked as a duplicate of this bug. ***
Comment 101 Pascal Terjan 2007-09-02 16:08:13 UTC
*** Bug 461057 has been marked as a duplicate of this bug. ***
Comment 102 Pascal Terjan 2007-09-02 16:08:41 UTC
*** Bug 464226 has been marked as a duplicate of this bug. ***
Comment 103 Pascal Terjan 2007-09-02 16:09:11 UTC
*** Bug 472641 has been marked as a duplicate of this bug. ***
Comment 104 André Klapper 2008-04-22 23:50:51 UTC
*** Bug 476756 has been marked as a duplicate of this bug. ***
Comment 105 André Klapper 2008-04-22 23:50:54 UTC
*** Bug 477302 has been marked as a duplicate of this bug. ***
Comment 106 André Klapper 2008-04-22 23:50:57 UTC
*** Bug 478543 has been marked as a duplicate of this bug. ***
Comment 107 André Klapper 2008-04-22 23:51:01 UTC
*** Bug 482400 has been marked as a duplicate of this bug. ***