[Aptitude-devel] Bug#814408: aptitude uses all disk space (12G) with recursive trace-dump in /tmp

Chris Tillman toff.tillman at gmail.com
Thu Feb 11 10:00:17 UTC 2016


Package: aptitude
Version: 0.7.5-3
Severity: critical
Justification: breaks unrelated software

Dear Maintainer,

   * What led up to the situation?
I had upgraded all packages a couple of weeks ago to testing current level.
Today I opened aptitude, performed update, and it said there were 123 packages
to be updated. I marked the Upgradeable line with +.
It said it was Resolving Dependencies, and then became unresponsive. I went on
to do something else. After 10 minutes or so I found I could not use readline
completion in bash because I had run out of disk space on the root device.
Going back to the aptitude window, I saw many out of disk space messages.
I hit OK on the messages window, and then canceled my pending actions and quit
aptitude.
Once back on the command line, I confirmed I was out of space with df -h.

root at ctillman:/home/chris# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda5        19G   17G  865M  96% /

 Conveniently, I had just done df -h before starting the upgrade, so I scrolled
back up and verified I had 12G free beforehand.

root at ctillman:/home/chris# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda5        19G  7.0G   11G  41% /

I then used du to drill down to where the space was being used. Here are the
final few lines.

root at ctillman:/home/chris# du --max-depth=1 -h /tmp/aptitude-root.7985\:PR9HPH/
9.7G    /tmp/aptitude-root.7985:PR9HPH/aptitude-trace-dumpubvton
9.7G    /tmp/aptitude-root.7985:PR9HPH/
root at ctillman:/home/chris# du --max-depth=1 -h /tmp/aptitude-
root.7985\:PR9HPH/*
9.7G    /tmp/aptitude-root.7985:PR9HPH/aptitude-trace-dumpubvton/usr
16K     /tmp/aptitude-root.7985:PR9HPH/aptitude-trace-dumpubvton/etc
24K     /tmp/aptitude-root.7985:PR9HPH/aptitude-trace-dumpubvton/var
9.7G    /tmp/aptitude-root.7985:PR9HPH/aptitude-trace-dumpubvton
root at ctillman:/home/chris# du --max-depth=1 -h /tmp/aptitude-
root.7985\:PR9HPH/usr
du: cannot access ‘/tmp/aptitude-root.7985:PR9HPH/usr’: No such file or
directory
root at ctillman:/home/chris# du --max-depth=1 -h /tmp/aptitude-root.7985\:PR9HPH
/aptitude-trace-dumpubvton/usr
9.7G    /tmp/aptitude-root.7985:PR9HPH/aptitude-trace-dumpubvton/usr/bin
9.7G    /tmp/aptitude-root.7985:PR9HPH/aptitude-trace-dumpubvton/usr
root at ctillman:/home/chris# du --max-depth=1 -h /tmp/aptitude-root.7985\:PR9HPH
/aptitude-trace-dumpubvton/usr/bin
9.7G    /tmp/aptitude-root.7985:PR9HPH/aptitude-trace-dumpubvton/usr/bin/X11
9.7G    /tmp/aptitude-root.7985:PR9HPH/aptitude-trace-dumpubvton/usr/bin
root at ctillman:/home/chris# du --max-depth=1 -h /tmp/aptitude-root.7985\:PR9HPH
/aptitude-trace-dumpubvton/usr/bin/X11
9.7G    /tmp/aptitude-root.7985:PR9HPH/aptitude-trace-
dumpubvton/usr/bin/X11/X11
9.7G    /tmp/aptitude-root.7985:PR9HPH/aptitude-trace-dumpubvton/usr/bin/X11
root at ctillman:/home/chris# du --max-depth=1 -h /tmp/aptitude-root.7985\:PR9HPH
/aptitude-trace-dumpubvton/usr/bin/X11/X11/X11/X11/X11/X11/
9.7G    /tmp/aptitude-root.7985:PR9HPH/aptitude-trace-
dumpubvton/usr/bin/X11/X11/X11/X11/X11/X11/X11
9.7G    /tmp/aptitude-root.7985:PR9HPH/aptitude-trace-
dumpubvton/usr/bin/X11/X11/X11/X11/X11/X11/

As you can see, the X11 directory has been recursively created.
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
Quit aptitude, that freed up about 1G. Then
root at ctillman:/home/chris# rm -rf /tmp/aptitude-root.7985:PR9HPH/aptitude-
trace-dumpubvton/usr/bin/X11/X11/X11/X11/X11/X11/

   * What was the outcome of this action?
root at ctillman:/home/chris# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda5        19G  6.9G   11G  40% /



-- Package-specific info:
$TERM not set.
$DISPLAY is set.
which aptitude: /usr/bin/aptitude

aptitude version information:
aptitude 0.7.5
Compiler: g++ 5.3.1 20151207
Compiled against:
  apt version 5.0.0
  NCurses version 6.0
  libsigc++ version: 2.6.2
  Gtk+ support disabled.
  Qt support disabled.

Current library versions:
  NCurses version: ncurses 6.0.20151024
  cwidget version: 0.5.17
  Apt version: 5.0.0

aptitude linkage:
	linux-gate.so.1 (0xb7710000)
	libapt-pkg.so.5.0 => /usr/lib/i386-linux-gnu/libapt-pkg.so.5.0 (0xb71b8000)
	libncursesw.so.5 => /lib/i386-linux-gnu/libncursesw.so.5 (0xb7182000)
	libtinfo.so.5 => /lib/i386-linux-gnu/libtinfo.so.5 (0xb715d000)
	libsigc-2.0.so.0 => /usr/lib/i386-linux-gnu/libsigc-2.0.so.0 (0xb7156000)
	libcwidget.so.3 => /usr/lib/i386-linux-gnu/libcwidget.so.3 (0xb7053000)
	libsqlite3.so.0 => /usr/lib/i386-linux-gnu/libsqlite3.so.0 (0xb6f71000)
	libboost_iostreams.so.1.58.0 => /usr/lib/i386-linux-gnu/libboost_iostreams.so.1.58.0 (0xb6f58000)
	libboost_filesystem.so.1.58.0 => /usr/lib/i386-linux-gnu/libboost_filesystem.so.1.58.0 (0xb6f3c000)
	libboost_system.so.1.58.0 => /usr/lib/i386-linux-gnu/libboost_system.so.1.58.0 (0xb6f37000)
	libxapian.so.22 => /usr/lib/i386-linux-gnu/sse2/libxapian.so.22 (0xb6d2d000)
	libpthread.so.0 => /lib/i386-linux-gnu/i686/cmov/libpthread.so.0 (0xb6d10000)
	libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xb6ba0000)
	libm.so.6 => /lib/i386-linux-gnu/i686/cmov/libm.so.6 (0xb6b52000)
	libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xb6b35000)
	libc.so.6 => /lib/i386-linux-gnu/i686/cmov/libc.so.6 (0xb697d000)
	libutil.so.1 => /lib/i386-linux-gnu/i686/cmov/libutil.so.1 (0xb6979000)
	libdl.so.2 => /lib/i386-linux-gnu/i686/cmov/libdl.so.2 (0xb6974000)
	libresolv.so.2 => /lib/i386-linux-gnu/i686/cmov/libresolv.so.2 (0xb695b000)
	libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xb693e000)
	libbz2.so.1.0 => /lib/i386-linux-gnu/libbz2.so.1.0 (0xb692b000)
	liblzma.so.5 => /lib/i386-linux-gnu/liblzma.so.5 (0xb6902000)
	liblz4.so.1 => /usr/lib/i386-linux-gnu/liblz4.so.1 (0xb68ef000)
	librt.so.1 => /lib/i386-linux-gnu/i686/cmov/librt.so.1 (0xb68e5000)
	libuuid.so.1 => /lib/i386-linux-gnu/libuuid.so.1 (0xb68df000)
	/lib/ld-linux.so.2 (0x80030000)

-- System Information:
Debian Release: stretch/sid
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 4.3.0-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_NZ.utf8, LC_CTYPE=en_NZ.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages aptitude depends on:
ii  aptitude-common            0.7.5-3
ii  libapt-pkg5.0              1.2.1
ii  libboost-filesystem1.58.0  1.58.0+dfsg-4.1
ii  libboost-iostreams1.58.0   1.58.0+dfsg-4.1
ii  libboost-system1.58.0      1.58.0+dfsg-4.1
ii  libc6                      2.21-7
ii  libcwidget3v5              0.5.17-4+b1
ii  libgcc1                    1:5.3.1-7
ii  libncursesw5               6.0+20151024-2
ii  libsigc++-2.0-0v5          2.6.2-1
ii  libsqlite3-0               3.10.2-1
ii  libstdc++6                 5.3.1-7
ii  libtinfo5                  6.0+20151024-2
ii  libxapian22v5              1.2.22-1

Versions of packages aptitude recommends:
ii  aptitude-doc-en [aptitude-doc]  0.7.5-3
ii  libparse-debianchangelog-perl   1.2.0-8
ii  sensible-utils                  0.0.9

Versions of packages aptitude suggests:
pn  apt-xapian-index  <none>
pn  debtags           <none>
ii  tasksel           3.34

-- no debconf information



More information about the Aptitude-devel mailing list