duplicity's lftp support broken - exits with error_code -11 on Bionic
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
glibc (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Bionic |
Invalid
|
Undecided
|
Unassigned | ||
Focal |
Invalid
|
Undecided
|
Unassigned | ||
lftp (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
High
|
Balint Reczey | ||
Focal |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* Lftp crashes on exit after transferring files. This affects duplicity that uses lftp as a backend.
[Test Case]
* Run:
valgrind lftp -e 'get gnu/glibc/
* The fixed package should not perform an invalid read.
[Where problems could occur]
* The change affects how the program cleans up internal structures thus it could crash in different ways due to regressions introduced by the fix.
[Original Bug Text]
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-
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-
Error/debug output:
Using archive dir: /root/.
Using backup name: etc_daily
GPG binary is gpg, version 2.2.4
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
LFTP version is 4.8.1
Using temporary directory /tmp/duplicity-
Registering (mkstemp) temporary file /tmp/duplicity-
SETTINGS:
set ssl:verify-
set ftp:ssl-
set http:use-
set net:timeout 30
set net:max-retries 5
set ftp:passive-
debug
open -u '<username_
Main action: remove-
Acquiring lockfile /root/.
=======
duplicity 0.7.17 (February 26, 2018)
Args: /usr/bin/duplicity remove-
Linux <hostname_removed> 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-
Reading results of 'lftp -c "source /tmp/duplicity-
Backtrace of previous error: Traceback (innermost last):
File "/usr/lib/
return fn(self, *args)
File "/usr/lib/
return [tobytes(x) for x in self.backend.
File "/usr/lib/
_, l, e = self.subprocess
File "/usr/lib/
(logstr, result, stdout + '
' + stderr))
BackendException: Error running 'lftp -c "source /tmp/duplicity-
-rw-r--r-- 1 u234538-sub2 u234538 885032 Oct 28 00:00 duplicity-
-rw-r--r-- 1 u234538-sub2 u234538 885113 Oct 29 00:00 duplicity-
-rw-r--r-- 1 u234538-sub2 u234538 886172 Oct 30 00:00 duplicity-
-rw-r--r-- 1 u234538-sub2 u234538 886175 Oct 31 00:00 duplicity-
-rw-r--r-- 1 u234538-sub2 u234538 886163 Nov 1 00:00 duplicity-
-rw-r--r-- 1 u234538-sub2 u234538 886173 Nov 2 00:00 duplicity-
-rw-r--r-- 1 u234538-sub2 u234538 886625 Nov 3 00:00 duplicity-
-rw-r--r-- 1 u234538-sub2 u234538 481 Oct 28 00:00 duplicity-
-rw-r--r-- 1 u234538-sub2 u234538 64187446 Oct 28 00:00 duplicity-
-rw-r--r-- 1 u234538-sub2 u234538 480 Oct 29 00:00 duplicity-
-rw-r--r-- 1 u234538-sub2 u234538 64189301 Oct 29 00:00 duplicity-
-rw-r--r-- 1 u234538-sub2 u234538 480 Oct 30 00:00 duplicity-
-rw-r--r-- 1 u234538-sub2 u234538 64198883 Oct 30 00:00 duplicity-
-rw-r--r-- 1 u234538-sub2 u234538 479 Oct 31 00:00 duplicity-
-rw-r--r-- 1 u234538-sub2 u234538 64198893 Oct 31 00:00 duplicity-
-rw-r--r-- 1 u234538-sub2 u234538 482 Nov 1 00:00 duplicity-
-rw-r--r-- 1 u234538-sub2 u234538 64198890 Nov 1 00:00 duplicity-
-rw-r--r-- 1 u234538-sub2 u234538 479 Nov 2 00:00 duplicity-
-rw-r--r-- 1 u234538-sub2 u234538 64198894 Nov 2 00:00 duplicity-
-rw-r--r-- 1 u234538-sub2 u234538 481 Nov 3 00:00 duplicity-
-rw-r--r-- 1 u234538-sub2 u234538 64203538 Nov 3 00:00 duplicity-
---- Resolving host address...
---- 2 addresses found: 202:4f8:
---- Connecting to <hostname_removed> (202:4f8:
<--- 220 ProFTPD Server (Backup) [202:4f8:
---> FEAT
<--- 211-Features:
<--- AUTH TLS
<--- CCC
<--- CLNT
<--- EPRT
<--- EPSV
<--- HOST
<--- LANG ko-KR.UTF-
<--- MDTM
<--- MFF modify;
<--- MFMT
<--- MLST modify*
<--- PBSZ
<--- PROT
<--- REST STREAM
<--- SIZE
<--- SSCN
<--- TVFS
<--- UTF8
<--- 211 End
---> CLNT lftp/4.8.1
<--- 200 OK
---> LANG
<--- 200 Using default language en_US
---> OPTS UTF8 ON
<--- 200 UTF8 set to on
---> HOST <hostname_removed>
<--- 504 <hostname_removed>: Unknown hostname provided
---> OPTS MLST modify;
<--- 200 MLST OPTS modify;
---> USER <username_removed>
<--- 331 Password required for <username_removed>
---> PASS <password_removed>
<--- 230 User <username_removed> logged in
---> PWD
<--- 257 "/" is the current directory
---- CWD path to be sent is `/etc_full'
---> CWD /etc_full
<--- 250 CWD command successful
---> EPSV
<--- 229 Entering Extended Passive Mode (|||54612|)
---- Connecting data socket to (202:4f8:
---- Data connection established
---> LIST
<--- 150 Opening ASCII mode data connection for file list
---- Got EOF on data connection
---- Closing data socket
<--- 226 Transfer complete
---> QUIT
<--- 221 Goodbye.
---- Closing control socket
Attempt 1 failed. BackendException: Error running 'lftp -c "source /tmp/duplicity-
-rw-r--r-- 1 u234538-sub2 u234538 885032 Oct 28 00:00 duplicity-
-rw-r--r-- 1 u234538-sub2 u234538 885113 Oct 29 00:00 duplicity-
-rw-r--r-- 1 u234538-sub2 u234538 886172 Oct 30 00:00 duplicity-
-rw-r--r-- 1 u234538-sub2 u234538 886175 Oct 31 00:00 duplicity-
-rw-r--r-- 1 u234538-sub2 u234538 886163 Nov 1 00:00 duplicity-
-rw-r--r-- 1 u234538-sub2 u234538 886173 Nov 2 00:00 duplicity-
-rw-r--r-- 1 u234538-sub2 u234538 886625 Nov 3 00:00 duplicity-
-rw-r--r-- 1 u234538-sub2 u234538 481 Oct 28 00:00 duplicity-
-rw-r--r-- 1 u234538-sub2 u234538 64187446 Oct 28 00:00 duplicity-
-rw-r--r-- 1 u234538-sub2 u234538 480 Oct 29 00:00 duplicity-
-rw-r--r-- 1 u234538-sub2 u234538 64189301 Oct 29 00:00 duplicity-
-rw-r--r-- 1 u234538-sub2 u234538 480 Oct 30 00:00 duplicity-
-rw-r--r-- 1 u234538-sub2 u234538 64198883 Oct 30 00:00 duplicity-
-rw-r--r-- 1 u234538-sub2 u234538 479 Oct 31 00:00 duplicity-
-rw-r--r-- 1 u234538-sub2 u234538 64198893 Oct 31 00:00 duplicity-
-rw-r--r-- 1 u234538-sub2 u234538 482 Nov 1 00:00 duplicity-
-rw-r--r-- 1 u234538-sub2 u234538 64198890 Nov 1 00:00 duplicity-
-rw-r--r-- 1 u234538-sub2 u234538 479 Nov 2 00:00 duplicity-
-rw-r--r-- 1 u234538-sub2 u234538 64198894 Nov 2 00:00 duplicity-
-rw-r--r-- 1 u234538-sub2 u234538 481 Nov 3 00:00 duplicity-
-rw-r--r-- 1 u234538-sub2 u234538 64203538 Nov 3 00:00 duplicity-
Using
Duplicity 0.7.17
Python 2.7.17
Ubuntu 18.04 LTS.
affects: | duplicity → duplicity (Ubuntu) |
summary: |
- lftp support broken - exits with error_code -11 + lftp support broken - exits with error_code -11 on Bionic |
summary: |
- lftp support broken - exits with error_code -11 on Bionic + duplicity's lftp support broken - exits with error_code -11 on Bionic |
Changed in lftp (Ubuntu Focal): | |
status: | New → Fix Released |
Changed in lftp (Ubuntu): | |
status: | Confirmed → Fix Released |
description: | updated |
Thank you for your bug report. Are you sure it has with the glibc update? Could you maybe try to downgrade back those packages to see it if resolves the issue?