GIMP crashes on right-click in Paths tab menu
Environment/Versions
- GIMP version: d46d2693
- Package: Built from source
- Operating System: Linux
Description of the bug
After d46d2693 I can crash GIMP just by right-clicking in the Paths tab menu. Not occurring in the commit before that, so looks like some unexpected fallout from the vectors to paths name change. @Jehan
Reproduction
Is the bug reproducible? Always
Reproduction steps:
- Open an image
- Right-click in Paths tab menu
- GIMP crashes
…
Expected result: Right-click menu to open in Paths
Actual result: GIMP crashes
Additional information
If you have a backtrace for a crash or a warning, paste it here.
GNU Image Manipulation Program version 2.99.19
git-describe: GIMP_2_99_18-1121-gb11ea66cf0
Build: unknown rev 0 for linux
# C compiler #
Using built-in specs.
COLLECT_GCC=/usr/bin/cc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-linux-gnu/13/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 13.3.0-3' --with-bugurl=file:///usr/share/doc/gcc-13/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-13 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/libexec --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-libstdcxx-backtrace --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --enable-cet --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/reproducible-path/gcc-13-13.3.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/reproducible-path/gcc-13-13.3.0/debian/tmp-gcn/usr --enable-offload-defaulted --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=3
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.3.0 (Debian 13.3.0-3)
# Libraries #
using babl version 0.1.109 (compiled against version 0.1.109)
using GEGL version 0.4.49 (compiled against version 0.4.49)
using GLib version 2.80.4 (compiled against version 2.80.4)
using GdkPixbuf version 2.42.12 (compiled against version 2.42.12)
using GTK+ version 3.24.43 (compiled against version 3.24.43)
using Pango version 1.54.0 (compiled against version 1.54.0)
using Fontconfig version 2.15.0 (compiled against version 2.15.0)
using Cairo version 1.18.0 (compiled against version 1.18.0)
fatal error: Segmentation fault
Stack trace:
# Stack traces obtained from PID 44356 - Thread 44356 #
[New LWP 45013]
[New LWP 44990]
[New LWP 44380]
[New LWP 44377]
[New LWP 44375]
[New LWP 44374]
[New LWP 44373]
[New LWP 44372]
[New LWP 44371]
[New LWP 44370]
[New LWP 44369]
[New LWP 44368]
[New LWP 44367]
[New LWP 44366]
[New LWP 44365]
[New LWP 44364]
[New LWP 44363]
[New LWP 44362]
[New LWP 44361]
[New LWP 44360]
[New LWP 44359]
[New LWP 44358]
[New LWP 44357]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007ffbd7ef813c in __GI___libc_read (nbytes=255, buf=0x7ffd8bfc00b0, fd=25) at ../sysdeps/unix/sysv/linux/read.c:26
Id Target Id Frame
* 1 Thread 0x7ffbd57e41c0 (LWP 44356) "gimp-2.99" 0x00007ffbd7ef813c in __GI___libc_read (nbytes=255, buf=0x7ffd8bfc00b0, fd=25) at ../sysdeps/unix/sysv/linux/read.c:26
2 Thread 0x7ffb994006c0 (LWP 45013) "swap writer" syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
3 Thread 0x7ffb80c006c0 (LWP 44990) "dconf worker" 0x00007ffbd7ef7b5f in __GI___poll (fds=0x7ffb20000b90, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
4 Thread 0x7ffb88a006c0 (LWP 44380) "gimp-2.99" syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
5 Thread 0x7ffb8be006c0 (LWP 44377) "gimp-2.99" syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
6 Thread 0x7ffb99e006c0 (LWP 44375) "async" syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
7 Thread 0x7ffbb7e006c0 (LWP 44374) "worker" syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
8 Thread 0x7ffbbcc006c0 (LWP 44373) "worker" syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
9 Thread 0x7ffbbd6006c0 (LWP 44372) "worker" syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
10 Thread 0x7ffbbe0006c0 (LWP 44371) "worker" syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
11 Thread 0x7ffbbea006c0 (LWP 44370) "worker" syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
12 Thread 0x7ffbbf4006c0 (LWP 44369) "worker" syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
13 Thread 0x7ffbbfe006c0 (LWP 44368) "worker" syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
14 Thread 0x7ffbc8c006c0 (LWP 44367) "worker" syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
15 Thread 0x7ffbc96006c0 (LWP 44366) "worker" syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
16 Thread 0x7ffbca0006c0 (LWP 44365) "worker" syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
17 Thread 0x7ffbcaa006c0 (LWP 44364) "worker" syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
18 Thread 0x7ffbcb4006c0 (LWP 44363) "worker" syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
19 Thread 0x7ffbcbe006c0 (LWP 44362) "worker" syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
20 Thread 0x7ffbd10006c0 (LWP 44361) "worker" syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
21 Thread 0x7ffbd1a006c0 (LWP 44360) "worker" syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
22 Thread 0x7ffbd24006c0 (LWP 44359) "gdbus" 0x00007ffbd7ef7b5f in __GI___poll (fds=0x7ffbc0006480, nfds=8, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
23 Thread 0x7ffbd2e006c0 (LWP 44358) "gmain" 0x00007ffbd7ef7b5f in __GI___poll (fds=0x558d1ec855b0, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
24 Thread 0x7ffbd38006c0 (LWP 44357) "pool-spawner" syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#0 0x00007ffbd7ef813c in __GI___libc_read (nbytes=255, buf=0x7ffd8bfc00b0, fd=25) at ../sysdeps/unix/sysv/linux/read.c:26
sc_ret = -512
sc_cancel_oldtype = 0
sc_ret = <optimized out>
sc_ret = <optimized out>
__arg2 = <optimized out>
_a3 = <optimized out>
_a1 = <optimized out>
resultvar = <optimized out>
__arg3 = <optimized out>
__arg1 = <optimized out>
_a2 = <optimized out>
#1 __GI___libc_read (fd=25, buf=buf@entry=0x7ffd8bfc00b0, nbytes=nbytes@entry=255) at ../sysdeps/unix/sysv/linux/read.c:24
#2 0x00007ffbd99826db in gimp_stack_trace_print (prog_name=<optimized out>, stream=stream@entry=0x558d1f0945b0, trace=trace@entry=0x0) at ../libgimpbase/gimputils.c:1394
status = 0
stack_printed = 0
gtrace = 0x0
gimp_pid = "44356\000\000\000\000\000\000\000\000\000\000"
buffer = '\000' <repeats 17 times>, "Thaw the image's undo stack.\000th", '\000' <repeats 33 times>, "TDM[\fXDI\fEAMKI\v_\fYBHC\f_XMOG\002\000XD", '\000' <repeats 143 times>
read_n = <optimized out>
sync_fd = {23, 24}
out_fd = {25, 26}
fork_pid = <optimized out>
pid = 44356
eintr_count = 0
tid = <optimized out>
#3 0x0000558d05a04800 in gimp_eek (reason=reason@entry=0x558d05c81d52 "fatal error", message=<optimized out>, use_handler=use_handler@entry=1) at ../app/errors.c:355
fd = 0x558d1f0945b0
has_backtrace = 1
pid = "44356\000\000\000\213.\000\000\000\000\000"
gimpdebug = 0x558d05cfd888 "/usr/local/libexec/gimp-debug-tool-2.99"
args = {0x558d05cfd888 "/usr/local/libexec/gimp-debug-tool-2.99", 0x558d1ee83ba0 "gimp-2.99", 0x7ffd8bfc0540 "44356", 0x558d05c81d52 "fatal error", 0x558d23256c6e "Segmentation fault", 0x558d1ee83730 "/home/anders/.config/GIMP/2.99/CrashLog/gimp-crash-1723038699.txt", 0x0, 0x7ffd8bfc0550 "0", 0x0}
timestamp = "0\000\306\036\215U\000\000\000\000\000\000\000\000\000"
config = <optimized out>
eek_handled = 0
debug_policy = GIMP_DEBUG_POLICY_WARNING
iter = <optimized out>
num_idx = <optimized out>
i = 0
#4 0x0000558d05a04df8 in gimp_fatal_error (message=<optimized out>) at ../app/errors.c:206
#5 0x0000558d05a07769 in gimp_sigfatal_handler (sig_num=11) at ../app/signals.c:196
#6 0x00007ffbd7e3d590 in <signal handler called> () at /lib/x86_64-linux-gnu/libc.so.6
#7 0x00007ffbd911df14 in g_menu_model_get_n_items () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#8 0x0000558d05b58d15 in gimp_menu_shell_append_model_drop_top (model=0x0, shell=0x558d213f7400) at ../app/widgets/gimpmenushell.c:308
priv = 0x558d240ca2e0
submenu = 0x0
priv = <optimized out>
submenu = <optimized out>
__func__ = "gimp_menu_shell_append_model_drop_top"
_g_boolean_var_13 = <optimized out>
__inst = <optimized out>
__t = <optimized out>
__r = <optimized out>
label = <optimized out>
path_prefix = <optimized out>
_pp = <optimized out>
_ptr = <optimized out>
#9 gimp_menu_shell_fill (shell=0x558d213f7400, model=0x0, drop_top_submenu=<optimized out>) at ../app/widgets/gimpmenushell.c:114
__func__ = "gimp_menu_shell_fill"
#10 0x0000558d05b35f24 in gimp_ui_manager_ui_popup_at_pointer (manager=0x558d246d6250, ui_path=<optimized out>, attached_widget=<optimized out>, trigger_event=0x558d2160bf90, popdown_func=0x0, popdown_data=0x0) at ../app/widgets/gimpuimanager.c:850
model = <optimized out>
menu = 0x558d213f7400
__func__ = "gimp_ui_manager_ui_popup_at_pointer"
#11 0x0000558d05af8666 in gimp_editor_popup_menu_at_pointer (editor=editor@entry=0x558d246cda30, trigger_event=trigger_event@entry=0x558d2160bf90) at ../app/widgets/gimpeditor.c:481
__func__ = "gimp_editor_popup_menu_at_pointer"
#12 0x0000558d05b4af4b in gimp_container_tree_view_button (widget=0x558d2470c340, bevent=0x558d2160bf90, tree_view=0x558d246cda30) at ../app/widgets/gimpcontainertreeview.c:1678
container_view = 0x558d246cda30
column = 0x0
path = 0x0
handled = 1
toggled_cell = 0x0
clicked_cell = 0x0
#13 0x00007ffbd8290cba in ??? () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#14 0x00007ffbd989c730 in g_closure_invoke () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#15 0x00007ffbd98b087c in ??? () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#16 0x00007ffbd98b1ad1 in ??? () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#17 0x00007ffbd98b7f06 in g_signal_emit_valist () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#18 0x00007ffbd98b7fc3 in g_signal_emit () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#19 0x00007ffbd854a324 in ??? () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#20 0x00007ffbd83fc83e in ??? () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#21 0x00007ffbd83fe4ae in gtk_main_do_event () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#22 0x00007ffbd8a94a99 in ??? () at /lib/x86_64-linux-gnu/libgdk-3.so.0
#23 0x00007ffbd8aea8c6 in ??? () at /lib/x86_64-linux-gnu/libgdk-3.so.0
#24 0x00007ffbd93c8e2f in ??? () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007ffbd93caeb7 in ??? () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007ffbd93cb4d0 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007ffbd911450d in g_application_run () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#28 0x0000558d05a0432a in app_run (full_prog_name=0x558d1ec51890 "gimp-2.99", filenames=<optimized out>, alternate_system_gimprc=alternate_system_gimprc@entry=0x0, alternate_gimprc=alternate_gimprc@entry=0x0, session_name=<optimized out>, batch_interpreter=<optimized out>, batch_commands=0x0, quit=0, as_new=0, no_interface=0, no_data=<optimized out>, no_fonts=<optimized out>, no_splash=0, be_verbose=0, use_shm=1, use_cpu_accel=1, console_messages=0, use_debug_handler=0, show_playground=1, show_debug_menu=1, stack_trace_mode=GIMP_STACK_TRACE_QUERY, pdb_compat_mode=<optimized out>, backtrace_file=0x558d1ec6daf0 "/home/anders/.config/GIMP/2.99/CrashLog/gimp-crash-1723038699.txt") at ../app/app.c:317
gimp = 0x558d1edebee0
app = 0x558d1ee62e50
default_folder = 0x0
gimpdir = 0x558d1edadee0
abort_message = <optimized out>
retval = 0
__func__ = "app_run"
#29 0x0000558d05844dc7 in main (argc=<optimized out>, argv=<optimized out>) at ../app/main.c:786
context = 0x558d1ec76d90
error = 0x0
abort_message = <optimized out>
basename = <optimized out>
system_gimprc_file = 0x0
user_gimprc_file = 0x0
gimp_group = <optimized out>
backtrace_file = 0x558d1ec6daf0 "/home/anders/.config/GIMP/2.99/CrashLog/gimp-crash-1723038699.txt"
retval = <optimized out>
i = <optimized out>
[Inferior 1 (process 44356) detached]