Segfault crash when clicking any cell in the month view while the searchbar is open and focused (segmentation fault in gcal_event_widget_clone)
This is closely related (and essentially the same crash) to issue #757, but here I am triggering it from a different context, and 100% reliably, whether that's with version 43.1 or the git version.
The issue is still GcalViewHeader
being made of jell-o, see this comment: #757 (comment 1687007) ; trying to create an event (as a click in a cell in the month view would do) triggers updates to all views, hence why the week view crash happens even if you do this in month view.
Filing it here to avoid conflating things too much, and so that this can be tested independently from other semi-reliable ways. As Georges said, this is a complicated issue, there are many paths to reproduce it, and we're still not sure what's the root cause.
To reproduce
- Click the search button to reveal the search entry widget
- Click in an empty cell of the month view
- Sit back and watch the fireworks
This will NOT happen if you are in week view and click a cell of the week view (or its header area) while the searchentry is focused. It seems it only happens in month view.
Debug output
Attached is the gdb output from version 43.1 (as packaged by Fedora 37): gnome-calendar-crash-on-clicking-monthview-cell-from-searchbar.txt