gvfs-trash fails on file in a symbolic linked folder in a different file system
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gvfs (Ubuntu) |
Confirmed
|
High
|
Unassigned |
Bug Description
I have Documents in a LUKS container mounted and symlinked on my home folder.
|-- Documents -> secure/documents
Have other folders like Desktop in a ecryptfs folder mounted and symlinked on my home folder.
|-- Desktop -> Private/Desktop
So when I delete a file on Desktop or Documents it fails. It seems like it's saving the file in .local/share/trash instead of inside the containers. I was using fedora 22 and it was working fine. Now moved to ubuntu 15.10 and doesn't seem to work.
strace of trying to delete the file:
openat(AT_FDCWD, "/usr/lib/
lstat("
stat("/home/zed", {st_mode=
lstat("
access("/home", F_OK) = 0
stat("/home", {st_mode=
access("/home/zed", F_OK) = 0
stat("/home/zed", {st_mode=
access(
stat("/
access(
stat("/
access(
stat("/
mkdir("
mkdir("
open("/
close(3) = 0
open("/
fstat(3, {st_mode=
fstat(3, {st_mode=
mmap(NULL, 4096, PROT_READ|
read(3, "TZif2\
lseek(3, -2347, SEEK_CUR) = 1340
read(3, "TZif2\
close(3) = 0
munmap(
open("/
fallocate(3, 0, 0, 94) = 0
write(3, "[Trash Info]\nPath=
fstatfs(3, {f_type=0x9123683e, f_bsize=4096, f_blocks=119953152, f_bfree=76651779, f_bavail=76103891, f_files=0, f_ffree=0, f_fsid={-810601384, -1547478495}, f_namelen=255, f_frsize=4096}) = 0
close(3) = 0
rename(
rename(
unlink(
open("/dev/tty", O_RDWR|
writev(3, [{"*** Error in `", 14}, {"gvfs-trash", 10}, {"': ", 3}, {"double free or corruption (fastt"..., 35}, {": 0x", 4}, {"0000000001222
) = 87
mmap(NULL, 4096, PROT_READ|
rt_sigprocmask(
tgkill(5432, 5432, SIGABRT) = 0
--- SIGABRT {si_signo=SIGABRT, si_code=SI_TKILL, si_pid=5432, si_uid=1000} ---
+++ killed by SIGABRT (core dumped) +++
Aborted (core dumped)
Found this one but doesn't seem like it's fixed on 15.10:
https:/
https:/
I actually noticed this on thunar but I drilled it down to gvfs-trash.