Skip Menu |

This queue is for tickets about the File-ReadBackwards CPAN distribution.

Report information
The Basics
Id: 11664
Status: resolved
Priority: 0/
Queue: File-ReadBackwards

People
Owner: Nobody in particular
Requestors: sfournier [...] lino.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.03
Fixed in: (no value)



Subject: Negative length
I get this error when reading some huge maillog files (but not with all): Negative length at /usr/lib/perl5/site_perl/5.8.0/File/ReadBackwards.pm line 168
[guest - Fri Feb 25 12:51:25 2005]: Show quoted text
> I get this error when reading some huge maillog files (but not with > all): > > Negative length at > /usr/lib/perl5/site_perl/5.8.0/File/ReadBackwards.pm line 168
I meant version 1.02 and it's in line 167 in version 1.03
[guest - Fri Feb 25 12:55:12 2005]: Show quoted text
> [guest - Fri Feb 25 12:51:25 2005]: >
> > I get this error when reading some huge maillog files (but not with > > all): > > > > Negative length at > > /usr/lib/perl5/site_perl/5.8.0/File/ReadBackwards.pm line 168
> > I meant version 1.02 and it's in line 167 in version 1.03 >
i think this has something to do with massive files and 32 bit file offsets. i have heard of this issue before. check the size of your log files and let me know (email me directly if you can uri@sysarch.com). some possible things to check are: is perl built with large file size support (64 bits)? is it a 64 bit perl? i am not sure how to check for this and fix it so this may be a problem for a while. this is probably very platform independent as well. i would need to make (could be mostly empty) dummy massive files to test with as well. thanx, uri
From: srezic [...] cpan.org
[URI - Fri Feb 25 14:00:29 2005]: Show quoted text
> [guest - Fri Feb 25 12:55:12 2005]: >
> > [guest - Fri Feb 25 12:51:25 2005]: > >
> > > I get this error when reading some huge maillog files (but not with > > > all): > > > > > > Negative length at > > > /usr/lib/perl5/site_perl/5.8.0/File/ReadBackwards.pm line 168
> > > > I meant version 1.02 and it's in line 167 in version 1.03 > >
> > i think this has something to do with massive files and 32 bit file > offsets. i have heard of this issue before. check the size of your log > files and let me know (email me directly if you can uri@sysarch.com). > some possible things to check are: is perl built with large file size > support (64 bits)? is it a 64 bit perl? i am not sure how to check for > this and fix it so this may be a problem for a while. this is probably > very platform independent as well. i would need to make (could be mostly > empty) dummy massive files to test with as well. >
I got this error, too. The root of the problem is the usage of "use integer". If the pragma is not used, perl can switch internally from IV to UV or NV if numbers get larger. Regards, Slaven