Segfault When closing an image
Environment/Versions
- GIMP version:2.10.36
- Package: flatpak
- Operating System: Linux, KDE Neon
Description of the bug
This is a recoverable segfault after the export of an image, which appears when closing the application. The segfault occurs when the application is being closed, not during export or another operation. The exported image does save as expected.
Initially I thought it might be related to me using Spectacle to capture the screenshot and launch Gimp to edit it since the image is stored in /tmp. I've tested with other images in /tmp and moved the images (all PNG's) to within my home folder, changing my permissions and ownership to sane values (750, my user) ruling out location and permissions.
I've also since discovered that no operation needs to written.
Reproduction
Is the bug reproducible?
Reproduction steps:
- Open a supported image format
- Select a region, copy
- Close the images by any means (File menu, window buttons, keyboard shortcuts)--you don't have to close the application, only the open images, discarding changes
…
Expected result:
The application should close without error or malfunction.
Actual result:
The application crashes with error, but is able to recover if it is closed and then started again; however, the issue will continue to occur ad infinitum.
If you have a backtrace for a crash or a warning, paste it here.
GNU Image Manipulation Program version 2.10.36
git-describe: GIMP_2_10_36
Build: org.gimp.GIMP.flatpak.stable rev 0 for linux
# C compiler #
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-unknown-linux-gnu/13.2.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/bin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --enable-deterministic-archives --enable-shared --build=x86_64-bootstrapper-linux-gnu --host=x86_64-unknown-linux-gnu lt_cv_sys_lib_dlsearch_path_spec=/usr/lib/x86_64-linux-gnu --target=x86_64-unknown-linux-gnu --disable-multilib --enable-multiarch --disable-bootstrap --with-build-sysroot=/cross-installation --enable-languages=c,c++,fortran,objc,obj-c++ --enable-default-pie --enable-default-ssp --with-isl --disable-libssp --enable-linker-build-id --disable-libstdcxx-filesystem-ts --enable-cet host_configargs=lt_cv_sys_lib_dlsearch_path_spec=/usr/lib/x86_64-linux-gnu target_configargs=lt_cv_sys_lib_dlsearch_path_spec=/usr/lib/x86_64-linux-gnu --with-tune=generic
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 13.2.0 (GCC)
# Libraries #
using babl version 0.1.106 (compiled against version 0.1.106)
using GEGL version 0.4.46 (compiled against version 0.4.46)
using GLib version 2.80.0 (compiled against version 2.80.0)
using GdkPixbuf version 2.42.10 (compiled against version 2.42.10)
using GTK+ version 2.24.32 (compiled against version 2.24.32)
using Pango version 1.52.1 (compiled against version 1.52.1)
using Fontconfig version 2.15.0 (compiled against version 2.15.0)
using Cairo version 1.18.0 (compiled against version 1.18.0)
# Flatpak info #
[Application]
name=org.gimp.GIMP
runtime=runtime/org.gnome.Platform/x86_64/46
[Instance]
instance-id=4144246410
instance-path=/home/sseago/.var/app/org.gimp.GIMP
app-path=/home/sseago/.local/share/flatpak/app/org.gimp.GIMP/x86_64/stable/519b656f8dc36e032947dc05079a54f82d2d8f8014f544f2077de7a73d11bf5e/files
app-commit=519b656f8dc36e032947dc05079a54f82d2d8f8014f544f2077de7a73d11bf5e
runtime-path=/home/sseago/.local/share/flatpak/runtime/org.gnome.Platform/x86_64/46/9a6b5e332285a0b9b455a9f3c1589ee85ef2b25ac0f2fa7b63ac90c679ae4756/files
runtime-commit=9a6b5e332285a0b9b455a9f3c1589ee85ef2b25ac0f2fa7b63ac90c679ae4756
runtime-extensions=org.gnome.Platform.Locale=e40b0c533ad32c4dffd0e90ad263bfa632630ccf692c06261b00b6d525daddf2;org.freedesktop.Platform.GL.default=9fd640724262c8b645692cadcff5a43e698b3a08f5d131711a08d089b67d0c7d;org.gtk.Gtk3theme.Breeze=187327b117e0371a906778babcba9fb2476ef33f5d9cb98784f47ca273af095b;org.gtk.Gtk3theme.Pop=1eac06f6a58047fd6717a13f12b744ea59e6f9829fed02d856a5efb998b318a5;org.freedesktop.Platform.VAAPI.Intel=79019aa750ebe1785498b220b3610e3956a96a39effc5d2fe20db6bc7db1e7a8;org.freedesktop.Platform.openh264=50b21d3fc221e861a8573f642bd3e582453b68c8be9962614461ee4d1b0ea38e;org.freedesktop.Platform.GL.default=995cd00d78b0a21218da9d054f3476f88a558c45e9caaf0758feed1ab851d2f9
branch=stable
arch=x86_64
flatpak-version=1.12.7
session-bus-proxy=true
system-bus-proxy=true
[Context]
shared=network;ipc;
sockets=x11;
devices=dri;
filesystems=xdg-config/GIMP;xdg-config/gtk-3.0;/tmp;xdg-run/gvfsd;host;xdg-run/gvfs;
[Session Bus Policy]
org.kde.kwin.Screenshot=talk
org.gtk.vfs.*=talk
org.gnome.Shell.Screenshot=talk
org.freedesktop.FileManager1=talk
[Environment]
ALSA_CONFIG_PATH=/usr/share/alsa/alsa-flatpak.conf
GI_TYPELIB_PATH=/app/lib/girepository-1.0
GST_PLUGIN_SYSTEM_PATH=/app/lib/gstreamer-1.0:/usr/lib/extensions/gstreamer-1.0:/usr/lib/x86_64-linux-gnu/gstreamer-1.0
XDG_DATA_DIRS=/app/share:/usr/share:/usr/share/runtime/share:/run/host/user-share:/run/host/share
ALSA_CONFIG_DIR=/usr/share/alsa
__EGL_EXTERNAL_PLATFORM_CONFIG_DIRS=/etc/egl/egl_external_platform.d:/usr/lib/x86_64-linux-gnu/GL/egl/egl_external_platform.d:/usr/share/egl/egl_external_platform.d
PYTHONUSERBASE=/var/data/python
fatal error: Segmentation fault
Stack trace:
/app/lib/libgimpbase-2.0.so.0(gimp_stack_trace_print+0x4be)[0x75201c1ba38e]
gimp-2.10(+0xfa06e)[0x5fbc64e7d06e]
gimp-2.10(+0xfa65c)[0x5fbc64e7d65c]
gimp-2.10(+0xfacce)[0x5fbc64e7dcce]
/usr/lib/x86_64-linux-gnu/libc.so.6(+0x3ee80)[0x75201b362e80]
gimp-2.10(gimp_message_box_set_primary_text+0x82)[0x5fbc6502b382]
gimp-2.10(+0x14d277)[0x5fbc64ed0277]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_closure_invoke+0x14a)[0x75201b68e6fa]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x2e3dc)[0x75201b6a43dc]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x2fe61)[0x75201b6a5e61]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit_valist+0x41)[0x75201b6abe31]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit+0x93)[0x75201b6abef3]
gimp-2.10(gimp_container_remove+0xf3)[0x5fbc65172103]
gimp-2.10(+0x46e7cc)[0x5fbc651f17cc]
gimp-2.10(gimp_container_clear+0x64)[0x5fbc65171c74]
gimp-2.10(+0x3f02f5)[0x5fbc651732f5]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_object_unref+0x7e)[0x75201b69512e]
gimp-2.10(+0x14d1fe)[0x5fbc64ed01fe]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x1cdd7)[0x75201b692dd7]
/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x3dd37)[0x75201b719d37]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x1d20b)[0x75201b69320b]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_object_run_dispose+0x34)[0x75201b696d94]
gimp-2.10(+0x14d18f)[0x5fbc64ed018f]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_closure_invoke+0x14a)[0x75201b68e6fa]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x2e3dc)[0x75201b6a43dc]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x2fe61)[0x75201b6a5e61]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit_valist+0x41)[0x75201b6abe31]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit+0x93)[0x75201b6abef3]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_closure_invoke+0x14a)[0x75201b68e6fa]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x2e3dc)[0x75201b6a43dc]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x2fe61)[0x75201b6a5e61]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit_valist+0x41)[0x75201b6abe31]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit+0x93)[0x75201b6abef3]
/app/lib/libgtk-x11-2.0.so.0(+0xa2c09)[0x75201c2a2c09]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_closure_invoke+0x14a)[0x75201b68e6fa]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x2e520)[0x75201b6a4520]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x2fe61)[0x75201b6a5e61]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit_valist+0x41)[0x75201b6abe31]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit+0x93)[0x75201b6abef3]
/app/lib/libgtk-x11-2.0.so.0(+0xa19b9)[0x75201c2a19b9]
/app/lib/libgtk-x11-2.0.so.0(+0x1553f3)[0x75201c3553f3]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_closure_invoke+0x14a)[0x75201b68e6fa]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x2ea68)[0x75201b6a4a68]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x2f661)[0x75201b6a5661]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit_valist+0x41)[0x75201b6abe31]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit+0x93)[0x75201b6abef3]
/app/lib/libgtk-x11-2.0.so.0(+0x280dd4)[0x75201c480dd4]
/app/lib/libgtk-x11-2.0.so.0(gtk_propagate_event+0x15b)[0x75201c3534cb]
/app/lib/libgtk-x11-2.0.so.0(gtk_main_do_event+0x31b)[0x75201c35383b]
/app/lib/libgdk-x11-2.0.so.0(+0x67fe8)[0x75201c6f2fe8]
/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x60647)[0x75201b73c647]
/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x62767)[0x75201b73e767]
/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_loop_run+0x127)[0x75201b73f117]
gimp-2.10(app_run+0x2ed)[0x5fbc64e7c9fd]
gimp-2.10(main+0x36f)[0x5fbc64e7c31f]
/usr/lib/x86_64-linux-gnu/libc.so.6(+0x2808a)[0x75201b34c08a]
/usr/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x8b)[0x75201b34c14b]
gimp-2.10(_start+0x25)[0x5fbc64e7c4c5]