Segfault when setting the date the 31st and reaching a month with less days with the arrow
Description:
Gnome-calendar crashes during the use of the pop-up window for adding/editing an event, if you select the 31st of the month (and the 29th, 30th in the case of February) and you use the left or right arrow to select a month and reach a month with less days.
Logs:
(gnome-calendar:14073): GLib-CRITICAL **: g_date_time_get_ymd: assertion 'datetime != NULL' failed (gnome-calendar:14073): GLib-CRITICAL **: g_date_time_ref: assertion 'datetime != NULL' failed (gnome-calendar:14073): GLib-CRITICAL **: g_date_time_get_ymd: assertion 'datetime != NULL' failed (gnome-calendar:14073): GLib-CRITICAL **: g_date_time_get_ymd: assertion 'datetime != NULL' failed (gnome-calendar:14073): GLib-CRITICAL **: g_date_time_get_ymd: assertion 'datetime != NULL' failed (gnome-calendar:14073): GLib-CRITICAL **: g_date_time_unref: assertion 'datetime != NULL' failed (gnome-calendar:14073): GLib-CRITICAL **: g_date_time_ref: assertion 'datetime != NULL' failed (gnome-calendar:14073): GLib-CRITICAL **: g_date_time_get_ymd: assertion 'datetime != NULL' failed [1] 14073 segmentation fault (core dumped) gnome-calendar
Additional info:
- Linux flavour Archlinux
- package version(s) 3.26.2-1
Steps to reproduce:
When in gnome-calendar I click to "Add Event" or "Edit event" on a date. A pop-up appears, there you can select the date. The behaviour I will describe makes the system crash when editing the start date or the stop date. Get the "Add Event..", "Edit details" pop up. First select in the field (start or stop date field) a date being the 28th, 29th, 30th or 31st of the month and after February (input it with the keyboard or select it with the selection rectangle under the date field). Then use this selection rectangle that appears under the date field to select a previous month (where you can pick the day and change the month or year thanks to the arrows). Try to reach February aaaaand segfault.
You can reproduce the crash if you select the 29th, 30th, or 31th of January and instead choose the next month with the arrow.
Reproduce the crash too if you select the 31st of the month and reach a 30 days month.
Link to original bug (#790108)
Design Tasks
TODO
Development Tasks
TODO
QA Tasks
TODO