Update Manager crashes when unselecting any package

Bug #2028920 reported by Lukáš Chmela
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Update Manager crashes every time I unselect, or no later than when I re-select an offered package to be upgraded in Ubuntu 23.04. No crash handling dialog window ever pops up (why?), no stack trace is available when update-manager is launched from terminal. The only output I was able to get from a terminal window is this:

~$ update-manager
Segmentation fault (core dumped)

The manager crashes every time I have to modify the list of updated packages probably since the installation of Ubuntu 23.04. I had to do an upgrade from Ubuntu 22.10 to an RC of Ubuntu 23.04 if I remember correctly, because the new installer of Ubuntu 23.04 did not offer installation to a secondary LUKS-encrypted partition in a dual boot with Windows (only full-disk erase was offered). I later discovered that my /boot partition is too small to contain firmware update images and, since the last few days, also new Linux kernel. This is typically what I try to unselect, which makes the upgrade-manager window disappear silently and never re-appear again.

~$ lsb_release -rd
No LSB modules are available.
Description: Ubuntu 23.04
Release: 23.04

~$ apt-cache policy update-manager
update-manager:
  Installed: 1:23.04.2
  Candidate: 1:23.04.2
  Version table:
 *** 1:23.04.2 500
        500 http://cz.archive.ubuntu.com/ubuntu lunar/main amd64 Packages
        500 http://cz.archive.ubuntu.com/ubuntu lunar/main i386 Packages
        100 /var/lib/dpkg/status

Tags: dist-upgrade
tags: added: dist-upgrade
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in update-manager (Ubuntu):
status: New → Confirmed
Revision history for this message
Tormod Volden (tormodvolden) wrote :

I have this in 24.04 as well.

Revision history for this message
Tormod Volden (tormodvolden) wrote (last edit ):
Download full text (12.6 KiB)

This is where it is crashing:

$ gdb --args python3 /usr/bin/update-manager --no-update

... snip ...

Thread 1 "python3" received signal SIGSEGV, Segmentation fault.
Downloading source file /usr/src/glib2.0-2.80.0-6ubuntu3.1/debian/build/deb/../../../gobject/gtype.c
0x00007ffff7137d59 in g_type_check_instance_is_fundamentally_a (
    type_instance=0x39383131204c2035, fundamental_type=0x50)
    at ../../../gobject/gtype.c:4151
warning: 4151 ../../../gobject/gtype.c: No such file or directory
(gdb) p type_instance
$1 = 0x39383131204c2035
(gdb) p *type_instance
Cannot access memory at address 0x39383131204c2035
(gdb) where
#0 0x00007ffff7137d59 in g_type_check_instance_is_fundamentally_a
    (type_instance=0x39383131204c2035, fundamental_type=0x50)
    at ../../../gobject/gtype.c:4151
#1 0x00007ffff711c959 in g_object_ref (_object=0x39383131204c2035)
    at ../../../gobject/gobject.c:4199
#2 0x00007ffff61123c6 in gdk_event_copy (event=0x2803cf0)
    at ../../../gdk/gdkevents.c:661
#3 0x00007ffff72e1c4f in pygi_boxed_copy_in_place (self=0x7fffea0a5a30)
    at ../gi/pygi-boxed.c:223
#4 arg_boxed_to_py_cleanup
    (state=<optimized out>, arg_cache=<optimized out>, cleanup_data=0x7fffea0a5a30, data=<optimized out>, was_processed=<optimized out>)
    at ../gi/pygi-struct-marshal.c:527
#5 0x00007ffff72d63e6 in pygi_marshal_cleanup_args_to_py_marshal_success
    (state=state@entry=0x7fffffffc110, cache=<optimized out>)
    at ../gi/pygi-marshal-cleanup.c:156
#6 0x00007ffff72d680a in _pygi_closure_handle
    (cif=<optimized out>, result=<optimized out>, args=<optimized out>, data=<optimized out>) at ../gi/pygi-closure.c:589
#7 0x00007ffff7fad641 in ffi_closure_unix64_inner
    (cif=<optimized out>, fun=<optimized out>, user_data=<optimized out>, rvalue=<optimized out>, reg_args=<optimized out>, argp=0x7fffffffc3c0 "\020\304\377\377\377\177") at ../src/x86/ffi64.c:899
--Type <RET> for more, q to quit, c to continue without paging--
#8 0x00007ffff7fadd38 in ffi_closure_unix64 () at ../src/x86/unix64.S:303
#9 0x00007ffff5934d5d in _gtk_tree_view_column_cell_event
    (flags=0, cell_area=0x7fffffffc440, event=0x2803cf0, tree_column=0x260ed10 [GtkTreeViewColumn]) at ../../../gtk/gtktreeviewcolumn.c:2930
#10 gtk_tree_view_multipress_gesture_pressed
    (gesture=0x25b7a20 [GtkGestureMultiPress], n_press=1, x=<optimized out>, y=<optimized out>, tree_view=<optimized out>) at ../../../gtk/gtktreeview.c:3356

#15 0x00007ffff7130883 in <emit signal 'pressed' on instance 0x25b7a20 [GtkGestureMultiPress]>
    (instance=instance@entry=0x25b7a20, signal_id=<optimized out>, detail=detail@entry=0) at ../../../gobject/gsignal.c:3583
    #11 0x00007ffff5699b43 in _gtk_marshal_VOID__INT_DOUBLE_DOUBLEv
    (closure=<optimized out>, return_value=<optimized out>, instance=<optimized out>, args=<optimized out>, marshal_data=<optimized out>, n_params=<optimized out>, param_types=0x164d240) at gtk/gtkmarshalers.c:4804
    #12 0x00007ffff71306bd in _g_closure_invoke_va
    (param_types=0x164d240, n_params=<optimized out>, args=0x7fffffffc720, instance=0x25b7a20, return_value=0x0, closure=0x25b7d90)
    at ../../../gobject/gclosure.c:897
    #13 signal_e...

Revision history for this message
Tormod Volden (tormodvolden) wrote (last edit ):

I noticed all the "gesture" functions in the call trace. Indeed, if I only use the keyboard spacebar to toggle packages or groups it doesn't crash.

summary: - Update Manager crashes when unselecting any package in Ubuntu 23.04
+ Update Manager crashes when unselecting any package
Revision history for this message
Tormod Volden (tormodvolden) wrote :

This seems to be a duplicate of #2027941.

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.