lkml.org 
[lkml]   [2005]   [Oct]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Bug#322309: Debian woody dpkg no longer works with recent linux kernel.
Hi,

> > dpkg in Debian woody (3.0) is broken by recent linux kernels;
> > due to the following command changing behavior (mmap of
> > zero-byte length):
> >
> > addr=mmap(NULL, 0, PROT_READ, MAP_SHARED, fd, 0);
> >
> > These bugs are caused by mmap changing behavior;
> > it used to return NULL when given a length of 0.
> > However, it now returns -1, and gives back an errno=EINVAL.
> >
> Indeed. This was the sole change in the 1.13.8 release.

Thanks, I didn't notice it was since 2.6.12. woody dpkg
was long broken. I've only seen more recent reports about this.

To fix this problem, will require update to
dpkg in woody; which might not be feasible.
We could drop support of woody chroots in etch.
It might be possible to add a workaround hack
in [c]debootstrap to trap mmap; or fill
status/available files before invoking dpkg.


I'm not quite sure why sarge manages to bootstrap despite
having a dpkg version (1.10.28) that shouldn't work.


regards,
junichi
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-10-10 03:10    [W:0.043 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site