[Bug 250311] devel/glib20: lock getfsent() usage to fix x11-fm/thunar crashes

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Oct 17 22:09:24 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=250311

--- Comment #10 from rozhuk.im at gmail.com ---
I dig inside this.

#5  0x000000080a181da9 in g_unix_mount_point_at () at
/usr/local/lib/libgio-2.0.so.0
#6  0x000000080a1e0811 in  () at /usr/local/lib/libgio-2.0.so.0 -
ignore_trash_mount()
#7  0x000000080a1e0624 in  () at /usr/local/lib/libgio-2.0.so.0 -
ignore_trash_path()
#8  0x000000080a1e4235 in  () at /usr/local/lib/libgio-2.0.so.0 -
g_local_file_trash() / _g_local_file_has_trash_dir()
#9  0x000000080a1e3d4e in  () at /usr/local/lib/libgio-2.0.so.0 - some proxy
staff
#10 0x000000080a116a88 in g_file_enumerator_next_file () at
/usr/local/lib/libgio-2.0.so.0

This code path check is "x-gvfs-notrash" present in mount options.

As for me, better to patch this:
GList *
g_unix_mount_points_get (guint64 *time_read)
{
  if (time_read)
    *time_read = get_mount_points_timestamp ();

  return _g_get_unix_mount_points ();
}

add lock and cache.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-xfce mailing list