Double free in thunar_list_model_files_changed
Version information
git master 4.19.3+168+g649f8ce34
Steps to reproduce
- Open thunar
- Format a USB flash drive in ext4
- Mount it from thunar and move in the mounted directory (i.e. click once on the volume in the side pane to mount it, then a second time to go to the mounted directory)
-
chown -R 1000:1000
on the mounted directory from a terminal
Current behavior
(thunar.orig:1092): GLib-GObject-CRITICAL **: 10:13:01.171: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
Expected outcome
No warning
Backtrace
Core was generated by `/opt/bin/thunar.orig'.
Program terminated with signal SIGTRAP, Trace/breakpoint trap.
#0 _g_log_abort (breakpoint=<optimized out>) at ../glib/glib/gmessages.c:426
426 G_BREAKPOINT ();
[Current thread is 1 (Thread 0x795d2a198a40 (LWP 1092))]
(gdb) bt
#0 _g_log_abort (breakpoint=<optimized out>) at ../glib/glib/gmessages.c:426
#1 g_logv (log_domain=0x795d2c2e3015 "GLib-GObject", log_level=G_LOG_LEVEL_CRITICAL, format=<optimized out>, args=args@entry=0x7ffd8eedee80) at ../glib/glib/gmessages.c:1273
#2 0x0000795d2b744e94 in g_log (log_domain=log_domain@entry=0x795d2c2e3015 "GLib-GObject", log_level=log_level@entry=G_LOG_LEVEL_CRITICAL, format=format@entry=0x795d2b8062cd "%s: assertion '%s' failed")
at ../glib/glib/gmessages.c:1315
#3 0x0000795d2b74616e in g_return_if_fail_warning
(log_domain=log_domain@entry=0x795d2c2e3015 "GLib-GObject", pretty_function=pretty_function@entry=0x795d2c2edf78 <__func__.26.lto_priv.0> "g_object_unref", expression=expression@entry=0x795d2c2e5938 "G_IS_OBJECT (object)") at ../glib/glib/gmessages.c:3000
#4 0x0000795d2c2c10c4 in g_object_unref (_object=<optimized out>) at ../glib/gobject/gobject.c:4327
#5 0x0000641c84018e08 in thunar_list_model_files_changed (folder=<optimized out>, files=0x795d14021140 = {...}, store=0x641cbfaeabc0 [ThunarListModel]) at thunar-list-model.c:1501
#6 0x0000795d2c2b182a in g_closure_invoke (closure=0x641cbfaf53f0, return_value=0x0, n_param_values=2, param_values=0x7ffd8eedf1c0, invocation_hint=0x7ffd8eedf110) at ../glib/gobject/gclosure.c:833
#7 0x0000795d2c2e23e5 in signal_emit_unlocked_R.isra.0
(node=node@entry=0x7ffd8eedf2b0, detail=detail@entry=0, instance=instance@entry=0x641cbfb200f0, emission_return=emission_return@entry=0x0, instance_and_params=instance_and_params@entry=0x7ffd8eedf1c0)
at ../glib/gobject/gsignal.c:3887
#8 0x0000795d2c2d2b4c in signal_emit_valist_unlocked (instance=instance@entry=0x641cbfb200f0, signal_id=signal_id@entry=533, detail=detail@entry=0, var_args=var_args@entry=0x7ffd8eedf420)
at ../glib/gobject/gsignal.c:3519
#9 0x0000795d2c2d2db2 in g_signal_emit_valist (instance=0x641cbfb200f0, signal_id=533, detail=0, var_args=var_args@entry=0x7ffd8eedf420) at ../glib/gobject/gsignal.c:3262
#10 0x0000795d2c2d2e74 in g_signal_emit (instance=instance@entry=0x641cbfb200f0, signal_id=<optimized out>, detail=detail@entry=0) at ../glib/gobject/gsignal.c:3582
#11 0x0000641c8400a9d3 in _thunar_folder_files_update_timeout (data=0x641cbfb200f0) at thunar-folder.c:590
#12 0x0000795d2b74090a in g_timeout_dispatch (source=0x641cbfbb84c0, callback=<optimized out>, user_data=<optimized out>) at ../glib/glib/gmain.c:5070
#13 0x0000795d2b73f459 in g_main_dispatch (context=0x641cbf70d490) at ../glib/glib/gmain.c:3357
#14 0x0000795d2b7a20d7 in g_main_context_dispatch_unlocked (context=0x641cbf70d490) at ../glib/glib/gmain.c:4208
#15 g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x641cbf70d490, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4273
#16 0x0000795d2b73e955 in g_main_context_iteration (context=context@entry=0x641cbf70d490, may_block=may_block@entry=1) at ../glib/glib/gmain.c:4338
#17 0x0000795d2b910bf6 in g_application_run (application=0x641cbf7217b0 [ThunarApplication], argc=<optimized out>, argv=0x7ffd8eedf8c8) at ../glib/gio/gapplication.c:2715
#18 0x0000641c83fddf3c in main (argc=1, argv=0x7ffd8eedf8c8) at main.c:86