* Jakub Wilk <jw...@debian.org>, 2015-08-26, 20:55:
# apt-cache policy apt Segmentation fault
Backtrace: #0 0xf7ed9455 in DependsList (this=0xffffca2c) at ../build/include/apt-pkg/cacheiterators.h:512 #1 pkgCacheGenerator::NewDepends (this=0x5657e8e8, Pkg=..., Ver=..., Version=6418874, Op=3 '\003', Type=8 '\b', OldDepLast=@0xffffca28: 0xf6e47070) at /build/apt-pcmtZa/apt-1.1~exp10/apt-pkg/pkgcachegen.cc:933 #2 0xf7edad31 in pkgCacheGenerator::NewPackage (this=0x5657e8e8, Pkg=..., Name="python-gobject-dev", Arch="amd64") at /build/apt-pcmtZa/apt-1.1~exp10/apt-pkg/pkgcachegen.cc:607 #3 0xf7edb854 in pkgCacheListParser::NewDepends (this=0x565857f8, Ver=..., PackageName="python-gobject-dev", Arch="amd64", Version="2.11.2", Op=2 '\002', Type=1 '\001') at /build/apt-pcmtZa/apt-1.1~exp10/apt-pkg/pkgcachegen.cc:987 #4 0xf7f39b13 in debListParser::ParseDepends (this=0x565857f8, Ver=..., Tag=0xf7f810bb "Depends", Type=1) at /build/apt-pcmtZa/apt-1.1~exp10/apt-pkg/deb/deblistparser.cc:791 #5 0xf7f3a100 in debListParser::NewVersion (this=0x565857f8, Ver=...) at /build/apt-pcmtZa/apt-1.1~exp10/apt-pkg/deb/deblistparser.cc:208 #6 0xf7ed9a20 in pkgCacheGenerator::MergeListVersion (this=0x5657e8e8, List=..., Pkg=..., Version="0.10.22-3", OutVer=@0xffffcf1c: 0x0) at /build/apt-pcmtZa/apt-1.1~exp10/apt-pkg/pkgcachegen.cc:393 #7 0xf7edb38a in pkgCacheGenerator::MergeList (this=0x5657e8e8, List=..., OutVer=0x0) at /build/apt-pcmtZa/apt-1.1~exp10/apt-pkg/pkgcachegen.cc:248 #8 0xf7ed3321 in pkgDebianIndexFile::Merge (this=0x56581380, Gen=..., Prog=0x0) at /build/apt-pcmtZa/apt-1.1~exp10/apt-pkg/indexfile.cc:348 #9 0xf7edc6ef in operator() (I=0x56581380, __closure=<synthetic pointer>) at /build/apt-pcmtZa/apt-1.1~exp10/apt-pkg/pkgcachegen.cc:1403 #10 for_each<__gnu_cxx::__normal_iterator<pkgIndexFile**, std::vector<pkgIndexFile*> >, BuildCache(pkgCacheGenerator&, OpProgress*, map_filesize_t&, map_filesize_t, const pkgSourceList*, FileIterator, FileIterator)::<lambda(pkgIndexFile*)> > (__f=..., __last=..., __first=) at /usr/include/c++/5/bits/stl_algo.h:3767 #11 BuildCache (Gen=..., Progress=0x565827e8, Progress@entry=0x0, CurrentSize=@0x56579608: 6221704538560653352, TotalSize=117254225, List=0x5657c528, Start=, End=) at /build/apt-pcmtZa/apt-1.1~exp10/apt-pkg/pkgcachegen.cc:1423 #12 0xf7edeb3d in pkgCacheGenerator::MakeStatusCache (List=..., Progress=0x0, OutMap=0xffffd558, AllowMem=true) at /build/apt-pcmtZa/apt-1.1~exp10/apt-pkg/pkgcachegen.cc:1603 #13 0xf7ea6dae in pkgCacheFile::BuildCaches (this=0xffffd54c, Progress=0x0, WithLock=<optimized out>) at /build/apt-pcmtZa/apt-1.1~exp10/apt-pkg/cachefile.cc:97 #14 0x5655b656 in GetPkgCache (this=0xffffd54c) at ../build/include/apt-pkg/cachefile.h:77 #15 Policy (CmdL=...) at /build/apt-pcmtZa/apt-1.1~exp10/cmdline/apt-cache.cc:1634 #16 0xf7f7b76a in CommandLine::DispatchArg (this=0xffffd6c8, Map=0xffffd6d4, NoMatch=true) at /build/apt-pcmtZa/apt-1.1~exp10/apt-pkg/contrib/cmndline.cc:386 #17 0x56559cc7 in main (argc=3, argv=0xffffd834) at /build/apt-pcmtZa/apt-1.1~exp10/cmdline/apt-cache.cc:1945
This is on i386.
...with amd64 as foreign arch. $ grep '^[^#]' /etc/apt/sources.list deb http://ftp.debian.org/debian unstable main contrib non-free deb http://ftp.debian.org/debian experimental main contrib non-free deb-src http://ftp.debian.org/debian unstable main contrib non-free -- Jakub Wilk