Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* incorrect lseek() function in glibc-2.0.7
@ 1999-03-18  1:13 Michal Jaegermann
  1999-03-19  6:12 ` Richard Henderson
  0 siblings, 1 reply; 5+ messages in thread
From: Michal Jaegermann @ 1999-03-18  1:13 UTC (permalink / raw)
  To: drepper; +Cc: axp-list, bj0rn


lseek from glibc-2.0.7 is broken on Alpha.  It is documented to
have the following prototype:

   off_t lseek(int fildes, off_t offset, int whence);

Here is a fragment of a trace from a new version of 'lsmod':
....
open("/dev/kmem", O_RDONLY)             = 4
lseek(4, 18446739675790475552, SEEK_SET) = 127435040
....
where the program attempts to seek to a location with a module
information in a memory. 18446739675790475552 happens to be
in hex 0xfffffc0007988120 and the return value is 0x7988120
so it is returned as 'int' and not 'off_t' - which, at least on
Alpha, are of different sizes.

What is more lseek() does not seem to be searching to a required
location as an attempt to read from there results in obviously
bogus values (all zeros).

  Michal Jaegermann,
  michal@harddata.com


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1999-03-28  2:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-03-18  1:13 incorrect lseek() function in glibc-2.0.7 Michal Jaegermann
1999-03-19  6:12 ` Richard Henderson
1999-03-19  6:48   ` Michal Jaegermann
1999-03-19  7:16     ` Richard Henderson
1999-03-28  2:05       ` Michal Jaegermann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox