gtk_menu_tracker_add_items can result in infinite recursion that eventually crashes application.
The bug is that Gimp crashes with a segfalt shortly after showing the splash screen. It's a bug that's highly situational. It only shows up on my development machine when I run a locally built version of gimp, e.g. the dev flatpak works fine. As do a build using the same procedures and configuration (Ubuntu 24.04) on Virtual Box.
Steps to reproduce
- Build Gimp from master on Ubuntu 24.04 (Wayland) using GIMP_PREFIX to install to a local installation (i.e. not installing to shared /usr). Use as much of the stock configuration as possible. This will result in only having to compile GEGL for Gimp.
- Run gimp with the appropriate path variables set
Version information
- GTK: 3.24.41-4ubuntu1
- Ubuntu: 24.04, Wayland (x.org works fine)
Warnings
Gimp emits a lot of warnings on startup, it's still an experimental release. But nothing that seems specific to this bug.
Backtrace
The back-trace is extremely long, seemingly indicating some sort of run-away recursion.
The issue seems to be related to: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1036775
Edited by Earl Ducaine