Bug#313219: gnome-vfs2 crashes in read_entire_file with HAL and Linux 2.4

Sjoerd Simons Sjoerd Simons <sjoerd@spring.luon.net>, 313219@bugs.debian.org
Tue, 14 Jun 2005 19:29:48 +0200


reassign 313219 glibc
tag 313219 +fixed-in-experimental
thanks,

On Tue, Jun 14, 2005 at 07:11:39PM +0200, Sjoerd Simons wrote:
> On Wed, Jun 15, 2005 at 01:24:11AM +0800, Ivan Wong wrote:
> > > I think I know why now. It's -D_FILE_OFFSET_BITS=64. i.e.
> > > 
> > > gcc -D_POSIX_C_SOURCE=200112L -D_FILE_OFFSET_BITS=64 a.c
> > Look further, I think /usr/include/features.h gives some hints:
> > 
> > # ifndef __USE_FILE_OFFSET64
> > extern int posix_fadvise (int __fd, __off_t __offset, __off_t __len,
> >                           int __advise) __THROW;
> > # else
> > # ifdef __REDIRECT
> > extern int __REDIRECT (posix_fadvise, (int __fd, __off64_t __offset,
> >                                        __off64_t __len, int __advise)
> > __THROW,
> >                        posix_fadvise64);
> > # else
> > #  define posix_fadvise posix_fadvise64
> > # endif
> > 
> > what about posix_fadvise64() with kernel 2.4?
> 
> Yep, i also got to this conclusion. glibc should return -ENOSYS, when doing
> that call on a 2.4 kernel. It does this and then crashes your program very
> nice.. 

The experimental version of glibc works fine. Reassigning the bug to glibc.

  Sjoerd
-- 
A pain in the ass of major dimensions.
		-- C.A. Desoer, on the solution of non-linear circuits