← Back to team overview

touch-packages team mailing list archive

[Bug 1332440] Re: apt-get update very slow when ulimit -n is big

 

Yep, it's not fixed:

~ λ docker run --rm ubuntu:14.04 bash -c 'ulimit -n 500000 && apt-get install strace && strace -c -f apt-get update'
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  strace
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 113 kB of archives.
After this operation, 504 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ trusty/main strace amd64 4.8-1ubuntu5 [113 kB]
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
Fetched 113 kB in 0s (179 kB/s)
Selecting previously unselected package strace.
(Reading database ... 11527 files and directories currently installed.)
Preparing to unpack .../strace_4.8-1ubuntu5_amd64.deb ...
Unpacking strace (4.8-1ubuntu5) ...
Setting up strace (4.8-1ubuntu5) ...
Process 47 attached
Process 48 attached
Process 49 attached
Ign http://archive.ubuntu.com trusty InRelease
Ign http://archive.ubuntu.com trusty-updates InRelease
Ign http://archive.ubuntu.com trusty-security InRelease
Hit http://archive.ubuntu.com trusty Release.gpg
Get:1 http://archive.ubuntu.com trusty-updates Release.gpg [933 B]
Get:2 http://archive.ubuntu.com trusty-security Release.gpg [933 B]
Process 50 attached
Process 51 attached
Hit http://archive.ubuntu.com trusty Release
Get:3 http://archive.ubuntu.com trusty-updates Release [63.5 kB]
Process 52 attached
Process 53 attached
Get:4 http://archive.ubuntu.com trusty-security Release [63.5 kB]
Process 54 attached
Get:5 http://archive.ubuntu.com trusty/main Sources [1335 kB]
Process 55 attached
Process 56 attached
^CGet:6 http://archive.ubuntu.com trusty/restricted Sources [5335 B]
Get:7 http://archive.ubuntu.com trusty/universe Sources [7926 kB]
Get:8 http://archive.ubuntu.com trusty/main amd64 Packages [1743 kB]
Get:9 http://archive.ubuntu.com trusty/restricted amd64 Packages [16.0 kB]
Get:10 http://archive.ubuntu.com trusty/universe amd64 Packages [7589 kB]
Get:11 http://archive.ubuntu.com trusty-updates/main Sources [248 kB]
Get:12 http://archive.ubuntu.com trusty-updates/restricted Sources [2310 B]
Get:13 http://archive.ubuntu.com trusty-updates/universe Sources [141 kB]
Get:14 http://archive.ubuntu.com trusty-updates/main amd64 Packages [636 kB]
Get:15 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [15.1 kB]
Get:16 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [356 kB]
Get:17 http://archive.ubuntu.com trusty-security/main Sources [97.7 kB]
Get:18 http://archive.ubuntu.com trusty-security/restricted Sources [1874 B]
Get:19 http://archive.ubuntu.com trusty-security/universe Sources [23.3 kB]
Get:20 http://archive.ubuntu.com trusty-security/main amd64 Packages [329 kB]
Get:21 http://archive.ubuntu.com trusty-security/restricted amd64 Packages [14.8 kB]
Get:22 http://archive.ubuntu.com trusty-security/universe amd64 Packages [128 kB]
FATA[0368] Error response from daemon: Cannot destroy container 327825463e914c72c59f01a5aa1ab25b8ab13eeae55ac961159a729e0f4f3599: Failed to set container state to RemovalInProgress: Status is already RemovalInProgress
~ λ docker run --rm ubuntu:14.04 bash -c 'ulimit -n 500 && apt-get install strace && time strace -c -f apt-get update'
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  strace
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 113 kB of archives.
After this operation, 504 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ trusty/main strace amd64 4.8-1ubuntu5 [113 kB]
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
Fetched 113 kB in 0s (170 kB/s)
Selecting previously unselected package strace.
(Reading database ... 11527 files and directories currently installed.)
Preparing to unpack .../strace_4.8-1ubuntu5_amd64.deb ...
Unpacking strace (4.8-1ubuntu5) ...
Setting up strace (4.8-1ubuntu5) ...
Process 48 attached
Process 49 attached
Process 50 attached
Ign http://archive.ubuntu.com trusty InRelease
Ign http://archive.ubuntu.com trusty-updates InRelease
Ign http://archive.ubuntu.com trusty-security InRelease
Hit http://archive.ubuntu.com trusty Release.gpg
Get:1 http://archive.ubuntu.com trusty-updates Release.gpg [933 B]
Get:2 http://archive.ubuntu.com trusty-security Release.gpg [933 B]
Process 51 attached
Process 52 attached
Hit http://archive.ubuntu.com trusty Release
Process 53 attached
Get:3 http://archive.ubuntu.com trusty-updates Release [63.5 kB]
Process 54 attached
Get:4 http://archive.ubuntu.com trusty-security Release [63.5 kB]
Process 55 attached
Get:5 http://archive.ubuntu.com trusty/main Sources [1335 kB]
Process 56 attached
Process 57 attached
Get:6 http://archive.ubuntu.com trusty/restricted Sources [5335 B]
Get:7 http://archive.ubuntu.com trusty/universe Sources [7926 kB]
Get:8 http://archive.ubuntu.com trusty/main amd64 Packages [1743 kB]
Get:9 http://archive.ubuntu.com trusty/restricted amd64 Packages [16.0 kB]
Get:10 http://archive.ubuntu.com trusty/universe amd64 Packages [7589 kB]
Get:11 http://archive.ubuntu.com trusty-updates/main Sources [248 kB]
Get:12 http://archive.ubuntu.com trusty-updates/restricted Sources [2310 B]
Get:13 http://archive.ubuntu.com trusty-updates/universe Sources [141 kB]
Get:14 http://archive.ubuntu.com trusty-updates/main amd64 Packages [636 kB]
Get:15 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [15.1 kB]
Get:16 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [356 kB]
Get:17 http://archive.ubuntu.com trusty-security/main Sources [97.7 kB]
Get:18 http://archive.ubuntu.com trusty-security/restricted Sources [1874 B]
Get:19 http://archive.ubuntu.com trusty-security/universe Sources [23.3 kB]
Get:20 http://archive.ubuntu.com trusty-security/main amd64 Packages [329 kB]
Get:21 http://archive.ubuntu.com trusty-security/restricted amd64 Packages [14.8 kB]
Get:22 http://archive.ubuntu.com trusty-security/universe amd64 Packages [128 kB]
Process 58 attached
Process 59 attached
Process 60 attached
Fetched 20.7 MB in 20s (1007 kB/s)
Reading package lists...Process 61 attached

Process 62 attached
% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
 47.67    0.022893        1526        15           wait4
 25.60    0.012296           3      4367           select
  7.85    0.003770          10       395         2 close
  5.80    0.002784          44        63           munmap
  5.70    0.002737           1      2982        30 write
  2.38    0.001143           0     15242      3221 read
  1.66    0.000799           0      4980           getrlimit
  1.00    0.000478           1       419        76 open
  0.92    0.000443          30        15           execve
  0.80    0.000386           0      5251      4908 fcntl
  0.19    0.000092           1        81        47 unlink
  0.12    0.000056           0       460       202 stat
  0.11    0.000051           0       395           mmap
  0.10    0.000050           0       119           rt_sigaction
  0.05    0.000025          25         1           getuid
  0.05    0.000024           0       275           fstat
  0.00    0.000000           0         3           poll
  0.00    0.000000           0       254         9 lseek
  0.00    0.000000           0       223           mprotect
  0.00    0.000000           0        55           brk
  0.00    0.000000           0         3           rt_sigprocmask
  0.00    0.000000           0         1           rt_sigreturn
  0.00    0.000000           0         8         6 ioctl
  0.00    0.000000           0       134       131 access
  0.00    0.000000           0        18           pipe
  0.00    0.000000           0        30           dup2
  0.00    0.000000           0         4           getpid
  0.00    0.000000           0         9           socket
  0.00    0.000000           0        24         7 connect
  0.00    0.000000           0         1           sendto
  0.00    0.000000           0         2           recvfrom
  0.00    0.000000           0         3           recvmsg
  0.00    0.000000           0         1           bind
  0.00    0.000000           0         9           getsockname
  0.00    0.000000           0         1           getsockopt
  0.00    0.000000           0        15           clone
  0.00    0.000000           0         6           kill
  0.00    0.000000           0        22           ftruncate
  0.00    0.000000           0        30           getdents
  0.00    0.000000           0         3           getcwd
  0.00    0.000000           0         5           chdir
  0.00    0.000000           0        44           rename
  0.00    0.000000           0        24           chmod
  0.00    0.000000           0        18           fchmod
  0.00    0.000000           0       295           umask
  0.00    0.000000           0         1           geteuid
  0.00    0.000000           0         1           getppid
  0.00    0.000000           0         6         6 statfs
  0.00    0.000000           0        15           arch_prctl
  0.00    0.000000           0        40           utimes
  0.00    0.000000           0        15           openat
  0.00    0.000000           0         3         3 newfstatat
  0.00    0.000000           0         3         3 unlinkat
  0.00    0.000000           0         1           sendmmsg
------ ----------- ----------- --------- --------- ----------------
100.00    0.048027                 36390      8651 total

real	0m23.541s
user	0m6.248s
sys	0m2.920s
~ λ docker run --rm ubuntu:14.04 bash -c 'ulimit -n 5000 && apt-get install strace && time strace -c -f apt-get update'
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  strace
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 113 kB of archives.
After this operation, 504 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ trusty/main strace amd64 4.8-1ubuntu5 [113 kB]
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
Fetched 113 kB in 0s (180 kB/s)
Selecting previously unselected package strace.
(Reading database ... 11527 files and directories currently installed.)
Preparing to unpack .../strace_4.8-1ubuntu5_amd64.deb ...
Unpacking strace (4.8-1ubuntu5) ...
Setting up strace (4.8-1ubuntu5) ...
Process 48 attached
Process 49 attached
Process 50 attached
Ign http://archive.ubuntu.com trusty InRelease
Ign http://archive.ubuntu.com trusty-updates InRelease
Ign http://archive.ubuntu.com trusty-security InRelease
Hit http://archive.ubuntu.com trusty Release.gpg
Get:1 http://archive.ubuntu.com trusty-updates Release.gpg [933 B]
Get:2 http://archive.ubuntu.com trusty-security Release.gpg [933 B]
Process 51 attached
Process 52 attached
Hit http://archive.ubuntu.com trusty Release
Get:3 http://archive.ubuntu.com trusty-updates Release [63.5 kB]
Process 53 attached
Process 54 attached
Get:4 http://archive.ubuntu.com trusty-security Release [63.5 kB]
Process 55 attached
Get:5 http://archive.ubuntu.com trusty/main Sources [1335 kB]
Process 56 attached
Process 57 attached
Get:6 http://archive.ubuntu.com trusty/restricted Sources [5335 B]
Get:7 http://archive.ubuntu.com trusty/universe Sources [7926 kB]
Get:8 http://archive.ubuntu.com trusty/main amd64 Packages [1743 kB]
Get:9 http://archive.ubuntu.com trusty/restricted amd64 Packages [16.0 kB]
Get:10 http://archive.ubuntu.com trusty/universe amd64 Packages [7589 kB]
Get:11 http://archive.ubuntu.com trusty-updates/main Sources [248 kB]
Get:12 http://archive.ubuntu.com trusty-updates/restricted Sources [2310 B]
Get:13 http://archive.ubuntu.com trusty-updates/universe Sources [141 kB]
Get:14 http://archive.ubuntu.com trusty-updates/main amd64 Packages [636 kB]
Get:15 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [15.1 kB]
Get:16 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [356 kB]
Get:17 http://archive.ubuntu.com trusty-security/main Sources [97.7 kB]
Get:18 http://archive.ubuntu.com trusty-security/restricted Sources [1874 B]
Get:19 http://archive.ubuntu.com trusty-security/universe Sources [23.3 kB]
Get:20 http://archive.ubuntu.com trusty-security/main amd64 Packages [329 kB]
Get:21 http://archive.ubuntu.com trusty-security/restricted amd64 Packages [14.8 kB]
Get:22 http://archive.ubuntu.com trusty-security/universe amd64 Packages [128 kB]
Process 58 attached
Process 59 attached
Process 60 attached
Fetched 20.7 MB in 25s (810 kB/s)
Reading package lists...Process 61 attached

Process 62 attached
% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
 87.14    0.202894       13526        15           wait4
  5.74    0.013361           2      6921           select
  1.32    0.003064           0     49980           getrlimit
  1.30    0.003028           0     50253     49908 fcntl
  1.29    0.002994          48        63           munmap
  0.95    0.002207           1      4256        30 write
  0.87    0.002036          25        81        47 unlink
  0.85    0.001978           5       395         2 close
  0.49    0.001146           0     17470      4524 read
  0.03    0.000059           0       395           mmap
  0.02    0.000052           0       254         9 lseek
  0.01    0.000024           0       275           fstat
  0.00    0.000000           0       419        76 open
  0.00    0.000000           0       467       202 stat
  0.00    0.000000           0         3           poll
  0.00    0.000000           0       223           mprotect
  0.00    0.000000           0        55           brk
  0.00    0.000000           0       119           rt_sigaction
  0.00    0.000000           0         3           rt_sigprocmask
  0.00    0.000000           0         1           rt_sigreturn
  0.00    0.000000           0         8         6 ioctl
  0.00    0.000000           0       134       131 access
  0.00    0.000000           0        18           pipe
  0.00    0.000000           0        30           dup2
  0.00    0.000000           0         4           getpid
  0.00    0.000000           0         9           socket
  0.00    0.000000           0        24         7 connect
  0.00    0.000000           0         1           sendto
  0.00    0.000000           0         2           recvfrom
  0.00    0.000000           0         3           recvmsg
  0.00    0.000000           0         1           bind
  0.00    0.000000           0         9           getsockname
  0.00    0.000000           0         1           getsockopt
  0.00    0.000000           0        15           clone
  0.00    0.000000           0        15           execve
  0.00    0.000000           0         6           kill
  0.00    0.000000           0        22           ftruncate
  0.00    0.000000           0        30           getdents
  0.00    0.000000           0         3           getcwd
  0.00    0.000000           0         5           chdir
  0.00    0.000000           0        44           rename
  0.00    0.000000           0        24           chmod
  0.00    0.000000           0        18           fchmod
  0.00    0.000000           0       295           umask
  0.00    0.000000           0         1           getuid
  0.00    0.000000           0         1           geteuid
  0.00    0.000000           0         1           getppid
  0.00    0.000000           0         6         6 statfs
  0.00    0.000000           0        15           arch_prctl
  0.00    0.000000           0        40           utimes
  0.00    0.000000           0        15           openat
  0.00    0.000000           0         3         3 newfstatat
  0.00    0.000000           0         3         3 unlinkat
  0.00    0.000000           0         1           sendmmsg
------ ----------- ----------- --------- --------- ----------------
100.00    0.232843                132455     54954 total

real	0m31.160s
user	0m6.760s
sys	0m7.996s

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1332440

Title:
  apt-get update very slow when ulimit -n is big

Status in apt package in Ubuntu:
  Confirmed

Bug description:
  I use strace to see why apt-get update is too slow,
  finally I found apt-get loop 3~n to '(? , F_SETFD, FD_CLOEXEC) = 0'

  ubuntu 14.04

  root@dev2:/tmp/apt-1.0.1ubuntu2.1# apt-cache show apt
  Package: apt
  Priority: important
  Section: admin
  Installed-Size: 3576
  Maintainer: Ubuntu Developers <ubuntu-devel-discuss@xxxxxxxxxxxxxxxx>
  Original-Maintainer: APT Development Team <deity@xxxxxxxxxxxxxxxx>
  Architecture: amd64
  Version: 1.0.1ubuntu2.1
  Replaces: manpages-it (<< 2.80-4~), manpages-pl (<< 20060617-3~), openjdk-6-jdk (<< 6b24-1.11-0ubuntu1~), sun-java5-jdk (>> 0), sun-java6-jdk (>> 0)
  Depends: libapt-pkg4.12 (>= 0.9.16), libc6 (>= 2.15), libgcc1 (>= 1:4.1.1), libstdc++6 (>= 4.6), ubuntu-keyring, gnupg
  Suggests: aptitude | synaptic | wajig, dpkg-dev (>= 1.17.2), apt-doc, python-apt
  Conflicts: python-apt (<< 0.7.93.2~)
  Breaks: manpages-it (<< 2.80-4~), manpages-pl (<< 20060617-3~), openjdk-6-jdk (<< 6b24-1.11-0ubuntu1~), sun-java5-jdk (>> 0), sun-java6-jdk (>> 0)
  Filename: pool/main/a/apt/apt_1.0.1ubuntu2.1_amd64.deb
  Size: 952374

  
  [pid 20525] stat("/var/lib/apt/lists/mirrors.163.com_ubuntu_dists_trusty-updates_universe_i18n_Translation-en%5fUS", 0x7fffaabe5b30) = -1 ENOENT (No such file or directory)
  [pid 20525] stat("/usr/lib/apt/methods/bzip2", {st_mode=S_IFREG|0755, st_size=23056, ...}) = 0
  [pid 20525] pipe([9, 11])               = 0
  [pid 20525] pipe([13, 14])              = 0
  [pid 20525] fcntl(9, F_SETFD, FD_CLOEXEC) = 0
  [pid 20525] fcntl(11, F_SETFD, FD_CLOEXEC) = 0
  [pid 20525] fcntl(13, F_SETFD, FD_CLOEXEC) = 0
  [pid 20525] fcntl(14, F_SETFD, FD_CLOEXEC) = 0
  [pid 20525] clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f99f1ea9a50) = 20538
  Process 20538 attached
  [pid 20525] fcntl(9, F_GETFL)           = 0 (flags O_RDONLY)
  [pid 20525] fcntl(9, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
  [pid 20538] rt_sigaction(SIGPIPE, {SIG_DFL, [PIPE], SA_RESTORER|SA_RESTART, 0x7f99f0e72ff0},  <unfinished ...>
  [pid 20525] fcntl(14, F_GETFL <unfinished ...>
  [pid 20538] <... rt_sigaction resumed> {SIG_IGN, [PIPE], SA_RESTORER|SA_RESTART, 0x7f99f0e72ff0}, 8) = 0
  [pid 20525] <... fcntl resumed> )       = 0x1 (flags O_WRONLY)
  [pid 20538] rt_sigaction(SIGQUIT, {SIG_DFL, [QUIT], SA_RESTORER|SA_RESTART, 0x7f99f0e72ff0},  <unfinished ...>
  [pid 20525] fcntl(14, F_SETFL, O_WRONLY|O_NONBLOCK <unfinished ...>
  [pid 20538] <... rt_sigaction resumed> {SIG_DFL, [], 0}, 8) = 0
  [pid 20525] <... fcntl resumed> )       = 0
  [pid 20538] rt_sigaction(SIGINT, {SIG_DFL, [INT], SA_RESTORER|SA_RESTART, 0x7f99f0e72ff0},  <unfinished ...>
  [pid 20525] close(11 <unfinished ...>
  [pid 20538] <... rt_sigaction resumed> {SIG_DFL, [], 0}, 8) = 0
  [pid 20525] <... close resumed> )       = 0
  [pid 20538] rt_sigaction(SIGWINCH, {SIG_DFL, [WINCH], SA_RESTORER|SA_RESTART, 0x7f99f0e72ff0},  <unfinished ...>
  [pid 20525] close(13 <unfinished ...>
  [pid 20538] <... rt_sigaction resumed> {0x409140, [WINCH], SA_RESTORER|SA_RESTART, 0x7f99f0e72ff0}, 8) = 0
  [pid 20525] <... close resumed> )       = 0
  [pid 20538] rt_sigaction(SIGCONT, {SIG_DFL, [CONT], SA_RESTORER|SA_RESTART, 0x7f99f0e72ff0},  <unfinished ...>
  [pid 20525] select(10, [9], NULL, NULL, NULL <unfinished ...>
  [pid 20538] <... rt_sigaction resumed> {SIG_DFL, [], 0}, 8) = 0
  [pid 20538] rt_sigaction(SIGTSTP, {SIG_DFL, [TSTP], SA_RESTORER|SA_RESTART, 0x7f99f0e72ff0}, {SIG_DFL, [], 0}, 8) = 0
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(3, F_SETFD, FD_CLOEXEC) = 0
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(4, F_SETFD, FD_CLOEXEC) = 0
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(5, F_SETFD, FD_CLOEXEC) = 0
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(6, F_SETFD, FD_CLOEXEC) = 0
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(7, F_SETFD, FD_CLOEXEC) = 0
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(8, F_SETFD, FD_CLOEXEC) = 0
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(9, F_SETFD, FD_CLOEXEC) = 0
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(10, F_SETFD, FD_CLOEXEC) = 0
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(11, F_SETFD, FD_CLOEXEC) = 0
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(12, F_SETFD, FD_CLOEXEC) = 0
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(13, F_SETFD, FD_CLOEXEC) = 0
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(14, F_SETFD, FD_CLOEXEC) = 0
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(15, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(16, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(17, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(18, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(19, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(20, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(21, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(22, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(23, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(24, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(25, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(26, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(27, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(28, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(29, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(30, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(31, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(32, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(33, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(34, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(35, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(36, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(37, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(38, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(39, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(40, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(41, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(42, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(43, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(44, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(45, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(46, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(47, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(48, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(49, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(50, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(51, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(52, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(53, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(54, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(55, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(56, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(57, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(58, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(59, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(60, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(61, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(62, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(63, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(64, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(65, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(66, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(67, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(68, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(69, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(70, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(71, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(72, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(73, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(74, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(75, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(76, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(77, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(78, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(79, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(80, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(81, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(82, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(83, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(84, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(85, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(86, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(87, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(88, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(89, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(90, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(91, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(92, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(93, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(94, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(95, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(96, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(97, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(98, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] fcntl(99, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
  [pid 20538] getrlimit(RLIMIT_NOFILE, {rlim_cur=100, rlim_max=100}) = 0
  [pid 20538] dup2(11, 1)                 = 1
  [pid 20538] dup2(13, 0)                 = 0
  [pid 20538] fcntl(1, F_SETFD, 0)        = 0
  [pid 20538] fcntl(0, F_SETFD, 0)        = 0

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: apt 1.0.1ubuntu2
  ProcVersionSignature: Ubuntu 3.13.0-24.46-generic 3.13.9
  Uname: Linux 3.13.0-24-generic x86_64
  ApportVersion: 2.14.1-0ubuntu3
  Architecture: amd64
  Date: Fri Jun 20 15:36:00 2014
  InstallationDate: Installed on 2011-10-08 (985 days ago)
  InstallationMedia: Ubuntu-Server 11.04 "Natty Narwhal" - Release amd64 (20110426)
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: apt
  UpgradeStatus: Upgraded to trusty on 2014-04-29 (51 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1332440/+subscriptions