Crash in increase_completed_calendars()
I've twice seen this crash in GcalTimeline, which sometimes occurs after adding a new calendar using the add calendar dialog:
(gdb) bt full
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
set =
{__val = {0, 44793751, 140309241033472, 0, 1, 5543057849, 215, 140309239737495, 0, 140309241027136, 44793536, 2049, 2064, 140309241027040, 129, 124}}
pid = <optimized out>
tid = <optimized out>
#1 0x00007f9c4a5e7895 in __GI_abort () at abort.c:79
save_stage = 1
act =
{__sigaction_handler = {sa_handler = 0xe4, sa_sigaction = 0xe4}, sa_mask = {__val = {140309239739163, 48, 140727811158096, 3207704624, 4339989920, 0, 140307991625729, 140309260136153, 4539177835945982208, 45022624, 45022624, 45022624, 205, 4683888, 43102960, 4683888}}, sa_flags = 1248116620, sa_restorer = 0x2aefda0}
sigs = {__val = {32, 0 <repeats 15 times>}}
#2 0x00007f9c4b92ab8c in g_assertion_message
(domain=<optimized out>, file=<optimized out>, line=<optimized out>, func=0x477870 <__func__.10> "increase_completed_calendars", message=0x291b2f0 "assertion failed: (self->completed_calendars <= g_hash_table_size (self->calendars))") at ../glib/gtestutils.c:2914
lstr = "160\000\375\177\000\000\000\371\342\063\061f\376>\340\260\061\277\375\177\000\000\260uG\000\000\000\000"
s = 0x2aefda0 "\360\303<\002"
#3 0x00007f9c4b98884f in g_assertion_message_expr
(domain=0x4775a0 "GcalTimeline", file=0x4775f8 "../../../../../../Projects/gnome-calendar/src/core/gcal-timeline.c", line=160, func=0x477870 <__func__.10> "increase_completed_calendars", expr=<optimized out>)
at ../glib/gtestutils.c:2940
s = 0x291b2f0 "assertion failed: (self->completed_calendars <= g_hash_table_size (self->calendars))"
#4 0x00000000004459a9 in increase_completed_calendars (self=0xa55830 [GcalTimeline])
at ../../../../../../Projects/gnome-calendar/src/core/gcal-timeline.c:160
__func__ = "increase_completed_calendars"
#5 0x0000000000446776 in on_calendar_monitor_completed_cb
(monitor=0x2b56a20 [GcalCalendarMonitor], self=0xa55830 [GcalTimeline])
at ../../../../../../Projects/gnome-calendar/src/core/gcal-timeline.c:573
#6 0x00007f9c4aae4af6 in _g_closure_invoke_va
(closure=closure@entry=0xca9600, return_value=return_value@entry=0x0, instance=instance@entry=0x2b56a20, args=args@entry=0x7ffdbf31b380, n_params=0, param_types=0x0) at ../gobject/gclosure.c:873
marshal = 0x7f9c4aae6c60 <g_cclosure_marshal_VOID__VOIDv>
marshal_data = 0x0
in_marshal = 0
real_closure = 0xca95e0
__func__ = "_g_closure_invoke_va"
#7 0x00007f9c4aafd813 in g_signal_emit_valist
(instance=0x2b56a20, signal_id=<optimized out>, detail=0, var_args=var_args@entry=0x7ffdbf31b380)
at ../gobject/gsignal.c:3407
return_accu = 0x0
accu =
{g_type = 0x0, data = {{v_int = 0, v_uint = 0, v_long = 0, v_ulong = 0, v_int64 = 0, v_uint64 = 0, v_float = 0, v_double = 0, v_pointer = 0x0}, {v_int = 0, v_uint = 0, v_long = 0, v_ulong = 0, v_int64 = 0, v_uint64 = 0, v_float = 0, v_double = 0, v_pointer = 0x0}}}
accumulator = 0x0
emission =
{next = 0x0, instance = 0x2b56a20, ihint = {signal_id = 681, detail = 0, run_type = G_SIGNAL_RUN_FIRST}, state = EMISSION_RUN, chain_type = 0xc9bfc0 [GcalCalendarMonitor]}
signal_id = 681
--Type <RET> for more, q to quit, c to continue without paging--c
instance_type = 0xc9bfc0 [GcalCalendarMonitor]
emission_return = {g_type = 0x0, data = {{v_int = 0, v_uint = 0, v_long = 0, v_ulong = 0, v_int64 = 0, v_uint64 = 0, v_float = 0, v_double = 0, v_pointer = 0x0}, {v_int = 0, v_uint = 0, v_long = 0, v_ulong = 0, v_int64 = 0, v_uint64 = 0, v_float = 0, v_double = 0, v_pointer = 0x0}}}
rtype = 0x4 [void]
static_scope = 0
fastpath_handler = <optimized out>
closure = <optimized out>
run_type = <optimized out>
hlist = <optimized out>
l = <optimized out>
fastpath = 1
instance_and_params = <optimized out>
signal_return_type = <optimized out>
param_values = <optimized out>
node = <optimized out>
i = <optimized out>
n_params = <optimized out>
__func__ = "g_signal_emit_valist"
#8 0x00007f9c4aafdd93 in g_signal_emit (instance=<optimized out>, signal_id=<optimized out>, detail=<optimized out>) at ../gobject/gsignal.c:3554
var_args = {{gp_offset = 24, fp_offset = 48, overflow_arg_area = 0x7ffdbf31b460, reg_save_area = 0x7ffdbf31b3a0}}
#9 0x0000000000467051 in complete_in_idle_cb (user_data=0x2925d60) at ../../../../../../Projects/gnome-calendar/src/core/gcal-calendar-monitor.c:986
event = 0x0
self = 0x2b56a20 [GcalCalendarMonitor]
idle_data = 0x2925d60
__func__ = "complete_in_idle_cb"
#10 0x00007f9c4b95b44b in g_idle_dispatch (source=source@entry=0x2b66280, callback=0x466f9d <complete_in_idle_cb>, user_data=0x2925d60) at ../glib/gmain.c:5755
again = <optimized out>
#11 0x00007f9c4b95f76f in g_main_dispatch (context=0x970300) at ../glib/gmain.c:3309
dispatch = <optimized out>
prev_source = 0x0
was_in_call = <optimized out>
user_data = 0x2925d60
callback = 0x466f9d <complete_in_idle_cb>
cb_funcs = 0x7f9c4ba35280 <g_source_callback_funcs>
cb_data = 0x2b41140
need_destroy = <optimized out>
source = 0x2b66280
current = 0x9703e0
i = 36
__func__ = "g_main_dispatch"
#12 g_main_context_dispatch (context=0x970300) at ../glib/gmain.c:3974
#13 0x00007f9c4b95faf8 in g_main_context_iterate (context=context@entry=0x970300, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4047
max_priority = 2147483647
timeout = 378
some_ready = 1
nfds = 4
allocated_nfds = <optimized out>
fds = 0x1bab030
#14 0x00007f9c4b95fbc3 in g_main_context_iteration (context=context@entry=0x970300, may_block=may_block@entry=1) at ../glib/gmain.c:4108
retval = <optimized out>
#15 0x00007f9c4ac1186d in g_application_run (application=0x9611e0 [GcalApplication], argc=<optimized out>, argv=<optimized out>) at ../gio/gapplication.c:2559
arguments = 0x9c6b40
status = 0
context = 0x970300
acquired_context = <optimized out>
__func__ = "g_application_run"
#16 0x000000000042066e in main (argc=1, argv=0x7ffdbf31b768) at ../../../../../../Projects/gnome-calendar/src/main.c:39
app = 0x9611e0