From: Bertram Scharpf Date: 2007-08-15T17:38:38+09:00 Subject: Re: IO#seek and whence problem Hi, Am Dienstag, 14. Aug 2007, 19:17:17 +0900 schrieb Bertram Scharpf: > on exactly 1 of 5 machines here I have a problem > installing Gems. The tar unpacker just hangs. On the Gentoo > mailing list I found another user who encounters the same: > > > I completely turned off optimization and distcc. In I put the following debug statements: static VALUE rb_io_seek(io, offset, whence) VALUE io, offset; int whence; { OpenFile *fptr; off_t pos; fprintf( stderr, "rb_io_seek: A; whence=%d\n", pos, whence); pos = NUM2OFFT(offset); fprintf( stderr, "rb_io_seek: B; pos=%d, whence=%d\n", pos, whence); GetOpenFile(io, fptr); fprintf( stderr, "rb_io_seek: C; pos=%d, whence=%d\n", pos, whence); pos = io_seek(fptr, pos, whence); ... The output still is seeking: 512 + 176 rb_io_seek_m: whence=1 rb_io_seek: A; whence=-1081830932 rb_io_seek: B; pos=176, whence=0 rb_io_seek: C; pos=176, whence=0 now at: 176 Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de