[Aptitude-devel] Bug#751117: aptitude segfaults when trying to acquire root powers via sudo

Jose Antonio Ortega Ruiz jao at gnu.org
Tue Jun 10 13:32:28 UTC 2014

Package: aptitude
Version: 0.6.11-1
Severity: important

I've got a local configuration file in ~/.aptitude/config with the

  aptitude::Keep-Unused-Pattern "";
  aptitude::Delete-Unused-Pattern "";
  aptitude::Suppress-Read-Only-Warning "true";
  aptitude::Get-Root-Command "sudo";

and my user belongs to the sudoers group, and sudo is configured so
that that user does not need to type her password when executing sudo
commands.  This setup has been working for years, and broke a few days

When i do a U in aptitude to update the package list, i get the usual
dialog asking me if i'd like to change the root account.  When i
accept by hitting return on the "Become root" button, aptitude
immediately segfaults.

I've tried to eliminate the possibility of a ncurses problem by using
xterm instead of rxvt, and i have the exact some behaviour in both

-- Package-specific info:
Terminal: rxvt-unicode-256color
$DISPLAY is set.
which aptitude: /usr/bin/aptitude

aptitude version information:
aptitude 0.6.11 compiled at Jun  9 2014 20:46:57
Compiler: g++ 4.8.3
Compiled against:
  apt version 4.12.0
  NCurses version 5.9
  libsigc++ version: 2.2.11
  Gtk+ support disabled.
  Qt support disabled.

Current library versions:
  NCurses version: ncurses 5.9.20140118
  cwidget version: 0.5.17
  Apt version: 4.12.0

aptitude linkage:
	linux-vdso.so.1 (0x00007fff05ef0000)
	libapt-pkg.so.4.12 => /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12 (0x00007fdddef12000)
	libncursesw.so.5 => /lib/x86_64-linux-gnu/libncursesw.so.5 (0x00007fdddecdd000)
	libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007fdddeab2000)
	libsigc-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libsigc-2.0.so.0 (0x00007fddde8ad000)
	libcwidget.so.3 => /usr/lib/x86_64-linux-gnu/libcwidget.so.3 (0x00007fddde5a6000)
	libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007fddde2e9000)
	libboost_iostreams.so.1.55.0 => /usr/lib/x86_64-linux-gnu/libboost_iostreams.so.1.55.0 (0x00007fddde0d1000)
	libxapian.so.22 => /usr/lib/libxapian.so.22 (0x00007fddddcd3000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fddddab5000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fdddd7aa000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fdddd4a9000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fdddd292000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fdddcee9000)
	libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007fdddcce6000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fdddcae1000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fdddc8c9000)
	libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x00007fdddc6b9000)
	liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007fdddc495000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fdddc28d000)
	libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007fdddc087000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fdddf89b000)

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.14-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages aptitude depends on:
ii  aptitude-common           0.6.11-1
ii  libapt-pkg4.12            1.0.3
ii  libboost-iostreams1.55.0  1.55.0+dfsg-1
ii  libc6                     2.19-1
ii  libcwidget3               0.5.17-1
ii  libgcc1                   1:4.9.0-6
ii  libncursesw5              5.9+20140118-1
ii  libsigc++-2.0-0c2a        2.2.11-3
ii  libsqlite3-0    
ii  libstdc++6                4.9.0-6
ii  libtinfo5                 5.9+20140118-1
ii  libxapian22               1.2.17-1

Versions of packages aptitude recommends:
pn  aptitude-doc-en | aptitude-doc  <none>
pn  libparse-debianchangelog-perl   <none>
ii  sensible-utils                  0.0.9

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

-- no debconf information

More information about the Aptitude-devel mailing list