Bug#203741: apt 0.6 in experimental
On Thu, Jan 01, 2004 at 04:32:06AM +0100, Peter Palfrader wrote:
> On Thu, 01 Jan 2004, Peter Palfrader wrote:
>
> > On Wed, 31 Dec 2003, Matt Zimmerman wrote:
> >
> > > On Wed, Dec 31, 2003 at 09:29:35AM +0100, Peter Palfrader wrote:
> > >
> > > > Maybe that's it: On my ibook apt stopped working after 0.6.3.
> > > > Reverting one of the 0.6.4 changes seems to fix the segfault I'm seeing.
> > > >
> > > > | apt (0.6.6.1) experimental; urgency=low
> > > > |
> > > > | * Local non-maintainer package.
> > > > | * Remove the +4 after Size in apt-pkg/tagfile.cc:36.
> > >
> > > Looks like I missed part of the changes I meant to revert. I'll be
> > > uploading 0.6.7 shortly.
> >
> > 0.6.7 yields this error:
> >
> > weasel@danube:~/tmp/apt$ sudo apt-get update
> > [...]
> > Fetched 4161kB in 24s (169kB/s)
> > Reading Package Lists... Error!
> > E: Unable to parse package file /var/lib/apt/lists/ftp.uk.debian.org_debian_dists_unstable_Release (1)
> > E: Problem opening /var/lib/apt/lists/ftp.uk.debian.org_debian_dists_unstable_contrib_binary-powerpc_Packages
> > E: The package lists or status file could not be parsed or opened.
>
> Hmm, weird. Removing var/lib/apt didn't fix it, but downgrading to
> 0.6.1 and upgrading to 0.6.7 did.
>
> Definitely time to sleep.
There's still a bug in the tagfile parser that is tickled by the code which
reads Release. Can you try this and tell me if it helps?
--- deblistparser.cc.~1.29.2.1.~ 2003-12-28 15:56:18.000000000 -0800
+++ deblistparser.cc 2003-12-31 22:05:38.000000000 -0800
@@ -566,7 +566,7 @@
bool debListParser::LoadReleaseInfo(pkgCache::PkgFileIterator FileI,
FileFd &File)
{
- pkgTagFile Tags(&File, File.Size());
+ pkgTagFile Tags(&File, File.Size() + 256);
pkgTagSection Section;
if (Tags.Step(Section) == false)
return false;
--
- mdz
Reply to: