Crash under gs-updates-section.c:_reboot_failed_cb()
Moving this from a downstream bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=2237012
Description of problem:
Crash after cancelling a "apply update reboot" because of the same user logged in console tty.
Version-Release number of selected component: gnome-software-44.4-1.fc38
Backtrace of the crashing thread:
Core was generated by `/usr/bin/gnome-software --gapplication-service'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 g_value_object_collect_value (value=0x7fffa200f3f8, n_collect_values=<optimized out>, collect_values=0x7fffa200f220, collect_flags=134217728) at ../gobject/gobject.c:4441
Downloading source file /usr/src/debug/glib2-2.76.4-3.fc38.x86_64/redhat-linux-build/../gobject/gobject.c...
4441 else if (!g_value_type_compatible (G_OBJECT_TYPE (object), G_VALUE_TYPE (value)))
[Current thread is 1 (Thread 0x7f119462ca80 (LWP 235698))]
Thread 1 (Thread 0x7f119462ca80 (LWP 235698)):
#0 g_value_object_collect_value (value=0x7fffa200f3f8, n_collect_values=<optimized out>, collect_values=0x7fffa200f220, collect_flags=134217728) at ../gobject/gobject.c:4441
object = 0x7f11080dfe80
#1 0x00007f11971acec7 in g_object_new_valist (object_type=<optimized out>, first_property_name=first_property_name@entry=0x55f4d37e3b80 "action", var_args=var_args@entry=0x7fffa200f5b0) at ../gobject/gobject.c:2571
error = 0x0
pspec = <optimized out>
__func__ = "g_object_new_valist"
#2 0x00007f11971ad51f in g_object_new (object_type=<optimized out>, first_property_name=first_property_name@entry=0x55f4d37e3b80 "action") at ../gobject/gobject.c:2058
object = <optimized out>
var_args = {{gp_offset = 40, fp_offset = 48, overflow_arg_area = 0x7fffa200f690, reg_save_area = 0x7fffa200f5d0}}
#3 0x000055f4d37d8922 in _reboot_failed_cb (source=<optimized out>, res=<optimized out>, user_data=0x55f4d43e7bb0) at ../src/gs-updates-section.c:271
self = 0x55f4d43e7bb0
error = 0x7f117c043fe0
app = 0x7f11080dfe80
plugin_job = 0x0
#4 0x00007f119729809c in g_task_return_now (task=0x55f4d79562a0) at ../gio/gtask.c:1309
#5 0x00007f119729be03 in g_task_return (type=<optimized out>, task=0x55f4d79562a0) at ../gio/gtask.c:1378
source = 0x7f117c110e60
#6 g_task_return (task=0x55f4d79562a0, type=<optimized out>) at ../gio/gtask.c:1335
#7 0x00007f119729c754 in g_task_return_error (error=<optimized out>, task=<optimized out>) at ../gio/gtask.c:1988
__func__ = "g_task_return_error"
#8 0x000055f4d3794afc in gs_utils_invoke_reboot_ready3_cb (source_object=<optimized out>, result=<optimized out>, user_data=0x55f4d79562a0) at /usr/include/glib-2.0/glib/gmem.h:233
method_name = 0x55f4d37e2318 "org.gnome.SessionManager.Reboot"
task = 0x55f4d79562a0
ret_val = <optimized out>
local_error = 0x0
#9 0x00007f119729809c in g_task_return_now (task=0x55f4d64d6ff0) at ../gio/gtask.c:1309
#10 0x00007f119729be03 in g_task_return (type=<optimized out>, task=0x55f4d64d6ff0) at ../gio/gtask.c:1378
source = 0x7f117c110e60
#11 g_task_return (task=0x55f4d64d6ff0, type=<optimized out>) at ../gio/gtask.c:1335
#12 0x00007f11972f37b2 in g_dbus_connection_call_done (source=<optimized out>, result=<optimized out>, user_data=0x55f4d64d6ff0) at ../gio/gdbusconnection.c:5885
connection = <optimized out>
task = 0x55f4d64d6ff0
state = 0x55f4d7d47e10
error = 0x7f117c043fe0
reply = 0x7f117c051630
value = <optimized out>
#13 0x00007f119729809c in g_task_return_now (task=0x55f4d7c090f0) at ../gio/gtask.c:1309
#14 0x00007f11972980d5 in complete_in_idle_cb (task=task@entry=0x55f4d7c090f0) at ../gio/gtask.c:1323
#15 0x00007f119709548d in g_idle_dispatch (source=0x7f117c110e60, callback=0x7f11972980c0 <complete_in_idle_cb>, user_data=0x55f4d7c090f0) at ../glib/gmain.c:6163
idle_source = 0x7f117c110e60
again = <optimized out>
#16 0x00007f119709948c in g_main_dispatch (context=0x55f4d3e606c0) at ../glib/gmain.c:3460
dispatch = 0x7f1197095460 <g_idle_dispatch>
prev_source = 0x0
begin_time_nsec = 89142603790135
was_in_call = 0
user_data = 0x55f4d7c090f0
callback = 0x7f11972980c0 <complete_in_idle_cb>
cb_funcs = 0x7f1197184380 <g_source_callback_funcs>
cb_data = 0x7f117c0e7e20
need_destroy = <optimized out>
source = 0x7f117c110e60
current = 0x55f4d3e5cba0
i = 0
#17 g_main_context_dispatch (context=0x55f4d3e606c0) at ../glib/gmain.c:4200
#18 0x00007f11970f7648 in g_main_context_iterate.isra.0 (context=0x55f4d3e606c0, block=1, dispatch=1, self=<optimized out>) at ../glib/gmain.c:4276
max_priority = 2147483647
timeout = 3355
some_ready = 1
nfds = 3
allocated_nfds = <optimized out>
fds = <optimized out>
begin_time_nsec = 89142586104854
#19 0x00007f1197096b13 in g_main_context_iteration (context=context@entry=0x55f4d3e606c0, may_block=may_block@entry=1) at ../glib/gmain.c:4343
retval = <optimized out>
#20 0x00007f11972cdffd in g_application_run (application=application@entry=0x55f4d3e094d0, argc=argc@entry=2, argv=argv@entry=0x7fffa200fb98) at ../gio/gapplication.c:2573
arguments = 0x55f4d3e60640
status = 0
context = 0x55f4d3e606c0
acquired_context = <optimized out>
__func__ = "g_application_run"
#21 0x000055f4d377ca24 in main (argc=2, argv=0x7fffa200fb98) at ../src/gs-main.c:50
status = 0
appinfo = 0x55f4d3e5a040
application = 0x55f4d3e094d0
debug = 0x55f4d3dfffe0