Crash under gs-download-utils.c:open_input_stream_cb()
Moving this from a downstream bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=2236574
Description of problem:
triggering download for offered update (System + Flatpaks)
Version-Release number of selected component:
gnome-software-45~beta-1.fc39
Aug 31 20:13:12 ... org.gnome.Software.desktop[58885]:
Gs:ERROR:../lib/gs-download-utils.c:376:open_input_stream_cb: assertion failed: (input_stream != NULL)
Thread 1 (Thread 0x7f9ec9dfaf40 (LWP 58885)):
#0 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
tid = <optimized out>
ret = 0
pd = <optimized out>
old_mask = {__val = {11}}
ret = <optimized out>
#1 0x00007f9ecbc90893 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:78
#2 0x00007f9ecbc3e8ee in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
ret = <optimized out>
#3 0x00007f9ecbc268ff in __GI_abort () at abort.c:79
save_stage = 1
act = {__sigaction_handler = {sa_handler = 0x20, sa_sigaction = 0x20}, sa_mask = {__val = {94676596246096, 140724706902864, 1969088999138534400, 0, 18446744073709551496, 11, 94676622814960, 140320020491080, 140724706902880, 140724706902832, 140320000571054, 94676622814976, 0, 0, 94676622814976, 103}}, sa_flags = -859746848, sa_restorer = 0x7ffd062a8350}
#4 0x00007f9eccaecff6 in g_assertion_message (domain=domain@entry=0x7f9eccf982d2 "Gs", file=file@entry=0x7f9eccf9eb48 "../lib/gs-download-utils.c", line=line@entry=376, func=func@entry=0x7f9eccfa0e30 <__func__.9.lto_priv.6> "open_input_stream_cb", message=message@entry=0x7f9e640065d0 "assertion failed: (input_stream != NULL)") at ../glib/gtestutils.c:3497
lstr = "376\000\375\177\000\000\250\377\334\314\236\177\000\000`?\251\237\033V\000\000\240\321\250\237\033V\000"
s = 0x561b9e78af00 "\272L\344\374\036V"
#5 0x00007f9eccb4e9b7 in g_assertion_message_expr (domain=domain@entry=0x7f9eccf982d2 "Gs", file=file@entry=0x7f9eccf9eb48 "../lib/gs-download-utils.c", line=line@entry=376, func=func@entry=0x7f9eccfa0e30 <__func__.9.lto_priv.6> "open_input_stream_cb", expr=expr@entry=0x7f9eccf9efcd "input_stream != NULL") at ../glib/gtestutils.c:3523
s = 0x7f9e640065d0 "assertion failed: (input_stream != NULL)"
#6 0x00007f9eccf6a8cd in open_input_stream_cb (source_object=<optimized out>, result=<optimized out>, user_data=0x0) at ../lib/gs-download-utils.c:376
soup_session = <optimized out>
new_etag = <optimized out>
new_last_modified_str = <optimized out>
status_code = 200
task = 0x561b9fa93f60
data = 0x561b9d72d750
cancellable = 0x561b9fa8d1a0
input_stream = 0x0
local_error = 0x7f9e64000e40
__func__ = "open_input_stream_cb"
#7 0x00007f9eccd2966c in g_task_return_now (task=0x561b9d208fc0) at ../gio/gtask.c:1371
#8 0x00007f9eccd296a5 in complete_in_idle_cb (task=task@entry=0x561b9d208fc0) at ../gio/gtask.c:1385
#9 0x00007f9eccb2581d in g_idle_dispatch (source=0x561b9f9f80e0, callback=0x7f9eccd29690 <complete_in_idle_cb>, user_data=0x561b9d208fc0) at ../glib/gmain.c:6274
idle_source = 0x561b9f9f80e0
again = <optimized out>
#10 0x00007f9eccb28eec in g_main_dispatch (context=0x561b9b77f8c0) at ../glib/gmain.c:3476
dispatch = 0x7f9eccb257f0 <g_idle_dispatch>
prev_source = 0x0
begin_time_nsec = 26587947113823
was_in_call = 0
user_data = 0x561b9d208fc0
callback = 0x7f9eccd29690 <complete_in_idle_cb>
cb_funcs = 0x7f9eccc14380 <g_source_callback_funcs>
cb_data = 0x7f9e640227e0
need_destroy = <optimized out>
source = 0x561b9f9f80e0
current = 0x561b9b73fd80
i = 0
#11 g_main_context_dispatch_unlocked (context=0x561b9b77f8c0) at ../glib/gmain.c:4284
#12 0x00007f9eccb83968 in g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x561b9b77f8c0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4349
max_priority = 300
timeout = 0
some_ready = 1
nfds = 4
allocated_nfds = <optimized out>
fds = 0x7f9e64021f60
begin_time_nsec = 26587947109713
#13 0x00007f9eccb26b63 in g_main_context_iteration (context=context@entry=0x561b9b77f8c0, may_block=may_block@entry=1) at ../glib/gmain.c:4414
retval = <optimized out>
#14 0x00007f9eccd5fadd in g_application_run (application=application@entry=0x561b9b7169f0, argc=argc@entry=2, argv=argv@entry=0x7ffd062a8808) at ../gio/gapplication.c:2577
arguments = 0x561b9b77f840
status = 0
context = 0x561b9b77f8c0
acquired_context = <optimized out>
__func__ = "g_application_run"
#15 0x0000561b99a1d014 in main (argc=2, argv=0x7ffd062a8808) at ../src/gs-main.c:50
status = 0
appinfo = 0x561b9b76ef90
application = 0x561b9b7169f0
debug = 0x561b9b70c7d0
It looks like the download failed (the local_error
is not NULL, while the input_stream
is NULL), still the code asserts the input_stream
is not NULL.