Further debugging with `strace` shows it literally creates the pipe
right before it tries to write into it:

write(1, "Registering (mktemp) temporary f"..., 82) = 82
write(13, "DEBUG 1\n. Registering (mktemp) t"..., 93) = 93
lstat("/tmp/duplicity-iMtvLG-tempdir/mktemp-Z8PNlG-2", 0x7ffd210b6cc0) = -1 
ENOENT (No such file or directory)
futex(0x7f4cce376f38, FUTEX_WAKE_PRIVATE, 2147483647) = 0
lstat("/var/backups/wilx/backup.amber2/duplicity-inc.20180824T154037Z.to.20180825T014020Z.manifest",
 {st_mode=S_IFREG|0755, st_size=214, ...}) = 0
openat(AT_FDCWD, 
"/var/backups/wilx/backup.amber2/duplicity-inc.20180824T154037Z.to.20180825T014020Z.manifest",
 O_RDONLY) = 9
fstat(9, {st_mode=S_IFREG|0755, st_size=214, ...}) = 0
futex(0x7f4cce376f38, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x7f4cce376f38, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x7f4cce376f38, FUTEX_WAKE_PRIVATE, 2147483647) = 0
fstat(9, {st_mode=S_IFREG|0755, st_size=214, ...}) = 0
flistxattr(9, NULL, 0)                  = -1 ENODATA (No data available)
openat(AT_FDCWD, "/tmp/duplicity-iMtvLG-tempdir/mktemp-Z8PNlG-2", 
O_WRONLY|O_CREAT|O_EXCL, 0755) = 10
futex(0x7f4cce376f38, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x7f4cce376f38, FUTEX_WAKE_PRIVATE, 2147483647) = 0
ioctl(10, BTRFS_IOC_CLONE or FICLONE, 9) = -1 EXDEV (Invalid cross-device link)

It creates the pipe descriptor pair here:

pipe2([19, 20], O_CLOEXEC)              = 0
fcntl(20, F_SETPIPE_SZ, 1048576)        = 1048576
fstat(9, {st_mode=S_IFREG|0755, st_size=214, ...}) = 0

And immediately tries to write into it. Who is supposed to be reading
the other end?

splice(9, [0], 20, NULL, 1048576, SPLICE_F_MORE) = 214
splice(19, NULL, 10, [0], 214, SPLICE_F_MORE) = 214
splice(9, [214], 20, NULL, 1048576, SPLICE_F_MORE

The two commented chunks above are adjacent in the `strace` log. I have
not left out anything. These are literally the last 6 lines of the
`strace` log of the stuck process.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to deja-dup in Ubuntu.
https://bugs.launchpad.net/bugs/1778638

Title:
  duplicity stuck in splice() call on Bionic

Status in Duplicity:
  New
Status in deja-dup package in Ubuntu:
  New

Bug description:
  I am using Duplicity through Deja-Dup through its deja-dup-monitor
  process. After update to Bionic, it has basically stopped doing
  backups. Version is duplicity 0.7.17+bzr1357, Python version is
  2.7.15rc1, Xubuntu Bionic.

  It seems to be stuck in pipes related call. When I try to strace the
  process I get this:

  strace: Process 28490 attached
  splice(9, [359], 16, NULL, 1048576, SPLICE_F_MORE

  From handle 9 to 16. The handle 9 is a file on my CIFS mount to where
  I do backups. If I go to the directory and do ls it works fine:

  duplicity 28490 USER    9r      REG               0,52      359
  67128742 /var/backups/USER/backup.HOST/duplicity-
  inc.20180611T014226Z.to.20180612T014125Z.manifest.gpg

  Handle 16 is a pipe:

  duplicity 28490 USER   16w     FIFO               0,12      0t0
  1415081 pipe

  Its other end is handle 13, I think:

  duplicity 28490 USER   13r     FIFO               0,12      0t0
  1415081 pipe

  But I do not see anyone reading from it. That sounds like the issue.

  It seems to be stuck in GIO file handling code:

  (gdb) bt
  #0  0x00007f0e78588dda in splice (fd_in=9, off_in=0x7ffe5e958388, fd_out=16, 
off_out=0x0, len=1048576, flags=4) at ../sysdeps/unix/sysv/linux/splice.c:26
  #1  0x00007f0e6ee2672e in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
  #2  0x00007f0e6ee2d827 in g_file_copy () at 
/usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
  #3  0x00007f0e76ccfdae in ffi_call_unix64 () at 
/usr/lib/x86_64-linux-gnu/libffi.so.6
  #4  0x00007f0e76ccf71f in ffi_call () at /usr/lib/x86_64-linux-gnu/libffi.so.6
  #5  0x00007f0e6fb8ecfa in  () at 
/usr/lib/python2.7/dist-packages/gi/_gi.x86_64-linux-gnu.so
  #6  0x00007f0e6fb908e8 in  () at 
/usr/lib/python2.7/dist-packages/gi/_gi.x86_64-linux-gnu.so
  #7  0x00007f0e6fb84c39 in  () at 
/usr/lib/python2.7/dist-packages/gi/_gi.x86_64-linux-gnu.so
  #8  0x00005560917a1f60 in PyEval_EvalFrameEx ()

  I have already tried to restart it and it got stuck like this again
  the next backup cycle.

To manage notifications about this bug go to:
https://bugs.launchpad.net/duplicity/+bug/1778638/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to