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 353130 - crash in Power Management: The Information window w...
crash in Power Management: The Information window w...
Status: RESOLVED FIXED
Product: atk
Classification: Platform
Component: gail
1.9.x
Other All
: High critical
: ---
Assigned To: bill.haneman
bill.haneman
: 352042 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-08-27 19:17 UTC by Jonathon Jongsma
Modified: 2007-01-29 07:02 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
patch to fix the issue, implements the proposed solution (1.38 KB, patch)
2006-09-04 23:05 UTC, Carlos Garnacho
committed Details | Review

Description Jonathon Jongsma 2006-08-27 19:17:44 UTC
Version: @VERSION@

What were you doing when the application crashed?
The Information window was open, and I right-clicked the notification icon and selected "Preferences" and it crashed


Distribution: Ubuntu 6.06 (dapper)
Gnome Release: 2.15.92 2006-08-26 (GARNOME)
BugBuddy Version: 2.15.92

Memory status: size: 123604992 vsize: 123604992 resident: 19718144 share: 13168640 rss: 19718144 rss_rlim: -1
CPU usage: start_time: 1156706132 rtime: 68 utime: 56 stime: 12 cutime:0 cstime: 0 timeout: 0 it_real_value: 0 frequency: 100

Backtrace was generated from '/opt/garnome-2.15.x/bin/gnome-power-preferences'

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 46912587976336 (LWP 12553)]
0x00002aaaafc5c094 in waitpid () from /lib/libpthread.so.0

Thread 1 (Thread 46912587976336 (LWP 12553))

  • #0 waitpid
    from /lib/libpthread.so.0
  • #1 libgnomeui_segv_handle
    at gnome-ui-init.c line 867
  • #2 <signal handler called>
  • #3 IA__g_logv
    at gmessages.c line 503
  • #4 IA__g_log
    at gmessages.c line 517
  • #5 gail_notebook_real_remove_gtk
    at gailnotebook.c line 555
  • #6 IA__g_closure_invoke
    at gclosure.c line 490
  • #7 signal_emit_unlocked_R
    at gsignal.c line 2438
  • #8 IA__g_signal_emit_valist
    at gsignal.c line 2197
  • #9 IA__g_signal_emit
    at gsignal.c line 2241
  • #10 gpm_prefs_init
    at gpm-prefs-core.c line 1015
  • #11 IA__g_type_create_instance
    at gtype.c line 1567
  • #12 g_object_constructor
    at gobject.c line 1015
  • #13 IA__g_object_newv
    at gobject.c line 912
  • #14 IA__g_object_new_valist
    at gobject.c line 955
  • #15 IA__g_object_new
    at gobject.c line 793
  • #16 gpm_prefs_new
    at gpm-prefs-core.c line 1050
  • #17 main
    at gpm-prefs.c line 104
  • #0 waitpid
    from /lib/libpthread.so.0

Comment 1 Richard Hughes 2006-08-28 12:38:42 UTC
I can't reproduce. Is this repeatable? Thanks.
Comment 2 Jonathon Jongsma 2006-08-28 12:58:43 UTC
Ahh, looking at it more closely now, I bet it is the same as (or similar to) bug #353138 that I filed yesterday against Epiphany.  That one was marked as a dup of a gail bug, so it only shows up when accessibility is enabled.  Can you reproduce it with accessibility enabled? (I'm not at my computer right now so I can't test).  In any case, it's probably not a g-p-m bug. 
Comment 3 Karsten Bräckelmann 2006-08-28 16:41:09 UTC
I believe this to be duplicate of bug 345074.


*** This bug has been marked as a duplicate of 345074 ***
Comment 4 Jonathon Jongsma 2006-08-28 16:49:06 UTC
that bug says that the patch to fix the issue was in GARNOME for 2.15.91.  Then it looks like the patch was removed for 2.15.92 because the fix was committed upstream.  So according to 345074, that bug shouldn't be present in garnome 2.15.92, which is where I experienced this crash.  So something seems slightly wrong.
Comment 5 Karsten Bräckelmann 2006-08-28 22:49:14 UTC
Jonner, you are totally right that bug 345074 is supposed to be fixed in gail 1.9.2, as shipped with GARNOME 2.15.92.  Good catch.

Having a breif look at the code, the patch and bug 341853 (which also has been marked as a duplicate), both these duplicates may actually not be fixed by the patch...


Trying to summon Bill or chpe to sort this out...
Comment 6 Karsten Bräckelmann 2006-08-28 23:24:01 UTC
OK, talked to Carlos (reporter of bug 345074 and author of the patch), who is positive bug 341853 is a duplicate of his bug.

Now we got this crash -- which according to the assumption above can not be a duplicate as well, given that the patch actually fixed the issue. ;)

REOPENing. Moving to atk/gail.


Adding chpe and Bill to Cc.  Comments?
Comment 7 Carlos Garnacho 2006-08-29 03:25:49 UTC
I've been investigating the source of the bug, it seems to be due to an early initialization of the a11y code in the notebook by libglade when it has only 1 page (creating its GailNotebookPage); when the rest of the pages are added, GailNotebook isn't notified (and doesn't create the respective GailNotebookPages). Then, when g-p-m removes any page (in my case the UPS one), no GailNotebookPage is found.

Note that all this happens before entering the main loop, at some point inside it 
atk_object_ref_accessible_child() is called for each child, which ends up creating the rest of the GailNotebookPages.

If I may propose a solution, I'd connect to the ::page-added signal (in GtkNotebook since 2.10) and create the respective GailNotebookPage in its handler, I'll make a patch tomorrow if I've got some time.
Comment 8 Carlos Garnacho 2006-09-04 23:05:39 UTC
Created attachment 72222 [details] [review]
patch to fix the issue, implements the proposed solution
Comment 9 bill.haneman 2006-09-12 18:15:13 UTC
Thanks Carlos!  Please commit ASAP or let me know and I'll commit tomorrow (wed 13-sept)
Comment 10 bill.haneman 2006-09-13 10:41:11 UTC
I committed this today. Thanks again Carlos!
Comment 11 Li Yuan 2007-01-29 07:02:58 UTC
*** Bug 352042 has been marked as a duplicate of this bug. ***