[Aptitude-devel] Bug#691846: "aptitude update" segfaults

Stanislav Maslovski stanislav.maslovski at gmail.com
Tue Oct 30 10:17:30 UTC 2012


Package: aptitude
Version: 0.6.8.1-2
Severity: important

Currently, "aptitude update" reproducibly segfaults on my 64-bit
system with the following gdb backtrace:


# gdb /usr/bin/aptitude
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 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".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/aptitude...(no debugging symbols found)...done.
(gdb) set arg update
(gdb) run
Starting program: /usr/bin/aptitude update
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffee027700 (LWP 29292)]
Hit http://security.debian.org wheezy/updates InRelease
Hit http://ftp.fi.debian.org wheezy InRelease                                                                   
Ign http://twinmoons.org.uk stable InRelease
Ign http://dl.google.com stable InRelease
Ign http://deb.opera.com stable InRelease
Hit http://security.debian.org squeeze/updates InRelease                                                                                                           
Ign http://dl.google.com stable InRelease                                                                                                                          
Hit http://twinmoons.org.uk stable Release.gpg                                                                                               
Hit http://deb.opera.com stable Release.gpg                                                                                                  
Ign http://download.skype.com stable InRelease                                                                   
Hit http://dl.google.com stable Release.gpg                                                                      
Hit http://security.debian.org wheezy/updates/main Sources
Hit http://twinmoons.org.uk stable Release
Hit http://deb.opera.com stable Release
Ign http://ftp.fi.debian.org squeeze InRelease                                             
Ign http://download.skype.com stable Release.gpg                                                                       
Hit http://dl.google.com stable Release.gpg
Hit http://security.debian.org wheezy/updates/contrib Sources                                                                                
Hit http://twinmoons.org.uk stable/main Sources                                                                                              
Hit http://deb.opera.com stable/non-free amd64 Packages                                                                                      
Hit http://dl.google.com stable Release                                                                          
Hit http://security.debian.org wheezy/updates/non-free Sources                                                                         
Ign http://download.skype.com stable Release                                                                     
Hit http://deb.opera.com stable/non-free i386 Packages                                                           
Hit http://ftp.fi.debian.org unstable InRelease                                                                  
Hit http://dl.google.com stable Release                                                                          
Hit http://twinmoons.org.uk stable/main amd64 Packages                                                                                                               
Hit http://security.debian.org wheezy/updates/main amd64 Packages                                                                                                    
Hit http://dl.google.com stable/main amd64 Packages                                                                                                                  
Hit http://security.debian.org wheezy/updates/contrib amd64 Packages                                                                         
Ign http://download.skype.com stable/non-free i386 Packages/DiffIndex                                                                        
Hit http://dl.google.com stable/main i386 Packages                                                               
Hit http://twinmoons.org.uk stable/main i386 Packages                                      
Hit http://security.debian.org wheezy/updates/non-free amd64 Packages                                            
Hit http://ftp.fi.debian.org experimental InRelease                                                              
Hit http://security.debian.org wheezy/updates/main i386 Packages                                                                                                   
Hit http://dl.google.com stable/main amd64 Packages                                                                                          
Hit http://security.debian.org wheezy/updates/contrib i386 Packages                                              
Hit http://dl.google.com stable/main i386 Packages                                                               
Hit http://security.debian.org wheezy/updates/non-free i386 Packages                                             
Hit http://ftp.fi.debian.org wheezy/main Sources/DiffIndex                                                       
Hit http://ftp.fi.debian.org wheezy/non-free Sources/DiffIndex                                                   
Hit http://ftp.fi.debian.org wheezy/contrib Sources/DiffIndex
Hit http://ftp.fi.debian.org wheezy/main amd64 Packages/DiffIndex
Hit http://ftp.fi.debian.org wheezy/non-free amd64 Packages/DiffIndex
Hit http://security.debian.org squeeze/updates/main Sources
Hit http://security.debian.org squeeze/updates/contrib Sources
Hit http://security.debian.org squeeze/updates/non-free Sources
Hit http://security.debian.org squeeze/updates/main amd64 Packages
Hit http://download.skype.com stable/non-free i386 Packages
Hit http://ftp.fi.debian.org wheezy/contrib amd64 Packages/DiffIndex
Hit http://ftp.fi.debian.org wheezy/main i386 Packages/DiffIndex
Hit http://ftp.fi.debian.org wheezy/non-free i386 Packages/DiffIndex
Hit http://ftp.fi.debian.org wheezy/contrib i386 Packages/DiffIndex
Hit http://ftp.fi.debian.org wheezy/contrib Translation-en/DiffIndex
Hit http://ftp.fi.debian.org wheezy/main Translation-en/DiffIndex
Hit http://security.debian.org squeeze/updates/contrib amd64 Packages
Hit http://security.debian.org squeeze/updates/non-free amd64 Packages
Hit http://security.debian.org squeeze/updates/main i386 Packages
Hit http://security.debian.org squeeze/updates/contrib i386 Packages
Hit http://ftp.fi.debian.org wheezy/main Translation-ru/DiffIndex
Hit http://ftp.fi.debian.org wheezy/non-free Translation-en/DiffIndex
Hit http://ftp.fi.debian.org squeeze Release.gpg
Hit http://security.debian.org squeeze/updates/non-free i386 Packages
Hit http://ftp.fi.debian.org unstable/main Sources/DiffIndex                                                                                 
Hit http://ftp.fi.debian.org unstable/contrib Sources/DiffIndex
Hit http://ftp.fi.debian.org unstable/non-free Sources/DiffIndex
Ign http://deb.opera.com stable/non-free Translation-en
Ign http://twinmoons.org.uk stable/main Translation-en                     
Ign http://deb.opera.com stable/non-free Translation-ru                                                          
Ign http://twinmoons.org.uk stable/main Translation-ru                                                           
Hit http://ftp.fi.debian.org unstable/main amd64 Packages/DiffIndex                        
Hit http://ftp.fi.debian.org unstable/contrib amd64 Packages/DiffIndex
Ign http://dl.google.com stable/main Translation-en
Ign http://dl.google.com stable/main Translation-ru
Hit http://ftp.fi.debian.org unstable/non-free amd64 Packages/DiffIndex
Ign http://dl.google.com stable/main Translation-en                  
Ign http://dl.google.com stable/main Translation-ru                                              
Ign http://download.skype.com stable/non-free Translation-en                                     
Hit http://ftp.fi.debian.org unstable/main i386 Packages/DiffIndex         
Hit http://ftp.fi.debian.org unstable/contrib i386 Packages/DiffIndex
Ign http://download.skype.com stable/non-free Translation-ru
Hit http://ftp.fi.debian.org unstable/non-free i386 Packages/DiffIndex
Hit http://ftp.fi.debian.org unstable/contrib Translation-en/DiffIndex
Hit http://ftp.fi.debian.org unstable/main Translation-en/DiffIndex
Hit http://ftp.fi.debian.org unstable/main Translation-ru/DiffIndex
Hit http://ftp.fi.debian.org unstable/non-free Translation-en/DiffIndex
Hit http://ftp.fi.debian.org experimental/main Sources/DiffIndex
Hit http://ftp.fi.debian.org experimental/contrib Sources/DiffIndex
Hit http://ftp.fi.debian.org experimental/non-free Sources/DiffIndex
Hit http://ftp.fi.debian.org experimental/main amd64 Packages/DiffIndex
Hit http://ftp.fi.debian.org experimental/contrib amd64 Packages/DiffIndex
Hit http://ftp.fi.debian.org experimental/non-free amd64 Packages/DiffIndex
Hit http://ftp.fi.debian.org experimental/main i386 Packages/DiffIndex
Hit http://ftp.fi.debian.org experimental/contrib i386 Packages/DiffIndex
Hit http://ftp.fi.debian.org experimental/non-free i386 Packages/DiffIndex
Hit http://ftp.fi.debian.org experimental/contrib Translation-en/DiffIndex
Ign http://security.debian.org wheezy/updates/contrib Translation-en
Ign http://security.debian.org wheezy/updates/contrib Translation-ru
Ign http://security.debian.org wheezy/updates/main Translation-en
Hit http://ftp.fi.debian.org experimental/main Translation-en/DiffIndex
Ign http://security.debian.org wheezy/updates/main Translation-ru
Ign http://security.debian.org wheezy/updates/non-free Translation-en      
Hit http://ftp.fi.debian.org experimental/non-free Translation-en/DiffIndex
Ign http://security.debian.org wheezy/updates/non-free Translation-ru
Ign http://security.debian.org squeeze/updates/contrib Translation-en      
Ign http://security.debian.org squeeze/updates/contrib Translation-ru
Hit http://ftp.fi.debian.org squeeze Release
Ign http://security.debian.org squeeze/updates/main Translation-en         
Ign http://security.debian.org squeeze/updates/main Translation-ru
Hit http://ftp.fi.debian.org experimental/non-free amd64 Packages
Ign http://security.debian.org squeeze/updates/non-free Translation-en
Ign http://security.debian.org squeeze/updates/non-free Translation-ru
Hit http://ftp.fi.debian.org squeeze/main Sources    
Hit http://ftp.fi.debian.org squeeze/non-free Sources
Hit http://ftp.fi.debian.org squeeze/contrib Sources
Hit http://ftp.fi.debian.org squeeze/main amd64 Packages
Hit http://ftp.fi.debian.org squeeze/non-free amd64 Packages
Hit http://ftp.fi.debian.org squeeze/contrib amd64 Packages
Hit http://ftp.fi.debian.org squeeze/main i386 Packages
Hit http://ftp.fi.debian.org squeeze/non-free i386 Packages
Hit http://ftp.fi.debian.org squeeze/contrib i386 Packages
Hit http://ftp.fi.debian.org squeeze/main Translation-ru
99% [Working][Thread 0x7fffee027700 (LWP 29292) exited]
[100%] Reading package lists
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7b4fe80 in pkgCacheGenerator::ListParser::NewProvides(pkgCache::VerIterator&, std::string const&, std::string const&, std::string const&) ()
   from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
(gdb) bt
#0  0x00007ffff7b4fe80 in pkgCacheGenerator::ListParser::NewProvides(pkgCache::VerIterator&, std::string const&, std::string const&, std::string const&) ()
   from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
#1  0x00007ffff7b885f1 in debListParser::NewProvidesAllArch(pkgCache::VerIterator&, std::string const&, std::string const&) ()   from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
#2  0x00007ffff7b8a503 in debListParser::ParseProvides(pkgCache::VerIterator&) () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
#3  0x00007ffff7b8b2ec in debListParser::NewVersion(pkgCache::VerIterator&) () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
#4  0x00007ffff7b4e0a8 in pkgCacheGenerator::MergeListVersion(pkgCacheGenerator::ListParser&, pkgCache::PkgIterator&, std::string const&, pkgCache::VerIterator*&) ()
   from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
#5  0x00007ffff7b4f800 in pkgCacheGenerator::MergeList(pkgCacheGenerator::ListParser&, pkgCache::VerIterator*) () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
#6  0x00007ffff7ba3aaa in debPackagesIndex::Merge(pkgCacheGenerator&, OpProgress*) const () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
#7  0x00007ffff7b48252 in ?? () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
#8  0x00007ffff7b4b029 in pkgCacheGenerator::MakeStatusCache(pkgSourceList&, OpProgress*, MMap**, bool) () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
#9  0x00007ffff7b41ccd in pkgCacheFile::BuildCaches(OpProgress*, bool) () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
#10 0x000055555577e381 in ?? ()
#11 0x0000555555707d9b in ?? ()
#12 0x0000555555704880 in ?? ()
#13 0x00005555555eb73b in main ()
(gdb) disassemble 0x00007ffff7b4fe80-32,0x00007ffff7b4fe80+32
Dump of assembler code from 0x7ffff7b4fe60 to 0x7ffff7b4fea0:
   0x00007ffff7b4fe60 <_ZN17pkgCacheGenerator10ListParser11NewProvidesERN8pkgCache11VerIteratorERKSsS5_S5_+912>:        mov    %rdx,0x28(%rsp)
   0x00007ffff7b4fe65 <_ZN17pkgCacheGenerator10ListParser11NewProvidesERN8pkgCache11VerIteratorERKSsS5_S5_+917>:        jmpq   0x7ffff7b4fca0 <_ZN17pkgCacheGenerator10ListParser11NewProvidesERN8pkgCache11VerIteratorERKSsS5_S5_+464>
   0x00007ffff7b4fe6a <_ZN17pkgCacheGenerator10ListParser11NewProvidesERN8pkgCache11VerIteratorERKSsS5_S5_+922>:        nopw   0x0(%rax,%rax,1)
   0x00007ffff7b4fe70 <_ZN17pkgCacheGenerator10ListParser11NewProvidesERN8pkgCache11VerIteratorERKSsS5_S5_+928>:        mov    0x8(%rbp),%rdi
   0x00007ffff7b4fe74 <_ZN17pkgCacheGenerator10ListParser11NewProvidesERN8pkgCache11VerIteratorERKSsS5_S5_+932>:        mov    0x28(%rsp),%rbx   0x00007ffff7b4fe79 <_ZN17pkgCacheGenerator10ListParser11NewProvidesERN8pkgCache11VerIteratorERKSsS5_S5_+937>:        callq  0x7ffff7aed5c0 <_ZN17pkgCacheGenerator16WriteStringInMapEPKc at plt>
   0x00007ffff7b4fe7e <_ZN17pkgCacheGenerator10ListParser11NewProvidesERN8pkgCache11VerIteratorERKSsS5_S5_+942>:        test   %eax,%eax
=> 0x00007ffff7b4fe80 <_ZN17pkgCacheGenerator10ListParser11NewProvidesERN8pkgCache11VerIteratorERKSsS5_S5_+944>:        mov    %eax,0x8(%rbx)
   0x00007ffff7b4fe83 <_ZN17pkgCacheGenerator10ListParser11NewProvidesERN8pkgCache11VerIteratorERKSsS5_S5_+947>:        jne    0x7ffff7b4fd69 <_ZN17pkgCacheGenerator10ListParser11NewProvidesERN8pkgCache11VerIteratorERKSsS5_S5_+665>
   0x00007ffff7b4fe89 <_ZN17pkgCacheGenerator10ListParser11NewProvidesERN8pkgCache11VerIteratorERKSsS5_S5_+953>:        xor    %eax,%eax
   0x00007ffff7b4fe8b <_ZN17pkgCacheGenerator10ListParser11NewProvidesERN8pkgCache11VerIteratorERKSsS5_S5_+955>:        jmp    0x7ffff7b4fe55 <_ZN17pkgCacheGenerator10ListParser11NewProvidesERN8pkgCache11VerIteratorERKSsS5_S5_+901>
   0x00007ffff7b4fe8d <_ZN17pkgCacheGenerator10ListParser11NewProvidesERN8pkgCache11VerIteratorERKSsS5_S5_+957>:        nopl   (%rax)
   0x00007ffff7b4fe90 <_ZN17pkgCacheGenerator10ListParser11NewProvidesERN8pkgCache11VerIteratorERKSsS5_S5_+960>:        xor    %eax,%eax
   0x00007ffff7b4fe92 <_ZN17pkgCacheGenerator10ListParser11NewProvidesERN8pkgCache11VerIteratorERKSsS5_S5_+962>:        jmpq   0x7ffff7b4fdc3 <_ZN17pkgCacheGenerator10ListParser11NewProvidesERN8pkgCache11VerIteratorERKSsS5_S5_+755>
   0x00007ffff7b4fe97 <_ZN17pkgCacheGenerator10ListParser11NewProvidesERN8pkgCache11VerIteratorERKSsS5_S5_+967>:        nopw   0x0(%rax,%rax,1)
End of assembler dump.
(gdb) print /x $rbx
$1 = 0x7ffff3660974
(gdb) print /x *($rbx+0x8)
Cannot access memory at address 0x7ffff366097c
(gdb)



-- 
Stanislav



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

aptitude version information:
aptitude 0.6.8.1 compiled at Sep 25 2012 14:08:38
Compiler: g++ 4.7.2
Compiled against:
  apt version 4.12.0
  NCurses version 5.9
  libsigc++ version: 2.2.10
  Ept support enabled.
  Gtk+ support disabled.
  Qt support disabled.

Current library versions:
  NCurses version: ncurses 5.9.20110404
  cwidget version: 0.5.16
  Apt version: 4.12.0

aptitude linkage:
	linux-vdso.so.1 =>  (0x00007fff6e9ed000)
	libapt-pkg.so.4.12 => /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12 (0x00007f8ab7d7a000)
	libncursesw.so.5 => /lib/x86_64-linux-gnu/libncursesw.so.5 (0x00007f8ab7b4a000)
	libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007f8ab7920000)
	libsigc-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libsigc-2.0.so.0 (0x00007f8ab771b000)
	libcwidget.so.3 => /usr/lib/libcwidget.so.3 (0x00007f8ab741b000)
	libept.so.1.aptpkg4.12 => /usr/lib/libept.so.1.aptpkg4.12 (0x00007f8ab717a000)
	libxapian.so.22 => /usr/lib/libxapian.so.22 (0x00007f8ab6d95000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f8ab6b7e000)
	libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007f8ab68d2000)
	libboost_iostreams.so.1.49.0 => /usr/lib/libboost_iostreams.so.1.49.0 (0x00007f8ab66b9000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f8ab649d000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f8ab6195000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f8ab5f13000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f8ab5cfd000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f8ab5975000)
	libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f8ab5772000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f8ab556e000)
	libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x00007f8ab535d000)
	libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f8ab5158000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f8ab4f4f000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f8ab870e000)

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (200, 'unstable'), (100, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.23-3-minimal (SMP w/4 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages aptitude depends on:
ii  aptitude-common           0.6.8.1-2
ii  libapt-pkg4.12            0.9.7.5
ii  libboost-iostreams1.49.0  1.49.0-3.1
ii  libc6                     2.13-35
ii  libcwidget3               0.5.16-3.4
ii  libept1.4.12              1.0.9
ii  libgcc1                   1:4.7.1-7
ii  libncursesw5              5.9-10
ii  libsigc++-2.0-0c2a        2.2.10-0.2
ii  libsqlite3-0              3.7.13-1
ii  libstdc++6                4.7.1-7
ii  libtinfo5                 5.9-10
ii  libxapian22               1.2.12-1
ii  zlib1g                    1:1.2.7.dfsg-13

Versions of packages aptitude recommends:
pn  apt-xapian-index                <none>
pn  aptitude-doc-en | aptitude-doc  <none>
ii  libparse-debianchangelog-perl   1.2.0-1
ii  sensible-utils                  0.0.7

Versions of packages aptitude suggests:
ii  debtags  1.10.1
ii  tasksel  3.13

-- no debconf information



More information about the Aptitude-devel mailing list