Segfault when Copy Path to Clipboard
I am on Debian 12 with baobab 43.0. I am running Gnome shell in X11 (instead of Wayland). When I right click on a folder on the Pie chart on the right and select "Copy Path to Clipboard", baobab crashes.
Using GDB, the stack trace is:
(gdb) bt
#0 0x00005555555666ce in baobab_chart_copy_path (self=0x7fffe80168c0 [BaobabRingschart]) at src/baobab.p/baobab-chart.c:1592
#4 0x00007ffff7c57dbf in <emit signal ??? on instance 0x555555c735e0 [GSimpleAction]> (instance=instance@entry=0x555555c735e0, signal_id=<optimized out>, detail=detail@entry=0) at ../../../gobject/gsignal.c:3606
#1 0x00007ffff7c3e3b0 in g_closure_invoke (closure=0x55555591b570, return_value=return_value@entry=0x0, n_param_values=2, param_values=param_values@entry=0x7fffffffc7f0, invocation_hint=invocation_hint@entry=0x7fffffffc770) at ../../../gobject/gclosure.c:832
#2 0x00007ffff7c51076 in signal_emit_unlocked_R (node=node@entry=0x5555555ba620, detail=detail@entry=0, instance=instance@entry=0x555555c735e0, emission_return=emission_return@entry=0x0, instance_and_params=instance_and_params@entry=0x7fffffffc7f0) at ../../../gobject/gsignal.c:3796
#3 0x00007ffff7c57bf5 in g_signal_emit_valist (instance=<optimized out>, signal_id=<optimized out>, detail=<optimized out>, var_args=var_args@entry=0x7fffffffc990) at ../../../gobject/gsignal.c:3549
#5 0x00007ffff7d6d2bd in g_simple_action_activate (action=0x555555c735e0, parameter=0x0) at ../../../gio/gsimpleaction.c:227
#6 0x00007ffff7583f36 in () at /lib/x86_64-linux-gnu/libgtk-4.so.1
#7 0x00007ffff757fdf8 in () at /lib/x86_64-linux-gnu/libgtk-4.so.1
#11 0x00007ffff7c57dbf in <emit signal ??? on instance 0x555555ca9170 [GtkModelButton]> (instance=<optimized out>, signal_id=<optimized out>, detail=<optimized out>) at ../../../gobject/gsignal.c:3606
#8 0x00007ffff7c3e3b0 in g_closure_invoke (closure=0x555555cad3b0, return_value=return_value@entry=0x0, n_param_values=1, param_values=param_values@entry=0x7fffffffcc60, invocation_hint=invocation_hint@entry=0x7fffffffcbe0) at ../../../gobject/gclosure.c:832
#9 0x00007ffff7c51076 in signal_emit_unlocked_R (node=node@entry=0x5555558ad820, detail=detail@entry=0, instance=instance@entry=0x555555ca9170, emission_return=emission_return@entry=0x0, instance_and_params=instance_and_params@entry=0x7fffffffcc60) at ../../../gobject/gsignal.c:3796
#10 0x00007ffff7c57bf5 in g_signal_emit_valist (instance=<optimized out>, signal_id=<optimized out>, detail=<optimized out>, var_args=var_args@entry=0x7fffffffcde0) at ../../../gobject/gsignal.c:3549
#12 0x00007ffff72ba6e9 in () at /lib/x86_64-linux-gnu/libgtk-4.so.1
#13 0x00007ffff7c3e5a9 in _g_closure_invoke_va (closure=closure@entry=0x555555cab570, return_value=return_value@entry=0x0, instance=instance@entry=0x555555c8c670, args=args@entry=0x7fffffffd0e0, n_params=3, param_types=0x555555875c60) at ../../../gobject/gclosure.c:895
#14 0x00007ffff7c57bbf in g_signal_emit_valist (instance=0x555555c8c670, signal_id=111, detail=<optimized out>, var_args=var_args@entry=0x7fffffffd0e0) at ../../../gobject/gsignal.c:3456
#15 0x00007ffff7c57dbf in g_signal_emit (instance=<optimized out>, signal_id=<optimized out>, detail=<optimized out>) at ../../../gobject/gsignal.c:3606
#16 0x00007ffff7395006 in () at /lib/x86_64-linux-gnu/libgtk-4.so.1
#17 0x00007ffff7c41362 in g_cclosure_marshal_VOID__BOXEDv (closure=0x5555558b4710, return_value=<optimized out>, instance=0x555555c8c670, args=<optimized out>, marshal_data=<optimized out>, n_params=<optimized out>, param_types=0x5555558b4740) at ../../../gobject/gmarshal.c:1686
#18 0x00007ffff7c3e5a9 in _g_closure_invoke_va (closure=closure@entry=0x5555558b4710, return_value=return_value@entry=0x0, instance=instance@entry=0x555555c8c670, args=args@entry=0x7fffffffd460, n_params=1, param_types=0x5555558b4740) at ../../../gobject/gclosure.c:895
#19 0x00007ffff7c57bbf in g_signal_emit_valist (instance=0x555555c8c670, signal_id=106, detail=<optimized out>, var_args=var_args@entry=0x7fffffffd460) at ../../../gobject/gsignal.c:3456
#20 0x00007ffff7c57dbf in g_signal_emit (instance=<optimized out>, signal_id=<optimized out>, detail=<optimized out>) at ../../../gobject/gsignal.c:3606
#21 0x00007ffff73918d3 in () at /lib/x86_64-linux-gnu/libgtk-4.so.1
#22 0x00007ffff73931db in () at /lib/x86_64-linux-gnu/libgtk-4.so.1
#23 0x00007ffff73965a0 in () at /lib/x86_64-linux-gnu/libgtk-4.so.1
#24 0x00007ffff73609d6 in () at /lib/x86_64-linux-gnu/libgtk-4.so.1
#25 0x00007ffff750715c in () at /lib/x86_64-linux-gnu/libgtk-4.so.1
#26 0x00007ffff750eb94 in () at /lib/x86_64-linux-gnu/libgtk-4.so.1
#27 0x00007ffff73e33de in () at /lib/x86_64-linux-gnu/libgtk-4.so.1
#28 0x00007ffff73e3a7b in () at /lib/x86_64-linux-gnu/libgtk-4.so.1
#29 0x00007ffff74126cc in () at /lib/x86_64-linux-gnu/libgtk-4.so.1
#30 0x00007ffff760f877 in () at /lib/x86_64-linux-gnu/libgtk-4.so.1
#31 0x00007ffff7688bdf in () at /lib/x86_64-linux-gnu/libgtk-4.so.1
#35 0x00007ffff7c57dbf in <emit signal ??? on instance 0x555555d293c0 [GdkX11Popup]> (instance=<optimized out>, signal_id=<optimized out>, detail=<optimized out>) at ../../../gobject/gsignal.c:3606
#32 0x00007ffff7c3e3b0 in g_closure_invoke (closure=0x55555820f500, return_value=return_value@entry=0x7fffffffda70, n_param_values=2, param_values=param_values@entry=0x7fffffffdad0, invocation_hint=invocation_hint@entry=0x7fffffffda50) at ../../../gobject/gclosure.c:832
#33 0x00007ffff7c51076 in signal_emit_unlocked_R (node=<optimized out>, detail=detail@entry=0, instance=instance@entry=0x555555d293c0, emission_return=emission_return@entry=0x7fffffffdbc0, instance_and_params=instance_and_params@entry=0x7fffffffdad0) at ../../../gobject/gsignal.c:3796
#34 0x00007ffff7c5742d in g_signal_emit_valist (instance=<optimized out>, signal_id=<optimized out>, detail=<optimized out>, var_args=var_args@entry=0x7fffffffdc70) at ../../../gobject/gsignal.c:3559
#36 0x00007ffff768c415 in () at /lib/x86_64-linux-gnu/libgtk-4.so.1
#37 0x00007ffff765a95a in () at /lib/x86_64-linux-gnu/libgtk-4.so.1
#38 0x00007ffff7eb97a9 in g_main_dispatch (context=0x5555555bfd10) at ../../../glib/gmain.c:3454
#39 g_main_context_dispatch (context=context@entry=0x5555555bfd10) at ../../../glib/gmain.c:4172
#40 0x00007ffff7eb9a38 in g_main_context_iterate (context=context@entry=0x5555555bfd10, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4248
#41 0x00007ffff7eb9acc in g_main_context_iteration (context=context@entry=0x5555555bfd10, may_block=may_block@entry=1) at ../../../glib/gmain.c:4313
#42 0x00007ffff7d6465d in g_application_run (application=application@entry=0x5555555b9110 [BaobabApplication], argc=argc@entry=2, argv=argv@entry=0x7fffffffe078) at ../../../gio/gapplication.c:2573
#43 0x0000555555562e3b in _vala_main (args_length1=2, args=0x7fffffffe078) at src/baobab.p/main.c:49
#44 main (argc=2, argv=0x7fffffffe078) at src/baobab.p/main.c:58
(gdb)
This bug is reproducible most of the time. I also see similar bug when I click other buttons (e.g. "Open Folder" and "Move to Trash").
However, when I right click on a folder in the table on the left and select an option (e.g. "Copy Path to Clipboard"), I do not see this bug.
Edited by lxylxy123456