Bug#783604: "apt list" segfaults
Package: apt
Version: 1.0.9.8
I've just upgraded my big machine to jessie and you've replace my nice
little "apt" script with something else ... Okay I say let's see if it's
any good...
$ apt d
E: Invalid operation d
$ apt
apt 1.0.9.8 for i386 compiled on Apr 13 2015 17:23:06
Usage: apt [options] command
CLI for apt.
Basic commands:
list - list packages based on package names
search - search in package descriptions
show - show package details
update - update list of available packages
install - install packages
remove - remove packages
upgrade - upgrade the system by installing/upgrading packages
full-upgrade - upgrade the system by removing/installing/upgrading packages
edit-sources - edit the source information file
$ apt list
Segmentation fault
$
Well, that was disappointing ... Anything unusual you ask ... well not
really I say, the only thing I have in my lists at this very moment is
jessie. ... well, it's not really unusual but perhaps this ...
$ uname -a
Linux mayday 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt9-3~deb8u1 (2015-04-24) x86_64 GNU/Linux
$ dpkg --print-architecture
i386
$ dpkg --print-foreign-architectures
amd64
armhf
$
No symbols of course...
$ gdb --args apt list
GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1
Copyright (C) 2014 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 "i586-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from apt...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/apt list
Listing... 1%
Program received signal SIGSEGV, Segmentation fault.
0xf7e2b2cb in ?? () from /usr/lib/i386-linux-gnu/libapt-private.so.0.0
(gdb) bt
#0 0xf7e2b2cb in ?? () from /usr/lib/i386-linux-gnu/libapt-private.so.0.0
#1 0xf7e1a8b4 in ?? () from /usr/lib/i386-linux-gnu/libapt-private.so.0.0
#2 0xf7e29a9d in DoList(CommandLine&) () from /usr/lib/i386-linux-gnu/libapt-private.so.0.0
#3 0xf7f488fa in CommandLine::DispatchArg(CommandLine::Dispatch*, bool) () from /usr/lib/i386-linux-gnu/libapt-pkg.so.4.12
#4 0x5655680a in main ()
(gdb) q
A debugging session is active.
Inferior 1 [process 5784] will be killed.
Quit anyway? (y or n) y
$
--
Rob. (Robert de Bath <robert$ @ debath.co.uk>)
<http://www.debath.co.uk/>
Reply to: