Intrepid, Segmentation fault

Bug #246255 reported by plun
4
Affects Status Importance Assigned to Milestone
PackageKit
Fix Released
Medium
packagekit-gnome (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Binary package hint: packagekit-gnome

Gives segmentation fault directly if a package is marked for install or uninstall.

gdb without debugging symbols gives this:

(no debugging symbols found)

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb713a720 (LWP 7623)]
0xb731fcc8 in strcmp () from /lib/tls/i686/cmov/libc.so.6

Version 0.2.2 for both packagekit and packagekit-gnome

Revision history for this message
James Westby (james-w) wrote :

Hi,

This only seems to happen when checking the box, or using "Add to list",
not when double clicking.

I'm getting a stack trace now.

Thanks,

James

Changed in packagekit-gnome:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
James Westby (james-w) wrote :

#0 0xb727acc8 in strcmp () from /lib/tls/i686/cmov/libc.so.6
#1 0xb7eabebc in pk_strequal (id1=0x8062f29 "separator",
    id2=0x8062f29 "separator") at pk-common.c:478
#2 0x0804f2da in gpk_application_group_row_separator_func (model=0x823ad40,
    iter=0xbfe47ebc, data=0x0) at gpk-application.c:2312
#3 0xb7bda311 in gtk_tree_view_real_set_cursor (tree_view=0x8149330,
    path=0x8270ba8, clear_and_select=1, clamp_node=1)
    at /build/buildd/gtk+2.0-2.13.3/gtk/gtktreeview.c:2436
#4 0xb7be4d9d in gtk_tree_view_button_press (widget=0x8149330,
    event=0x82d0020) at /build/buildd/gtk+2.0-2.13.3/gtk/gtktreeview.c:2693
#5 0xb7acd7b2 in _gtk_marshal_BOOLEAN__BOXED (closure=0x809fc48,
    return_value=0xbfe481a0, n_param_values=2, param_values=0xbfe48258,
    invocation_hint=0xbfe4818c, marshal_data=0xb7be4580)
    at /build/buildd/gtk+2.0-2.13.3/gtk/gtkmarshalers.c:84
#6 0xb75801d9 in ?? () from /usr/lib/libgobject-2.0.so.0
#7 0xb7581a5b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#8 0xb75980dd in ?? () from /usr/lib/libgobject-2.0.so.0
#9 0xb7599a28 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#10 0xb759a016 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#11 0xb7bf9e7e in gtk_widget_event_internal (widget=0x8149330, event=0x82d0020)
    at /build/buildd/gtk+2.0-2.13.3/gtk/gtkwidget.c:4706
#12 0xb7ac54fa in IA__gtk_propagate_event (widget=0x8149330, event=0x82d0020)
    at /build/buildd/gtk+2.0-2.13.3/gtk/gtkmain.c:2343
---Type <return> to continue, or q <return> to quit---
#13 0xb7ac68ff in IA__gtk_main_do_event (event=0x82d0020)
    at /build/buildd/gtk+2.0-2.13.3/gtk/gtkmain.c:1563
#14 0xb7941a5a in gdk_event_dispatch (source=0x80973d0, callback=0,
    user_data=0x0) at /build/buildd/gtk+2.0-2.13.3/gdk/x11/gdkevents-x11.c:2365
#15 0xb74ef5e8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#16 0xb74f2c93 in ?? () from /usr/lib/libglib-2.0.so.0
#17 0xb74f31b2 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#18 0xb7ac6e99 in IA__gtk_main ()
    at /build/buildd/gtk+2.0-2.13.3/gtk/gtkmain.c:1169
#19 0x0804e498 in main (argc=1, argv=0xbfe487e4) at gpk-application-main.c:130

Revision history for this message
sojourner (itsmealso2) wrote :

I will also confirm this happens on my amd64 sys with II uptodate as of 07/07/2008 AM

Revision history for this message
In , James Westby (james-w) wrote :

Hi,

In

  https://bugs.edge.launchpad.net/ubuntu/+source/packagekit-gnome/+bug/246255

a user reported a segfault when going to install a package from the list.
It is reproducible with 0.2.1 when clicking the checkbox next to a package,
or choosing "Add to list", but not when double clicking.

Here is the stacktrace that I obtained:

#0 0xb727acc8 in strcmp () from /lib/tls/i686/cmov/libc.so.6
#1 0xb7eabebc in pk_strequal (id1=0x8062f29 "separator",
    id2=0x8062f29 "separator") at pk-common.c:478
#2 0x0804f2da in gpk_application_group_row_separator_func (model=0x823ad40,
    iter=0xbfe47ebc, data=0x0) at gpk-application.c:2312
#3 0xb7bda311 in gtk_tree_view_real_set_cursor (tree_view=0x8149330,
    path=0x8270ba8, clear_and_select=1, clamp_node=1)
    at /build/buildd/gtk+2.0-2.13.3/gtk/gtktreeview.c:2436
#4 0xb7be4d9d in gtk_tree_view_button_press (widget=0x8149330,
    event=0x82d0020) at /build/buildd/gtk+2.0-2.13.3/gtk/gtktreeview.c:2693
#5 0xb7acd7b2 in _gtk_marshal_BOOLEAN__BOXED (closure=0x809fc48,
    return_value=0xbfe481a0, n_param_values=2, param_values=0xbfe48258,
    invocation_hint=0xbfe4818c, marshal_data=0xb7be4580)
    at /build/buildd/gtk+2.0-2.13.3/gtk/gtkmarshalers.c:84
#6 0xb75801d9 in ?? () from /usr/lib/libgobject-2.0.so.0
#7 0xb7581a5b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#8 0xb75980dd in ?? () from /usr/lib/libgobject-2.0.so.0
#9 0xb7599a28 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#10 0xb759a016 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#11 0xb7bf9e7e in gtk_widget_event_internal (widget=0x8149330, event=0x82d0020)
    at /build/buildd/gtk+2.0-2.13.3/gtk/gtkwidget.c:4706
#12 0xb7ac54fa in IA__gtk_propagate_event (widget=0x8149330, event=0x82d0020)
    at /build/buildd/gtk+2.0-2.13.3/gtk/gtkmain.c:2343
---Type <return> to continue, or q <return> to quit---
#13 0xb7ac68ff in IA__gtk_main_do_event (event=0x82d0020)
    at /build/buildd/gtk+2.0-2.13.3/gtk/gtkmain.c:1563
#14 0xb7941a5a in gdk_event_dispatch (source=0x80973d0, callback=0,
    user_data=0x0) at /build/buildd/gtk+2.0-2.13.3/gdk/x11/gdkevents-x11.c:2365
#15 0xb74ef5e8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#16 0xb74f2c93 in ?? () from /usr/lib/libglib-2.0.so.0
#17 0xb74f31b2 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#18 0xb7ac6e99 in IA__gtk_main ()
    at /build/buildd/gtk+2.0-2.13.3/gtk/gtkmain.c:1169
#19 0x0804e498 in main (argc=1, argv=0xbfe487e4) at gpk-application-main.c:130

Let me know what extra information I can provide.

Thanks,

James

Revision history for this message
In , Richard Hughes (richard-hughes) wrote :

Already fixed in 0.2.2 or 0.2.3 -- can you try with one of those please? Thanks.

Revision history for this message
In , James Westby (james-w) wrote :

Hi,

I thought it sounded familiar, but I couldn't find a reference.

I'll try and get an update into Ubuntu to get the fix.

Thanks,

James

James Westby (james-w)
Changed in packagekit-gnome:
status: Confirmed → Triaged
Changed in packagekit:
status: Unknown → Confirmed
Changed in packagekit:
status: Confirmed → Fix Released
Revision history for this message
Katrina Niolet (katrina) wrote :

I'm getting similar crashes in libc when running various things, for instance:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f41f6220780 (LWP 19923)]
0x00007f41f3850740 in strlen () from /lib/libc.so.6
(gdb) bt
#0 0x00007f41f3850740 in strlen () from /lib/libc.so.6
#1 0x00007f41f5b4f3d3 in XSetCommand () from /usr/lib/libX11.so.6
#2 0x00007f41f5b53ec6 in XSetWMProperties () from /usr/lib/libX11.so.6

Revision history for this message
In , James Westby (james-w) wrote :

Hi,

I've confirmed the fix.

Thanks,

James

Revision history for this message
James Westby (james-w) wrote :

Hi,

The fix for this hit the archives last week.

Thanks,

James

Changed in packagekit-gnome:
status: Triaged → Fix Released
Changed in packagekit:
importance: Unknown → Medium
Changed in packagekit:
importance: Medium → Unknown
Changed in packagekit:
importance: Unknown → Medium
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.