[Aptitude-devel] Bug#815581: aptitude crashes when trying to show information about packages that are not installed

nkiesel nk at iname.com
Mon Feb 22 17:48:12 GMT 2016

Package: aptitude
Version: 0.7.6-1
Severity: important

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***

I just upgraded to the latest aptitude and I get a core dump when running
`aptitude show elpa-projectile` (which is a new package I don't have
installed).  `aptitude show aptitude` works.

lt-nkiesel:~% gdb --args aptitude show elpa-projectile
GNU gdb (Debian 7.10-1+b1) 7.10
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
Find the GDB manual and other documentation resources online at:
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from aptitude...(no debugging symbols found)...done.
(gdb) r
Starting program: /usr/bin/aptitude show elpa-projectile
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffeffa3700 (LWP 32392)]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff55e9d32 in _IO_vfprintf_internal (s=s at entry=0x7fffffffcb20,
format=<optimized out>, format at entry=0x55555587bdb0 "%s (%s), upgrade available
(%s)", ap=ap at entry=0x7fffffffcf80) at vfprintf.c:1642
1642    vfprintf.c: No such file or directory.
(gdb) bt
#0  0x00007ffff55e9d32 in _IO_vfprintf_internal (s=s at entry=0x7fffffffcb20,
format=<optimized out>, format at entry=0x55555587bdb0 "%s (%s), upgrade available
(%s)", ap=ap at entry=0x7fffffffcf80) at vfprintf.c:1642
#1  0x00007ffff5697a36 in ___vsnprintf_chk (s=0x7fffffffcd30 "not installed (",
maxlen=<optimized out>, flags=1, slen=<optimized out>, format=0x55555587bdb0
"%s (%s), upgrade available (%s)",
    args=0x7fffffffcf80) at vsnprintf_chk.c:63
#2  0x00007ffff716ba99 in cwidget::util::vssprintf[abi:cxx11](char const*,
__va_list_tag*) () from /usr/lib/x86_64-linux-gnu/libcwidget.so.3
#3  0x00007ffff716bddb in cwidget::util::ssprintf[abi:cxx11](char const*, ...)
() from /usr/lib/x86_64-linux-gnu/libcwidget.so.3
#4  0x00005555556cc423 in ?? ()
#5  0x00005555556cc694 in ?? ()
#6  0x00005555556ce315 in ?? ()
#7  0x00005555556d0650 in ?? ()
#8  0x00005555556d0dc4 in ?? ()
#9  0x00005555556d1244 in ?? ()
#10 0x00005555556d16e1 in ?? ()
#11 0x00005555555b68ba in ?? ()
#12 0x00007ffff55c1870 in __libc_start_main (main=0x5555555b3460, argc=3,
argv=0x7fffffffe6d8, init=<optimized out>, fini=<optimized out>,
rtld_fini=<optimized out>, stack_end=0x7fffffffe6c8)
    at libc-start.c:291
#13 0x00005555555be2a9 in ?? ()

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

aptitude version information:
aptitude 0.7.6
Compiler: g++ 5.3.1 20160220
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.20160213
  cwidget version: 0.5.17
  Apt version: 5.0.0

aptitude linkage:
	linux-vdso.so.1 (0x00007ffc37bd6000)
	libapt-pkg.so.5.0 => /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0 (0x00007f7176d2c000)
	libncursesw.so.5 => /lib/x86_64-linux-gnu/libncursesw.so.5 (0x00007f7176afc000)
	libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007f71768d1000)
	libsigc-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libsigc-2.0.so.0 (0x00007f71766cb000)
	libcwidget.so.3 => /usr/lib/x86_64-linux-gnu/libcwidget.so.3 (0x00007f71763ce000)
	libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007f71760f7000)
	libboost_iostreams.so.1.58.0 => /usr/lib/x86_64-linux-gnu/libboost_iostreams.so.1.58.0 (0x00007f7175edd000)
	libboost_filesystem.so.1.58.0 => /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.58.0 (0x00007f7175cc4000)
	libboost_system.so.1.58.0 => /usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0 (0x00007f7175abf000)
	libxapian.so.22 => /usr/lib/x86_64-linux-gnu/libxapian.so.22 (0x00007f71756bb000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f717549e000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f7175122000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f7174e1d000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f7174c07000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f7174862000)
	libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f717465f000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f717445b000)
	libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f7174243000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f7174028000)
	libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x00007f7173e18000)
	liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f7173bf4000)
	liblz4.so.1 => /usr/lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f71739e2000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f71737d9000)
	libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f71735d4000)
	/lib64/ld-linux-x86-64.so.2 (0x0000557937044000)

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

Kernel: Linux 4.4.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (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.6-1
ii  libapt-pkg5.0              1.2.3
ii  libboost-filesystem1.58.0  1.58.0+dfsg-5+b1
ii  libboost-iostreams1.58.0   1.58.0+dfsg-5+b1
ii  libboost-system1.58.0      1.58.0+dfsg-5+b1
ii  libc6                      2.21-9
ii  libcwidget3v5              0.5.17-4+b1
ii  libgcc1                    1:5.3.1-9
ii  libncursesw5               6.0+20160213-1
ii  libsigc++-2.0-0v5          2.6.2-1
ii  libsqlite3-0               3.11.0-1
ii  libstdc++6                 5.3.1-9
ii  libtinfo5                  6.0+20160213-1
ii  libxapian22v5              1.2.22-1

Versions of packages aptitude recommends:
ii  aptitude-doc-en [aptitude-doc]  0.7.6-1
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