Printer panel connection_test_cb is missing cancellation check
SSIA.
Using control-center-3.28.0-1.fc28.x86_64
Core was generated by `gnome-control-center color'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x0000561678eca440 in connection_test_cb () at ../panels/printers/cc-printers-panel.c:1251
1251 priv->cups_status_check_id =
[Current thread is 1 (Thread 0x7fbfdef7cb00 (LWP 10646))]
(gdb) bt
#0 0x0000561678eca440 in connection_test_cb (source_object=<optimized out>, result=<optimized out>, user_data=0x56167b1e9570) at ../panels/printers/cc-printers-panel.c:1251
#1 0x00007fbfdeaedce4 in g_task_return_now (task=0x56167b218590 [GTask]) at gtask.c:1148
#2 0x00007fbfdeaedd1d in complete_in_idle_cb (task=task@entry=0x56167b218590) at gtask.c:1162
#3 0x00007fbfde53e0fb in g_idle_dispatch (source=0x56167b225f20, callback=0x7fbfdeaedd10 <complete_in_idle_cb>, user_data=0x56167b218590) at gmain.c:5535
#4 0x00007fbfde5417dd in g_main_dispatch (context=0x56167aeeb220) at gmain.c:3177
#5 0x00007fbfde5417dd in g_main_context_dispatch (context=context@entry=0x56167aeeb220) at gmain.c:3830
#6 0x00007fbfde541ba8 in g_main_context_iterate (context=context@entry=0x56167aeeb220, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3903
#7 0x00007fbfde541c40 in g_main_context_iteration (context=context@entry=0x56167aeeb220, may_block=may_block@entry=1) at gmain.c:3964
#8 0x00007fbfdeb04675 in g_application_run (application=0x56167af23a60 [CcApplication], argc=argc@entry=2, argv=argv@entry=0x7ffed5a42d68) at gapplication.c:2482
#9 0x0000561678e7bcc5 in main (argc=<optimized out>, argv=<optimized out>) at ../shell/main.c:57
#10 0x00007fbfd6f081bb in __libc_start_main (main=0x561678e7bc40 <main>, argc=2, argv=0x7ffed5a42d68, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffed5a42d58) at ../csu/libc-start.c:308
#11 0x0000561678e7be8a in _start ()
(gdb) bt full
#0 0x0000561678eca440 in connection_test_cb (source_object=<optimized out>, result=<optimized out>, user_data=0x56167b1e9570) at ../panels/printers/cc-printers-panel.c:1251
priv = 0x4f4f4f4f4f4f4f4f
self = 0x56167b1e9570
success = 0
cups = 0x56167b217d30 [PpCups]
error = 0x56167b32ec10
#1 0x00007fbfdeaedce4 in g_task_return_now (task=0x56167b218590 [GTask]) at gtask.c:1148
#2 0x00007fbfdeaedd1d in complete_in_idle_cb (task=task@entry=0x56167b218590) at gtask.c:1162
#3 0x00007fbfde53e0fb in g_idle_dispatch (source=0x56167b225f20, callback=0x7fbfdeaedd10 <complete_in_idle_cb>, user_data=0x56167b218590) at gmain.c:5535
again = 33
#4 0x00007fbfde5417dd in g_main_dispatch (context=0x56167aeeb220) at gmain.c:3177
dispatch = 0x7fbfde53e0e0 <g_idle_dispatch>
prev_source = 0x0
was_in_call = 0
user_data = 0x56167b218590
callback = 0x7fbfdeaedd10 <complete_in_idle_cb>
cb_funcs = 0x7fbfde80a280 <g_source_callback_funcs>
cb_data = 0x56167b225fc0
need_destroy = 1
source = 0x56167b225f20
current = 0x56167afd0f40
i = 6
__func__ = "g_main_dispatch"
#5 0x00007fbfde5417dd in g_main_context_dispatch (context=context@entry=0x56167aeeb220) at gmain.c:3830
#6 0x00007fbfde541ba8 in g_main_context_iterate (context=context@entry=0x56167aeeb220, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3903
max_priority = 0
timeout = 0
some_ready = 1
nfds = <optimized out>
allocated_nfds = 3
fds = 0x56167af6dda0
#7 0x00007fbfde541c40 in g_main_context_iteration (context=context@entry=0x56167aeeb220, may_block=may_block@entry=1) at gmain.c:3964
retval = <optimized out>
#8 0x00007fbfdeb04675 in g_application_run (application=0x56167af23a60 [CcApplication], argc=argc@entry=2, argv=argv@entry=0x7ffed5a42d68) at gapplication.c:2482
arguments = 0x56167af6dda0
status = 0
context = 0x56167aeeb220
acquired_context = <optimized out>
__func__ = "g_application_run"
#9 0x0000561678e7bcc5 in main (argc=<optimized out>, argv=<optimized out>) at ../shell/main.c:57
application = 0x56167af23a60
#10 0x00007fbfd6f081bb in __libc_start_main (main=0x561678e7bc40 <main>, argc=2, argv=0x7ffed5a42d68, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffed5a42d58) at ../csu/libc-start.c:308
result = <optimized out>
unwind_buf = {
cancel_jmp_buf = {{
jmp_buf = {0, 8213240163582014786, 94654517722720, 140732482727264, 0, 0, 2461798629686834498, 2497270621336040770},
mask_was_saved = 0
}},
priv = {
pad = {0x0, 0x0, 0x7ffed5a42d80, 0x7fbfdf029130},
data = {
prev = 0x0,
cleanup = 0x0,
canceltype = -710660736
}
}
}
not_first_call = <optimized out>
#11 0x0000561678e7be8a in _start ()
Edited by Benjamin Berg