From: Daniel Berger Date: 2008-09-13T03:44:22+09:00 Subject: Re: Strange Errno::EOVERFLOW error with IO#read and IO#sysread On Sep 12, 12:36 pm, "ara.t.howard" wrote: > On Sep 12, 2008, at 11:28 AM, Daniel Berger wrote: > > > > > > >> your programs are so powerful daniel - they're overwhelming the > >> system! maybe if you re-write in perl the system will be able to > >> handle them. > > > Nope: > > > use strict; > > use warnings; > > > my $file = "/proc/383/as"; > > > open(FH, $file) or die $!; > > > my $buf = ""; > > > # Dies here with: Value too large for defined data type > > read(FH, $buf, 4, 0) or die $!; > > > close(FH); > > > Regards, > > > Dan > > /me kids > > /dan needs more coffee ;-) As far as I can gather it's a 32-bit largefile issue. The short version is that a 32-bit Ruby (or Perl, or Python) will simply not be able to read that file. The same code using a 64-bit Ruby works fine. Well, except the part where my io-extra library segfaults on IO.pread in 64-bit mode, but nevermind that. Regards, Dan