[Desktop-packages] [Bug 1902832] Re: lftp support broken - exits with error_code -11 on Bionic

2020-11-05 Thread Balint Reczey
Simpler reproducer:

 valgrind lftp -e 'get gnu/glibc/nss_db-2.2.tar.gz;exit' ftp.gnu.org 
==9023== Memcheck, a memory error detector
==9023== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==9023== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
==9023== Command: lftp -e get\ gnu/glibc/nss_db-2.2.tar.gz;exit ftp.gnu.org
==9023== 
==9024== .gnu.org' [Resolving host address...]
==9024== HEAP SUMMARY:
==9024== in use at exit: 209,311 bytes in 1,703 blocks
==9024==   total heap usage: 4,136 allocs, 2,433 frees, 579,083 bytes allocated
==9024== 
==9024== LEAK SUMMARY:
==9024==definitely lost: 0 bytes in 0 blocks
==9024==indirectly lost: 0 bytes in 0 blocks
==9024==  possibly lost: 3,109 bytes in 41 blocks
==9024==still reachable: 206,202 bytes in 1,662 blocks
==9024== suppressed: 0 bytes in 0 blocks
==9024== Rerun with --leak-check=full to see details of leaked memory
==9024== 
==9024== For counts of detected and suppressed errors, rerun with: -v
==9024== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
get: gnu/glibc/nss_db-2.2.tar.gz: /home/ubuntu/nss_db-2.2.tar.gz: file already 
exists and xfer:clobber is unset
==9023== Invalid read of size 4
==9023==at 0x2184B0: AddXfer (RateLimit.cc:30)
==9023==by 0x2184B0: RateLimit::~RateLimit() (RateLimit.cc:63)
==9023==by 0x218B18: dispose (xmap.h:107)
==9023==by 0x218B18: xmap_p::~xmap_p() (xmap.h:112)
==9023==by 0x6224160: __run_exit_handlers (exit.c:108)
==9023==by 0x6224259: exit (exit.c:139)
==9023==by 0x6202BFD: (below main) (libc-start.c:344)
==9023==  Address 0x8072550 is 16 bytes inside a block of size 88 free'd
==9023==at 0x4C3323B: operator delete(void*) (in 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==9023==by 0x218B25: dispose (xmap.h:107)
==9023==by 0x218B25: xmap_p::~xmap_p() (xmap.h:112)
==9023==by 0x6224160: __run_exit_handlers (exit.c:108)
==9023==by 0x6224259: exit (exit.c:139)
==9023==by 0x6202BFD: (below main) (libc-start.c:344)
==9023==  Block was alloc'd at
==9023==at 0x4C3217F: operator new(unsigned long) (in 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==9023==by 0x218A09: RateLimit::init(RateLimit::level_e, char const*) 
(RateLimit.cc:55)
==9023==by 0x218A2C: RateLimit (RateLimit.h:52)
==9023==by 0x218A2C: RateLimit::init(RateLimit::level_e, char const*) 
(RateLimit.cc:55)
==9023==by 0x1ED1E2: Ftp::Do() (ftpclass.cc:2337)
==9023==by 0x1A97C4: SMTask::ScheduleThis() (SMTask.cc:209)
==9023==by 0x1A99D0: SMTask::Schedule() (SMTask.cc:248)
==9023==by 0x16614C: Job::WaitDone() (Job.cc:557)
==9023==by 0x15CBE3: main (lftp.cc:590)
==9023== 
==9023== Invalid read of size 8
==9023==at 0x2184B5: AddXfer (RateLimit.cc:31)
==9023==by 0x2184B5: RateLimit::~RateLimit() (RateLimit.cc:63)
==9023==by 0x218B18: dispose (xmap.h:107)
==9023==by 0x218B18: xmap_p::~xmap_p() (xmap.h:112)
==9023==by 0x6224160: __run_exit_handlers (exit.c:108)
==9023==by 0x6224259: exit (exit.c:139)
==9023==by 0x6202BFD: (below main) (libc-start.c:344)
==9023==  Address 0x8072548 is 8 bytes inside a block of size 88 free'd
==9023==at 0x4C3323B: operator delete(void*) (in 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==9023==by 0x218B25: dispose (xmap.h:107)
==9023==by 0x218B25: xmap_p::~xmap_p() (xmap.h:112)
==9023==by 0x6224160: __run_exit_handlers (exit.c:108)
==9023==by 0x6224259: exit (exit.c:139)
==9023==by 0x6202BFD: (below main) (libc-start.c:344)
==9023==  Block was alloc'd at
==9023==at 0x4C3217F: operator new(unsigned long) (in 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==9023==by 0x218A09: RateLimit::init(RateLimit::level_e, char const*) 
(RateLimit.cc:55)
==9023==by 0x218A2C: RateLimit (RateLimit.h:52)
==9023==by 0x218A2C: RateLimit::init(RateLimit::level_e, char const*) 
(RateLimit.cc:55)
==9023==by 0x1ED1E2: Ftp::Do() (ftpclass.cc:2337)
==9023==by 0x1A97C4: SMTask::ScheduleThis() (SMTask.cc:209)
==9023==by 0x1A99D0: SMTask::Schedule() (SMTask.cc:248)
==9023==by 0x16614C: Job::WaitDone() (Job.cc:557)
==9023==by 0x15CBE3: main (lftp.cc:590)
==9023== 
==9023== 
==9023== HEAP SUMMARY:
==9023== in use at exit: 41,827 bytes in 845 blocks
==9023==   total heap usage: 4,439 allocs, 3,594 frees, 1,067,188 bytes 
allocated
==9023== 
==9023== LEAK SUMMARY:
==9023==definitely lost: 144 bytes in 9 blocks
==9023==indirectly lost: 13 bytes in 1 blocks
==9023==  possibly lost: 3,026 bytes in 39 blocks
==9023==still reachable: 38,644 bytes in 796 blocks
==9023== suppressed: 0 bytes in 0 blocks
==9023== Rerun with --leak-check=full to see details of leaked memory
==9023== 
==9023== For counts of detected and suppressed errors, rerun with: -v
==9023== ERROR SUMMARY: 3 errors from 2 contexts (suppressed: 0 from 0)


Seems like one of the various core dumps on exit fixed in 

[Desktop-packages] [Bug 1902832] Re: lftp support broken - exits with error_code -11 on Bionic

2020-11-04 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: duplicity (Ubuntu Bionic)
   Status: New => Confirmed

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

Title:
  lftp support broken - exits with error_code -11 on Bionic

Status in duplicity package in Ubuntu:
  Confirmed
Status in glibc package in Ubuntu:
  Confirmed
Status in duplicity source package in Bionic:
  Confirmed
Status in glibc source package in Bionic:
  Confirmed

Bug description:
  We are using duplicity 0.7.17 and Ubuntu 18.04 LTS.

  After upgrading these packages in Ubuntu:

  Upgrade: libc-bin:amd64 (2.27-3ubuntu1.2, 2.27-3ubuntu1.3)
  Upgrade: locales:amd64 (2.27-3ubuntu1.2, 2.27-3ubuntu1.3)
  Upgrade: multiarch-support:amd64 (2.27-3ubuntu1.2, 2.27-3ubuntu1.3)
  Upgrade: libc6-dev:amd64 (2.27-3ubuntu1.2, 2.27-3ubuntu1.3), 
  Upgrade: libc6:amd64 (2.27-3ubuntu1.2, 2.27-3ubuntu1.3)
  Upgrade: libc-dev-bin:amd64 (2.27-3ubuntu1.2, 2.27-3ubuntu1.3)

  the duplicity/lftp support stopped working. It worked for years just
  fine before that.

  Basic error message is:

  Giving up after 5 attempts. BackendException: Error running 'lftp -c
  "source /tmp/duplicity-gVCsqa-tempdir/mkstemp-serY3Q-1; ( cd
  etc_backup/ && ls ) || ( mkdir -p etc_backup/ && cd etc_backup/ && ls
  )"': returned -11, with output:

  Error/debug output:

  Using archive dir: /root/.duplicity/etc_daily
  Using backup name: etc_daily
  GPG binary is gpg, version 2.2.4
  Import of duplicity.backends.acdclibackend Succeeded
  Import of duplicity.backends.azurebackend Succeeded
  Import of duplicity.backends.b2backend Succeeded
  Import of duplicity.backends.botobackend Succeeded
  Import of duplicity.backends.cfbackend Succeeded
  Import of duplicity.backends.dpbxbackend Failed: No module named dropbox
  Import of duplicity.backends.gdocsbackend Succeeded
  Import of duplicity.backends.giobackend Succeeded
  Import of duplicity.backends.hsibackend Succeeded
  Import of duplicity.backends.hubicbackend Succeeded
  Import of duplicity.backends.imapbackend Succeeded
  Import of duplicity.backends.lftpbackend Succeeded
  Import of duplicity.backends.localbackend Succeeded
  Import of duplicity.backends.mediafirebackend Succeeded
  Import of duplicity.backends.megabackend Succeeded
  Import of duplicity.backends.multibackend Succeeded
  Import of duplicity.backends.ncftpbackend Succeeded
  Import of duplicity.backends.onedrivebackend Succeeded
  Import of duplicity.backends.par2backend Succeeded
  Import of duplicity.backends.pydrivebackend Succeeded
  Import of duplicity.backends.rsyncbackend Succeeded
  Import of duplicity.backends.ssh_paramiko_backend Succeeded
  Import of duplicity.backends.ssh_pexpect_backend Succeeded
  Import of duplicity.backends.swiftbackend Succeeded
  Import of duplicity.backends.sxbackend Succeeded
  Import of duplicity.backends.tahoebackend Succeeded
  Import of duplicity.backends.webdavbackend Succeeded
  LFTP version is 4.8.1
  Using temporary directory /tmp/duplicity-_Mgype-tempdir
  Registering (mkstemp) temporary file 
/tmp/duplicity-_Mgype-tempdir/mkstemp-55iPLR-1
  SETTINGS:
  set ssl:verify-certificate true
  set ftp:ssl-allow false
  set http:use-propfind true
  set net:timeout 30
  set net:max-retries 5
  set ftp:passive-mode on
  debug
  open -u ',' 
ftp://hostname.your-storagebox.de

  Main action: remove-all-but-n-full
  Acquiring lockfile /root/.duplicity/etc_daily/lockfile
  

  duplicity 0.7.17 (February 26, 2018)
  Args: /usr/bin/duplicity remove-all-but-n-full 7 -v9 
--archive-dir=/root/.duplicity --force --name etc_daily --no-encryption 
ftp://@.your-storagebox.de/etc_full
  Linux  4.15.0-122-generic #124-Ubuntu SMP Thu Oct 15 
13:03:05 UTC 2020 x86_64 x86_64
  /usr/bin/python2 2.7.17 (default, Sep 30 2020, 13:38:04)
  [GCC 7.5.0]
  

  CMD: lftp -c "source /tmp/duplicity-_Mgype-tempdir/mkstemp-55iPLR-1; ( cd 
etc_full/ && ls ) || ( mkdir -p etc_full/ && cd etc_full/ && ls )"
  Reading results of 'lftp -c "source 
/tmp/duplicity-_Mgype-tempdir/mkstemp-55iPLR-1; ( cd etc_full/ && ls ) || ( 
mkdir -p etc_full/ && cd etc_full/ && ls )"'
  Backtrace of previous error: Traceback (innermost last):
File "/usr/lib/python2.7/dist-packages/duplicity/backend.py", line 369, in 
inner_retry
  return fn(self, *args)
File "/usr/lib/python2.7/dist-packages/duplicity/backend.py", line 578, in 
list
  return [tobytes(x) for x in self.backend._list()]
File "/usr/lib/python2.7/dist-packages/duplicity/backends/lftpbackend.py", 
line 181, in _list
  _, l, e = self.subprocess_popen(commandline)
File "/usr/lib/python2.7/dist-packages/duplicity/backend.py", line 499, in 
subprocess_popen
  (logstr, result, 

[Desktop-packages] [Bug 1902832] Re: lftp support broken - exits with error_code -11 on Bionic

2020-11-04 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: glibc (Ubuntu Bionic)
   Status: New => Confirmed

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

Title:
  lftp support broken - exits with error_code -11 on Bionic

Status in duplicity package in Ubuntu:
  Confirmed
Status in glibc package in Ubuntu:
  Confirmed
Status in duplicity source package in Bionic:
  Confirmed
Status in glibc source package in Bionic:
  Confirmed

Bug description:
  We are using duplicity 0.7.17 and Ubuntu 18.04 LTS.

  After upgrading these packages in Ubuntu:

  Upgrade: libc-bin:amd64 (2.27-3ubuntu1.2, 2.27-3ubuntu1.3)
  Upgrade: locales:amd64 (2.27-3ubuntu1.2, 2.27-3ubuntu1.3)
  Upgrade: multiarch-support:amd64 (2.27-3ubuntu1.2, 2.27-3ubuntu1.3)
  Upgrade: libc6-dev:amd64 (2.27-3ubuntu1.2, 2.27-3ubuntu1.3), 
  Upgrade: libc6:amd64 (2.27-3ubuntu1.2, 2.27-3ubuntu1.3)
  Upgrade: libc-dev-bin:amd64 (2.27-3ubuntu1.2, 2.27-3ubuntu1.3)

  the duplicity/lftp support stopped working. It worked for years just
  fine before that.

  Basic error message is:

  Giving up after 5 attempts. BackendException: Error running 'lftp -c
  "source /tmp/duplicity-gVCsqa-tempdir/mkstemp-serY3Q-1; ( cd
  etc_backup/ && ls ) || ( mkdir -p etc_backup/ && cd etc_backup/ && ls
  )"': returned -11, with output:

  Error/debug output:

  Using archive dir: /root/.duplicity/etc_daily
  Using backup name: etc_daily
  GPG binary is gpg, version 2.2.4
  Import of duplicity.backends.acdclibackend Succeeded
  Import of duplicity.backends.azurebackend Succeeded
  Import of duplicity.backends.b2backend Succeeded
  Import of duplicity.backends.botobackend Succeeded
  Import of duplicity.backends.cfbackend Succeeded
  Import of duplicity.backends.dpbxbackend Failed: No module named dropbox
  Import of duplicity.backends.gdocsbackend Succeeded
  Import of duplicity.backends.giobackend Succeeded
  Import of duplicity.backends.hsibackend Succeeded
  Import of duplicity.backends.hubicbackend Succeeded
  Import of duplicity.backends.imapbackend Succeeded
  Import of duplicity.backends.lftpbackend Succeeded
  Import of duplicity.backends.localbackend Succeeded
  Import of duplicity.backends.mediafirebackend Succeeded
  Import of duplicity.backends.megabackend Succeeded
  Import of duplicity.backends.multibackend Succeeded
  Import of duplicity.backends.ncftpbackend Succeeded
  Import of duplicity.backends.onedrivebackend Succeeded
  Import of duplicity.backends.par2backend Succeeded
  Import of duplicity.backends.pydrivebackend Succeeded
  Import of duplicity.backends.rsyncbackend Succeeded
  Import of duplicity.backends.ssh_paramiko_backend Succeeded
  Import of duplicity.backends.ssh_pexpect_backend Succeeded
  Import of duplicity.backends.swiftbackend Succeeded
  Import of duplicity.backends.sxbackend Succeeded
  Import of duplicity.backends.tahoebackend Succeeded
  Import of duplicity.backends.webdavbackend Succeeded
  LFTP version is 4.8.1
  Using temporary directory /tmp/duplicity-_Mgype-tempdir
  Registering (mkstemp) temporary file 
/tmp/duplicity-_Mgype-tempdir/mkstemp-55iPLR-1
  SETTINGS:
  set ssl:verify-certificate true
  set ftp:ssl-allow false
  set http:use-propfind true
  set net:timeout 30
  set net:max-retries 5
  set ftp:passive-mode on
  debug
  open -u ',' 
ftp://hostname.your-storagebox.de

  Main action: remove-all-but-n-full
  Acquiring lockfile /root/.duplicity/etc_daily/lockfile
  

  duplicity 0.7.17 (February 26, 2018)
  Args: /usr/bin/duplicity remove-all-but-n-full 7 -v9 
--archive-dir=/root/.duplicity --force --name etc_daily --no-encryption 
ftp://@.your-storagebox.de/etc_full
  Linux  4.15.0-122-generic #124-Ubuntu SMP Thu Oct 15 
13:03:05 UTC 2020 x86_64 x86_64
  /usr/bin/python2 2.7.17 (default, Sep 30 2020, 13:38:04)
  [GCC 7.5.0]
  

  CMD: lftp -c "source /tmp/duplicity-_Mgype-tempdir/mkstemp-55iPLR-1; ( cd 
etc_full/ && ls ) || ( mkdir -p etc_full/ && cd etc_full/ && ls )"
  Reading results of 'lftp -c "source 
/tmp/duplicity-_Mgype-tempdir/mkstemp-55iPLR-1; ( cd etc_full/ && ls ) || ( 
mkdir -p etc_full/ && cd etc_full/ && ls )"'
  Backtrace of previous error: Traceback (innermost last):
File "/usr/lib/python2.7/dist-packages/duplicity/backend.py", line 369, in 
inner_retry
  return fn(self, *args)
File "/usr/lib/python2.7/dist-packages/duplicity/backend.py", line 578, in 
list
  return [tobytes(x) for x in self.backend._list()]
File "/usr/lib/python2.7/dist-packages/duplicity/backends/lftpbackend.py", 
line 181, in _list
  _, l, e = self.subprocess_popen(commandline)
File "/usr/lib/python2.7/dist-packages/duplicity/backend.py", line 499, in 
subprocess_popen
  (logstr, result, stdout 

[Desktop-packages] [Bug 1902832] Re: lftp support broken - exits with error_code -11 on Bionic

2020-11-04 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: duplicity (Ubuntu)
   Status: New => Confirmed

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

Title:
  lftp support broken - exits with error_code -11 on Bionic

Status in duplicity package in Ubuntu:
  Confirmed
Status in glibc package in Ubuntu:
  Confirmed
Status in duplicity source package in Bionic:
  Confirmed
Status in glibc source package in Bionic:
  Confirmed

Bug description:
  We are using duplicity 0.7.17 and Ubuntu 18.04 LTS.

  After upgrading these packages in Ubuntu:

  Upgrade: libc-bin:amd64 (2.27-3ubuntu1.2, 2.27-3ubuntu1.3)
  Upgrade: locales:amd64 (2.27-3ubuntu1.2, 2.27-3ubuntu1.3)
  Upgrade: multiarch-support:amd64 (2.27-3ubuntu1.2, 2.27-3ubuntu1.3)
  Upgrade: libc6-dev:amd64 (2.27-3ubuntu1.2, 2.27-3ubuntu1.3), 
  Upgrade: libc6:amd64 (2.27-3ubuntu1.2, 2.27-3ubuntu1.3)
  Upgrade: libc-dev-bin:amd64 (2.27-3ubuntu1.2, 2.27-3ubuntu1.3)

  the duplicity/lftp support stopped working. It worked for years just
  fine before that.

  Basic error message is:

  Giving up after 5 attempts. BackendException: Error running 'lftp -c
  "source /tmp/duplicity-gVCsqa-tempdir/mkstemp-serY3Q-1; ( cd
  etc_backup/ && ls ) || ( mkdir -p etc_backup/ && cd etc_backup/ && ls
  )"': returned -11, with output:

  Error/debug output:

  Using archive dir: /root/.duplicity/etc_daily
  Using backup name: etc_daily
  GPG binary is gpg, version 2.2.4
  Import of duplicity.backends.acdclibackend Succeeded
  Import of duplicity.backends.azurebackend Succeeded
  Import of duplicity.backends.b2backend Succeeded
  Import of duplicity.backends.botobackend Succeeded
  Import of duplicity.backends.cfbackend Succeeded
  Import of duplicity.backends.dpbxbackend Failed: No module named dropbox
  Import of duplicity.backends.gdocsbackend Succeeded
  Import of duplicity.backends.giobackend Succeeded
  Import of duplicity.backends.hsibackend Succeeded
  Import of duplicity.backends.hubicbackend Succeeded
  Import of duplicity.backends.imapbackend Succeeded
  Import of duplicity.backends.lftpbackend Succeeded
  Import of duplicity.backends.localbackend Succeeded
  Import of duplicity.backends.mediafirebackend Succeeded
  Import of duplicity.backends.megabackend Succeeded
  Import of duplicity.backends.multibackend Succeeded
  Import of duplicity.backends.ncftpbackend Succeeded
  Import of duplicity.backends.onedrivebackend Succeeded
  Import of duplicity.backends.par2backend Succeeded
  Import of duplicity.backends.pydrivebackend Succeeded
  Import of duplicity.backends.rsyncbackend Succeeded
  Import of duplicity.backends.ssh_paramiko_backend Succeeded
  Import of duplicity.backends.ssh_pexpect_backend Succeeded
  Import of duplicity.backends.swiftbackend Succeeded
  Import of duplicity.backends.sxbackend Succeeded
  Import of duplicity.backends.tahoebackend Succeeded
  Import of duplicity.backends.webdavbackend Succeeded
  LFTP version is 4.8.1
  Using temporary directory /tmp/duplicity-_Mgype-tempdir
  Registering (mkstemp) temporary file 
/tmp/duplicity-_Mgype-tempdir/mkstemp-55iPLR-1
  SETTINGS:
  set ssl:verify-certificate true
  set ftp:ssl-allow false
  set http:use-propfind true
  set net:timeout 30
  set net:max-retries 5
  set ftp:passive-mode on
  debug
  open -u ',' 
ftp://hostname.your-storagebox.de

  Main action: remove-all-but-n-full
  Acquiring lockfile /root/.duplicity/etc_daily/lockfile
  

  duplicity 0.7.17 (February 26, 2018)
  Args: /usr/bin/duplicity remove-all-but-n-full 7 -v9 
--archive-dir=/root/.duplicity --force --name etc_daily --no-encryption 
ftp://@.your-storagebox.de/etc_full
  Linux  4.15.0-122-generic #124-Ubuntu SMP Thu Oct 15 
13:03:05 UTC 2020 x86_64 x86_64
  /usr/bin/python2 2.7.17 (default, Sep 30 2020, 13:38:04)
  [GCC 7.5.0]
  

  CMD: lftp -c "source /tmp/duplicity-_Mgype-tempdir/mkstemp-55iPLR-1; ( cd 
etc_full/ && ls ) || ( mkdir -p etc_full/ && cd etc_full/ && ls )"
  Reading results of 'lftp -c "source 
/tmp/duplicity-_Mgype-tempdir/mkstemp-55iPLR-1; ( cd etc_full/ && ls ) || ( 
mkdir -p etc_full/ && cd etc_full/ && ls )"'
  Backtrace of previous error: Traceback (innermost last):
File "/usr/lib/python2.7/dist-packages/duplicity/backend.py", line 369, in 
inner_retry
  return fn(self, *args)
File "/usr/lib/python2.7/dist-packages/duplicity/backend.py", line 578, in 
list
  return [tobytes(x) for x in self.backend._list()]
File "/usr/lib/python2.7/dist-packages/duplicity/backends/lftpbackend.py", 
line 181, in _list
  _, l, e = self.subprocess_popen(commandline)
File "/usr/lib/python2.7/dist-packages/duplicity/backend.py", line 499, in 
subprocess_popen
  (logstr, result, stdout + 

[Desktop-packages] [Bug 1902832] Re: lftp support broken - exits with error_code -11 on Bionic

2020-11-04 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: glibc (Ubuntu)
   Status: New => Confirmed

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

Title:
  lftp support broken - exits with error_code -11 on Bionic

Status in duplicity package in Ubuntu:
  Confirmed
Status in glibc package in Ubuntu:
  Confirmed
Status in duplicity source package in Bionic:
  Confirmed
Status in glibc source package in Bionic:
  Confirmed

Bug description:
  We are using duplicity 0.7.17 and Ubuntu 18.04 LTS.

  After upgrading these packages in Ubuntu:

  Upgrade: libc-bin:amd64 (2.27-3ubuntu1.2, 2.27-3ubuntu1.3)
  Upgrade: locales:amd64 (2.27-3ubuntu1.2, 2.27-3ubuntu1.3)
  Upgrade: multiarch-support:amd64 (2.27-3ubuntu1.2, 2.27-3ubuntu1.3)
  Upgrade: libc6-dev:amd64 (2.27-3ubuntu1.2, 2.27-3ubuntu1.3), 
  Upgrade: libc6:amd64 (2.27-3ubuntu1.2, 2.27-3ubuntu1.3)
  Upgrade: libc-dev-bin:amd64 (2.27-3ubuntu1.2, 2.27-3ubuntu1.3)

  the duplicity/lftp support stopped working. It worked for years just
  fine before that.

  Basic error message is:

  Giving up after 5 attempts. BackendException: Error running 'lftp -c
  "source /tmp/duplicity-gVCsqa-tempdir/mkstemp-serY3Q-1; ( cd
  etc_backup/ && ls ) || ( mkdir -p etc_backup/ && cd etc_backup/ && ls
  )"': returned -11, with output:

  Error/debug output:

  Using archive dir: /root/.duplicity/etc_daily
  Using backup name: etc_daily
  GPG binary is gpg, version 2.2.4
  Import of duplicity.backends.acdclibackend Succeeded
  Import of duplicity.backends.azurebackend Succeeded
  Import of duplicity.backends.b2backend Succeeded
  Import of duplicity.backends.botobackend Succeeded
  Import of duplicity.backends.cfbackend Succeeded
  Import of duplicity.backends.dpbxbackend Failed: No module named dropbox
  Import of duplicity.backends.gdocsbackend Succeeded
  Import of duplicity.backends.giobackend Succeeded
  Import of duplicity.backends.hsibackend Succeeded
  Import of duplicity.backends.hubicbackend Succeeded
  Import of duplicity.backends.imapbackend Succeeded
  Import of duplicity.backends.lftpbackend Succeeded
  Import of duplicity.backends.localbackend Succeeded
  Import of duplicity.backends.mediafirebackend Succeeded
  Import of duplicity.backends.megabackend Succeeded
  Import of duplicity.backends.multibackend Succeeded
  Import of duplicity.backends.ncftpbackend Succeeded
  Import of duplicity.backends.onedrivebackend Succeeded
  Import of duplicity.backends.par2backend Succeeded
  Import of duplicity.backends.pydrivebackend Succeeded
  Import of duplicity.backends.rsyncbackend Succeeded
  Import of duplicity.backends.ssh_paramiko_backend Succeeded
  Import of duplicity.backends.ssh_pexpect_backend Succeeded
  Import of duplicity.backends.swiftbackend Succeeded
  Import of duplicity.backends.sxbackend Succeeded
  Import of duplicity.backends.tahoebackend Succeeded
  Import of duplicity.backends.webdavbackend Succeeded
  LFTP version is 4.8.1
  Using temporary directory /tmp/duplicity-_Mgype-tempdir
  Registering (mkstemp) temporary file 
/tmp/duplicity-_Mgype-tempdir/mkstemp-55iPLR-1
  SETTINGS:
  set ssl:verify-certificate true
  set ftp:ssl-allow false
  set http:use-propfind true
  set net:timeout 30
  set net:max-retries 5
  set ftp:passive-mode on
  debug
  open -u ',' 
ftp://hostname.your-storagebox.de

  Main action: remove-all-but-n-full
  Acquiring lockfile /root/.duplicity/etc_daily/lockfile
  

  duplicity 0.7.17 (February 26, 2018)
  Args: /usr/bin/duplicity remove-all-but-n-full 7 -v9 
--archive-dir=/root/.duplicity --force --name etc_daily --no-encryption 
ftp://@.your-storagebox.de/etc_full
  Linux  4.15.0-122-generic #124-Ubuntu SMP Thu Oct 15 
13:03:05 UTC 2020 x86_64 x86_64
  /usr/bin/python2 2.7.17 (default, Sep 30 2020, 13:38:04)
  [GCC 7.5.0]
  

  CMD: lftp -c "source /tmp/duplicity-_Mgype-tempdir/mkstemp-55iPLR-1; ( cd 
etc_full/ && ls ) || ( mkdir -p etc_full/ && cd etc_full/ && ls )"
  Reading results of 'lftp -c "source 
/tmp/duplicity-_Mgype-tempdir/mkstemp-55iPLR-1; ( cd etc_full/ && ls ) || ( 
mkdir -p etc_full/ && cd etc_full/ && ls )"'
  Backtrace of previous error: Traceback (innermost last):
File "/usr/lib/python2.7/dist-packages/duplicity/backend.py", line 369, in 
inner_retry
  return fn(self, *args)
File "/usr/lib/python2.7/dist-packages/duplicity/backend.py", line 578, in 
list
  return [tobytes(x) for x in self.backend._list()]
File "/usr/lib/python2.7/dist-packages/duplicity/backends/lftpbackend.py", 
line 181, in _list
  _, l, e = self.subprocess_popen(commandline)
File "/usr/lib/python2.7/dist-packages/duplicity/backend.py", line 499, in 
subprocess_popen
  (logstr, result, stdout + '
  

[Desktop-packages] [Bug 1902832] Re: lftp support broken - exits with error_code -11 on Bionic

2020-11-04 Thread Wolfgang Karall-Ahlborn
When version 2.27-3ubuntu1.2 is installed (e.g. after the downgrade)
it's best to replace the above pinning file in #4 with

# cat 

[Desktop-packages] [Bug 1902832] Re: lftp support broken - exits with error_code -11 on Bionic

2020-11-04 Thread Wolfgang Karall-Ahlborn
Hi,

attached a strace file of the lftp call when run with version
2.27-3ubuntu1.3:

# strace -f -o /tmp/lftp.strace lftp -c "source /scratch/duplicity-temp
/duplicity-RHpHVx-tempdir/mkstemp-jC4mJb-1; ( cd some-stage.example.org/
&& ls ) || ( mkdir -p some-stage.example.org/ && cd some-
stage.example.org/ && ls )"

dmesg shows:

[42084.466069] traps: lftp[8067] general protection ip:55792fb3a4b0
sp:7ffd77402a08 error:0 in lftp[55792fa2a000+14e000]


** Attachment added: "lftp.strace"
   
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1902832/+attachment/5431159/+files/lftp.strace

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

Title:
  lftp support broken - exits with error_code -11 on Bionic

Status in duplicity package in Ubuntu:
  Confirmed
Status in glibc package in Ubuntu:
  Confirmed
Status in duplicity source package in Bionic:
  Confirmed
Status in glibc source package in Bionic:
  Confirmed

Bug description:
  We are using duplicity 0.7.17 and Ubuntu 18.04 LTS.

  After upgrading these packages in Ubuntu:

  Upgrade: libc-bin:amd64 (2.27-3ubuntu1.2, 2.27-3ubuntu1.3)
  Upgrade: locales:amd64 (2.27-3ubuntu1.2, 2.27-3ubuntu1.3)
  Upgrade: multiarch-support:amd64 (2.27-3ubuntu1.2, 2.27-3ubuntu1.3)
  Upgrade: libc6-dev:amd64 (2.27-3ubuntu1.2, 2.27-3ubuntu1.3), 
  Upgrade: libc6:amd64 (2.27-3ubuntu1.2, 2.27-3ubuntu1.3)
  Upgrade: libc-dev-bin:amd64 (2.27-3ubuntu1.2, 2.27-3ubuntu1.3)

  the duplicity/lftp support stopped working. It worked for years just
  fine before that.

  Basic error message is:

  Giving up after 5 attempts. BackendException: Error running 'lftp -c
  "source /tmp/duplicity-gVCsqa-tempdir/mkstemp-serY3Q-1; ( cd
  etc_backup/ && ls ) || ( mkdir -p etc_backup/ && cd etc_backup/ && ls
  )"': returned -11, with output:

  Error/debug output:

  Using archive dir: /root/.duplicity/etc_daily
  Using backup name: etc_daily
  GPG binary is gpg, version 2.2.4
  Import of duplicity.backends.acdclibackend Succeeded
  Import of duplicity.backends.azurebackend Succeeded
  Import of duplicity.backends.b2backend Succeeded
  Import of duplicity.backends.botobackend Succeeded
  Import of duplicity.backends.cfbackend Succeeded
  Import of duplicity.backends.dpbxbackend Failed: No module named dropbox
  Import of duplicity.backends.gdocsbackend Succeeded
  Import of duplicity.backends.giobackend Succeeded
  Import of duplicity.backends.hsibackend Succeeded
  Import of duplicity.backends.hubicbackend Succeeded
  Import of duplicity.backends.imapbackend Succeeded
  Import of duplicity.backends.lftpbackend Succeeded
  Import of duplicity.backends.localbackend Succeeded
  Import of duplicity.backends.mediafirebackend Succeeded
  Import of duplicity.backends.megabackend Succeeded
  Import of duplicity.backends.multibackend Succeeded
  Import of duplicity.backends.ncftpbackend Succeeded
  Import of duplicity.backends.onedrivebackend Succeeded
  Import of duplicity.backends.par2backend Succeeded
  Import of duplicity.backends.pydrivebackend Succeeded
  Import of duplicity.backends.rsyncbackend Succeeded
  Import of duplicity.backends.ssh_paramiko_backend Succeeded
  Import of duplicity.backends.ssh_pexpect_backend Succeeded
  Import of duplicity.backends.swiftbackend Succeeded
  Import of duplicity.backends.sxbackend Succeeded
  Import of duplicity.backends.tahoebackend Succeeded
  Import of duplicity.backends.webdavbackend Succeeded
  LFTP version is 4.8.1
  Using temporary directory /tmp/duplicity-_Mgype-tempdir
  Registering (mkstemp) temporary file 
/tmp/duplicity-_Mgype-tempdir/mkstemp-55iPLR-1
  SETTINGS:
  set ssl:verify-certificate true
  set ftp:ssl-allow false
  set http:use-propfind true
  set net:timeout 30
  set net:max-retries 5
  set ftp:passive-mode on
  debug
  open -u ',' 
ftp://hostname.your-storagebox.de

  Main action: remove-all-but-n-full
  Acquiring lockfile /root/.duplicity/etc_daily/lockfile
  

  duplicity 0.7.17 (February 26, 2018)
  Args: /usr/bin/duplicity remove-all-but-n-full 7 -v9 
--archive-dir=/root/.duplicity --force --name etc_daily --no-encryption 
ftp://@.your-storagebox.de/etc_full
  Linux  4.15.0-122-generic #124-Ubuntu SMP Thu Oct 15 
13:03:05 UTC 2020 x86_64 x86_64
  /usr/bin/python2 2.7.17 (default, Sep 30 2020, 13:38:04)
  [GCC 7.5.0]
  

  CMD: lftp -c "source /tmp/duplicity-_Mgype-tempdir/mkstemp-55iPLR-1; ( cd 
etc_full/ && ls ) || ( mkdir -p etc_full/ && cd etc_full/ && ls )"
  Reading results of 'lftp -c "source 
/tmp/duplicity-_Mgype-tempdir/mkstemp-55iPLR-1; ( cd etc_full/ && ls ) || ( 
mkdir -p etc_full/ && cd etc_full/ && ls )"'
  Backtrace of previous error: Traceback (innermost last):
File "/usr/lib/python2.7/dist-packages/duplicity/backend.py", line 369, in 

[Desktop-packages] [Bug 1902832] Re: lftp support broken - exits with error_code -11 on Bionic

2020-11-04 Thread Wolfgang Karall-Ahlborn
Hi,

this hit me as well on multiple bionic installs, downgraded via APT
pinning the old version as it's still in bionic-security

# cat < 
/etc/apt/preferences.d/20201104-force-libc6-version-to-unbreak-duplicity 
Package: libc6 libc-bin multiarch-support locales libc6-dev libc-dev-bin
Pin: version 2.27-3ubuntu1.2
Pin-Priority: 2000

EOF

and running apt dist-upgrade. After the downgrade, lftp worked again.

Cheers
Wolfgang

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

Title:
  lftp support broken - exits with error_code -11 on Bionic

Status in duplicity package in Ubuntu:
  New
Status in glibc package in Ubuntu:
  New
Status in duplicity source package in Bionic:
  New
Status in glibc source package in Bionic:
  New

Bug description:
  We are using duplicity 0.7.17 and Ubuntu 18.04 LTS.

  After upgrading these packages in Ubuntu:

  Upgrade: libc-bin:amd64 (2.27-3ubuntu1.2, 2.27-3ubuntu1.3)
  Upgrade: locales:amd64 (2.27-3ubuntu1.2, 2.27-3ubuntu1.3)
  Upgrade: multiarch-support:amd64 (2.27-3ubuntu1.2, 2.27-3ubuntu1.3)
  Upgrade: libc6-dev:amd64 (2.27-3ubuntu1.2, 2.27-3ubuntu1.3), 
  Upgrade: libc6:amd64 (2.27-3ubuntu1.2, 2.27-3ubuntu1.3)
  Upgrade: libc-dev-bin:amd64 (2.27-3ubuntu1.2, 2.27-3ubuntu1.3)

  the duplicity/lftp support stopped working. It worked for years just
  fine before that.

  Basic error message is:

  Giving up after 5 attempts. BackendException: Error running 'lftp -c
  "source /tmp/duplicity-gVCsqa-tempdir/mkstemp-serY3Q-1; ( cd
  etc_backup/ && ls ) || ( mkdir -p etc_backup/ && cd etc_backup/ && ls
  )"': returned -11, with output:

  Error/debug output:

  Using archive dir: /root/.duplicity/etc_daily
  Using backup name: etc_daily
  GPG binary is gpg, version 2.2.4
  Import of duplicity.backends.acdclibackend Succeeded
  Import of duplicity.backends.azurebackend Succeeded
  Import of duplicity.backends.b2backend Succeeded
  Import of duplicity.backends.botobackend Succeeded
  Import of duplicity.backends.cfbackend Succeeded
  Import of duplicity.backends.dpbxbackend Failed: No module named dropbox
  Import of duplicity.backends.gdocsbackend Succeeded
  Import of duplicity.backends.giobackend Succeeded
  Import of duplicity.backends.hsibackend Succeeded
  Import of duplicity.backends.hubicbackend Succeeded
  Import of duplicity.backends.imapbackend Succeeded
  Import of duplicity.backends.lftpbackend Succeeded
  Import of duplicity.backends.localbackend Succeeded
  Import of duplicity.backends.mediafirebackend Succeeded
  Import of duplicity.backends.megabackend Succeeded
  Import of duplicity.backends.multibackend Succeeded
  Import of duplicity.backends.ncftpbackend Succeeded
  Import of duplicity.backends.onedrivebackend Succeeded
  Import of duplicity.backends.par2backend Succeeded
  Import of duplicity.backends.pydrivebackend Succeeded
  Import of duplicity.backends.rsyncbackend Succeeded
  Import of duplicity.backends.ssh_paramiko_backend Succeeded
  Import of duplicity.backends.ssh_pexpect_backend Succeeded
  Import of duplicity.backends.swiftbackend Succeeded
  Import of duplicity.backends.sxbackend Succeeded
  Import of duplicity.backends.tahoebackend Succeeded
  Import of duplicity.backends.webdavbackend Succeeded
  LFTP version is 4.8.1
  Using temporary directory /tmp/duplicity-_Mgype-tempdir
  Registering (mkstemp) temporary file 
/tmp/duplicity-_Mgype-tempdir/mkstemp-55iPLR-1
  SETTINGS:
  set ssl:verify-certificate true
  set ftp:ssl-allow false
  set http:use-propfind true
  set net:timeout 30
  set net:max-retries 5
  set ftp:passive-mode on
  debug
  open -u ',' 
ftp://hostname.your-storagebox.de

  Main action: remove-all-but-n-full
  Acquiring lockfile /root/.duplicity/etc_daily/lockfile
  

  duplicity 0.7.17 (February 26, 2018)
  Args: /usr/bin/duplicity remove-all-but-n-full 7 -v9 
--archive-dir=/root/.duplicity --force --name etc_daily --no-encryption 
ftp://@.your-storagebox.de/etc_full
  Linux  4.15.0-122-generic #124-Ubuntu SMP Thu Oct 15 
13:03:05 UTC 2020 x86_64 x86_64
  /usr/bin/python2 2.7.17 (default, Sep 30 2020, 13:38:04)
  [GCC 7.5.0]
  

  CMD: lftp -c "source /tmp/duplicity-_Mgype-tempdir/mkstemp-55iPLR-1; ( cd 
etc_full/ && ls ) || ( mkdir -p etc_full/ && cd etc_full/ && ls )"
  Reading results of 'lftp -c "source 
/tmp/duplicity-_Mgype-tempdir/mkstemp-55iPLR-1; ( cd etc_full/ && ls ) || ( 
mkdir -p etc_full/ && cd etc_full/ && ls )"'
  Backtrace of previous error: Traceback (innermost last):
File "/usr/lib/python2.7/dist-packages/duplicity/backend.py", line 369, in 
inner_retry
  return fn(self, *args)
File "/usr/lib/python2.7/dist-packages/duplicity/backend.py", line 578, in 
list
  return [tobytes(x) for x in self.backend._list()]
File