Segmentation fault (core dumped) at feisty

Bug #79449 reported by D.B. Tsai
4
Affects Status Importance Assigned to Milestone
gtk+2.0 (Ubuntu)
Fix Released
Undecided
Ubuntu Desktop Bugs
pcmanx-gtk2 (Ubuntu)
Fix Released
Medium
ville palo

Bug Description

Binary package hint: pcmanx-gtk2

Segmentation fault (core dumped) at feisty

Revision history for this message
D.B. Tsai (dbtsai) wrote :
Revision history for this message
ville palo (vi64pa) wrote :

Happens on my feisty too

Changed in pcmanx-gtk2:
importance: Undecided → Medium
status: Unconfirmed → Confirmed
Revision history for this message
ville palo (vi64pa) wrote :

#0 0xb7dc2e03 in gtk_notebook_draw_focus (widget=0x80d6000, event=0x812cb70)
    at gtknotebook.c:2971
#1 0xb7dc31fa in gtk_notebook_expose (widget=0x80d6000, event=0x812cb70)
    at gtknotebook.c:2026
#2 0xb7da5180 in _gtk_marshal_BOOLEAN__BOXED (closure=0x80ac848,
    return_value=0xbf8646c0, n_param_values=2, param_values=0xbf86479c,
    invocation_hint=0xbf8646ac, marshal_data=0xb7dc2ee0) at gtkmarshalers.c:84
#3 0xb79c9e49 in ?? () from /usr/lib/libgobject-2.0.so.0
#4 0x080ac848 in ?? ()
#5 0xbf8646c0 in ?? ()
#6 0x00000002 in ?? ()
#7 0xbf86479c in ?? ()
#8 0xbf8646ac in ?? ()
#9 0xb7dc2ee0 in ?? () at gtknotebook.c:2989 from /usr/lib/libgtk-x11-2.0.so.0
#10 0xb79cb2db in g_closure_unref () from /usr/lib/libgobject-2.0.so.0
#11 0xb79cb70d in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#12 0xb79dc733 in ?? () from /usr/lib/libgobject-2.0.so.0

Revision history for this message
ville palo (vi64pa) wrote :

This is just a guess but there is a patch in current gnome cvs:

if (GTK_WIDGET_HAS_FOCUS (widget) && GTK_WIDGET_DRAWABLE (widget) &&
- notebook->cur_page->tab_label->window == event->window &&
- notebook->show_tabs && notebook->cur_page)
+ notebook->show_tabs && notebook->cur_page &&
+ notebook->cur_page->tab_label->window == event->window)

And it has comment:

"(gtk_notebook_draw_focus): fix potential crasher if cur_page is NULL"

So is it possible in this case that cur_page is NULL?

Changed in pcmanx-gtk2:
assignee: nobody → vi64pa
Revision history for this message
ville palo (vi64pa) wrote :

My guess was right, I tester that patch and pcmanx doesn't crash anymore.

Changed in pcmanx-gtk2:
status: Confirmed → In Progress
Revision history for this message
ville palo (vi64pa) wrote :
Revision history for this message
Jim Huang (jserv) wrote :

Fixed in SVN head.

Here is the fixlet attached.

Revision history for this message
ville palo (vi64pa) wrote :

Now we have two fixes for this. I thinkt the main culprit is still libgtk2 gtknotebook.c. This fixlet from jser is more like workaround for this.

That gtknotebook.c bug can cause other segfaults too, so I think it should be fixed as well.

Revision history for this message
ville palo (vi64pa) wrote :

Here's a debdiff for gtk bug.

Revision history for this message
Gauvain Pocentek (gpocentek) wrote :

We have gtk 2.10.9 in feisty now. Could you confirm that it fixes the bug, and close the bug? Thanks.

Revision history for this message
D.B. Tsai (dbtsai) wrote :

This bug have been fixed... thanks

Revision history for this message
D.B. Tsai (dbtsai) wrote :

This bug has been fixed... thanks

Revision history for this message
Sebastien Bacher (seb128) wrote :

marking fixed then

Changed in gtk+2.0:
assignee: nobody → desktop-bugs
status: Unconfirmed → Fix Released
Changed in pcmanx-gtk2:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.