[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#216249: marked as done (apt utils segfault)



Your message dated Fri, 19 Aug 2011 12:05:22 +0200
with message-id <20110819115258.GA4040@debian.org>
and subject line Re: Bug#81829: "Segmentation faulty tree" (#270147) still present in Lenny, broken /var/cache/apt/*.bin available for download
has caused the Debian Bug report #81829,
regarding apt utils segfault
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
81829: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=81829
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: apt
Version: 0.5.4
Severity: normal

apt-get update segfaults
backtrace:
#0  0x400a2270 in pkgCacheGenerator::ListParser::NewDepends () from /usr/lib/libapt-pkg-libc6.2-3-2.so.3.2
#1  0x400b7b69 in debListParser::ParseDepends () from /usr/lib/libapt-pkg-libc6.2-3-2.so.3.2
#2  0x400b6563 in debListParser::NewVersion () from /usr/lib/libapt-pkg-libc6.2-3-2.so.3.2
#3  0x400a0be9 in pkgCacheGenerator::MergeList () from /usr/lib/libapt-pkg-libc6.2-3-2.so.3.2
#4  0x400cb884 in debStatusIndex::Merge () from /usr/lib/libapt-pkg-libc6.2-3-2.so.3.2
#5  0x400a44ff in pkgCacheGenerator::WriteUniqString () from /usr/lib/libapt-pkg-libc6.2-3-2.so.3.2
#6  0x400a5bae in pkgMakeStatusCache () from /usr/lib/libapt-pkg-libc6.2-3-2.so.3.2
#7  0x4009a825 in pkgCacheFile::Open () from /usr/lib/libapt-pkg-libc6.2-3-2.so.3.2
#8  0x08056037 in strcpy ()
#9  0x4006931a in CommandLine::DispatchArg () from /usr/lib/libapt-pkg-libc6.2-3-2.so.3.2
#10 0x08063610 in strcpy ()
#11 0x4018314f in __libc_start_main () from /lib/libc.so.6

apt-get check segfaults:

#0  0x400a2270 in pkgCacheGenerator::ListParser::NewDepends () from /usr/lib/libapt-pkg-libc6.2-3-2.so.3.2
#1  0x400b7b69 in debListParser::ParseDepends () from /usr/lib/libapt-pkg-libc6.2-3-2.so.3.2
#2  0x400b6563 in debListParser::NewVersion () from /usr/lib/libapt-pkg-libc6.2-3-2.so.3.2
#3  0x400a0be9 in pkgCacheGenerator::MergeList () from /usr/lib/libapt-pkg-libc6.2-3-2.so.3.2
#4  0x400cb884 in debStatusIndex::Merge () from /usr/lib/libapt-pkg-libc6.2-3-2.so.3.2
#5  0x400a44ff in pkgCacheGenerator::WriteUniqString () from /usr/lib/libapt-pkg-libc6.2-3-2.so.3.2
#6  0x400a5bae in pkgMakeStatusCache () from /usr/lib/libapt-pkg-libc6.2-3-2.so.3.2
#7  0x4009a825 in pkgCacheFile::Open () from /usr/lib/libapt-pkg-libc6.2-3-2.so.3.2
#8  0x0805d2c0 in strcpy ()
#9  0x4006931a in CommandLine::DispatchArg () from /usr/lib/libapt-pkg-libc6.2-3-2.so.3.2
#10 0x08063610 in strcpy ()
#11 0x4018314f in __libc_start_main () from /lib/libc.so.6

Hmm perhaps it is because of my sources.list

after removing testing and unstable - there is no segfault anymore
adding testing again => segfault

which one of testing?

ups with this one:
deb http://ftp.de.debian.org/debian testing main contrib non-free
now i get an error message :

Reading Package Lists... Error!
E: Dynamic MMap ran out of room
E: Dynamic MMap ran out of room
E: Error occured while processing netstd (NewVersion1)
E: Problem with MergeList /var/lib/dpkg/status
E: The package lists or status file could not be parsed or opened.
(no debugging symbols found)...(no debugging symbols found)...
Program exited with code 0144.

this one works:
deb http://ftp.de.debian.org/debian-non-US testing/non-US main contrib non-free

and both:
deb http://ftp.de.debian.org/debian testing main contrib non-free
deb http://ftp.de.debian.org/debian-non-US testing/non-US main contrib non-free

give me a segfault:

Program received signal SIGSEGV, Segmentation fault.
0x400a2270 in pkgCacheGenerator::ListParser::NewDepends () from /usr/lib/libapt-pkg-libc6.2-3-2.so.3.2
(gdb) bt
#0  0x400a2270 in pkgCacheGenerator::ListParser::NewDepends () from /usr/lib/libapt-pkg-libc6.2-3-2.so.3.2
#1  0x400b7b69 in debListParser::ParseDepends () from /usr/lib/libapt-pkg-libc6.2-3-2.so.3.2
#2  0x400b6563 in debListParser::NewVersion () from /usr/lib/libapt-pkg-libc6.2-3-2.so.3.2
#3  0x400a0be9 in pkgCacheGenerator::MergeList () from /usr/lib/libapt-pkg-libc6.2-3-2.so.3.2
#4  0x400cb884 in debStatusIndex::Merge () from /usr/lib/libapt-pkg-libc6.2-3-2.so.3.2
#5  0x400a44ff in pkgCacheGenerator::WriteUniqString () from /usr/lib/libapt-pkg-libc6.2-3-2.so.3.2
#6  0x400a69ba in pkgMakeStatusCache () from /usr/lib/libapt-pkg-libc6.2-3-2.so.3.2
#7  0x4009a825 in pkgCacheFile::Open () from /usr/lib/libapt-pkg-libc6.2-3-2.so.3.2
#8  0x08056037 in strcpy ()
#9  0x4006931a in CommandLine::DispatchArg () from /usr/lib/libapt-pkg-libc6.2-3-2.so.3.2
#10 0x08063610 in strcpy ()
#11 0x4018314f in __libc_start_main () from /lib/libc.so.6

hope this helps


-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux quark 2.4.20-quark #1 Fre Mär 21 15:28:04 CET 2003 i586
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro

Versions of packages apt depends on:
hi  libc6                  2.2.5-11.5        GNU C Library: Shared libraries an
ii  libstdc++2.10-glibc2.2 1:2.95.4-11woody1 The GNU stdc++ library



--- End Message ---
--- Begin Message ---
Source: apt
Source-Version: 0.8.16~exp4

apt (0.8.16~exp4) experimental; urgency=low

   [ Julian Andres Klode ]
   * apt-pkg/pkgcache.h:
     - [ABI break] Add pkgCache::Header::CacheFileSize, storing the cache size
   * apt-pkg/pkgcachegen.cc:
     - Write the file size to the cache
   * apt-pkg/pkgcache.cc:
     - Check that cache is at least CacheFileSize bytes large (LP: #16467)

On Thu, Aug 18, 2011 at 04:16:05PM -0500, Jonathan Nieder wrote:
> tags 81829 - moreinfo
> quit
> 
> Axel Beckert wrote:
> 
> > I occasionally ran into this bug on Lenny, can't remember on which
> > platform, but never deterministically.
> >
> > But today I reproducibly ran into this bug with both, apt-get and
> > aptitude. Independent of what I did: aptitude; aptitude -u; aptitude
> > upgrade; apt-get upgrade, I always get the "Segmentation faulty
> > tree... 50%" ("Building dependency tree... 50%^MSegmentation fault").
> >
> > Moving /var/lib/apt/extended_states away didn't help.
> >
> > Couldn't even do an apt-get install gdb for generating a backtrace.
> >
> > Moving away pkgcache.bin and srcpkgcache.bin from /var/cache/apt/
> > finally did help (thanks to waldi for that hint), but copying them
> > back after upgrading two packages didn't reproduce the segfault --
> > they always got recreated.
> 
> Thanks!  No promises about being able to take a look soon, but I've
> downloaded them.
I closed the Launchpad bug in 0.8.16~exp4, but forgot to close that 
one. We still cannot detect invalid caches where data changes, but we
can now detect all truncated caches, and reject them.

I could have included a CRC checksum in the header of the remaining
cache, but our experience so far is that 

 (a) most (all?) of these bugs are the result of truncated cache files
 (b) checksumming the cache on opening is much slower than we want,
     especially on ARM systems (200 ms on abel.d.o, 500 ms on an N900,
     12 ms on my Intel Core i5)

That said, if future shows us cases where there are problems with
correctly-sized caches, we can still add a checksum when we break
ABI again, and enable it by default only on amd64 and other fast
architectures.

-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.

Attachment: pgpmPUfDBLU7F.pgp
Description: PGP signature


--- End Message ---

Reply to: