Skip Menu |

This queue is for tickets about the IO-stringy CPAN distribution.

Report information
The Basics
Id: 80286
Status: resolved
Priority: 0/
Queue: IO-stringy

People
Owner: dfs+pause [...] roaringpenguin.com
Requestors: DOHERTY [...] cpan.org
doherty [...] pythian.com
Cc:
AdminCc:

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



Subject: uninitialized value warning when detecting end of file
There appears to be a problem under some circumstances with detecting whether the end of the file has been reached: [Fri Oct 19 14:05:46 2012] plucindex: Use of uninitialized value in numeric ge (>=) at /var/www/restricted/local-lib/lib/perl5/IO/Scalar.pm line 566.
Subject: Re: [rt.cpan.org #80286] uninitialized value warning when detecting end of file
Date: Fri, 19 Oct 2012 15:29:23 -0400
To: bug-IO-stringy [...] rt.cpan.org
From: "David F. Skoll" <dfs [...] roaringpenguin.com>
On Fri, 19 Oct 2012 14:07:50 -0400 "Mike Doherty via RT" <bug-IO-stringy@rt.cpan.org> wrote: Show quoted text
> [Fri Oct 19 14:05:46 2012] plucindex: Use of uninitialized value in > numeric ge (>=) > at /var/www/restricted/local-lib/lib/perl5/IO/Scalar.pm line 566.
What version of IO::Stringy is this? The line number makes no sense in the version I have. Regards, David.
$VERSION = "2.110"; Line 566 is the eof method: https://metacpan.org/source/DSKOLL/IO- stringy-2.110/lib/IO/Scalar.pm#L558 -Mike On Fri Oct 19 15:29:34 2012, dfs@roaringpenguin.com wrote: Show quoted text
> What version of IO::Stringy is this? The line number makes no sense > in the version I have.
Subject: Re: [rt.cpan.org #80286] uninitialized value warning when detecting end of file
Date: Mon, 22 Oct 2012 10:03:17 -0400
To: bug-IO-stringy [...] rt.cpan.org
From: "David F. Skoll" <dfs [...] roaringpenguin.com>
On Mon, 22 Oct 2012 09:56:49 -0400 "Mike Doherty via RT" <bug-IO-stringy@rt.cpan.org> wrote: Show quoted text
> Line 566 is the eof method: https://metacpan.org/source/DSKOLL/IO- > stringy-2.110/lib/IO/Scalar.pm#L558
OK. Are you sure that "open" has been called? Could you post the calling code starting from when the IO::Scalar handle is opened? Regards, David.
No, I am not at all sure. The code isn't mine, but I can find out whether open has been called. But if it hasn't, then I would have expected a more explicit error message like "what are you doing, open hasn't been called" :) -Mike On Mon Oct 22 10:03:34 2012, dfs@roaringpenguin.com wrote: Show quoted text
> On Mon, 22 Oct 2012 09:56:49 -0400 > "Mike Doherty via RT" <bug-IO-stringy@rt.cpan.org> wrote: >
> > Line 566 is the eof method: https://metacpan.org/source/DSKOLL/IO- > > stringy-2.110/lib/IO/Scalar.pm#L558
> > OK. Are you sure that "open" has been called? Could you post the
calling Show quoted text
> code starting from when the IO::Scalar handle is opened? > > Regards, > > David.
Subject: Re: [rt.cpan.org #80286] uninitialized value warning when detecting end of file
Date: Thu, 25 Oct 2012 10:13:14 -0400
To: bug-IO-stringy [...] rt.cpan.org
From: "David F. Skoll" <dfs [...] roaringpenguin.com>
On Mon, 22 Oct 2012 12:03:27 -0400 "Mike Doherty via RT" <bug-IO-stringy@rt.cpan.org> wrote: Show quoted text
> No, I am not at all sure. The code isn't mine, but I can find out > whether open has been called. But if it hasn't, then I would have > expected a more explicit error message like "what are you doing, open > hasn't been called" :)
I suppose, but there are a large number of ways to abuse an API, so I'm not sure its reasonable for us to try to predict them all. :) Anyway... if you can replicate this with a small code sample, I'll have a look and see if the bug is in IO::Stringy or in the calling code. Regards, David.
Subject: Re: [rt.cpan.org #80286] uninitialized value warning when detecting end of file
Date: Thu, 25 Oct 2012 13:52:47 -0400
To: bug-IO-stringy [...] rt.cpan.org
From: Mike Doherty <doherty [...] pythian.com>
I'm fairly certain the bug is in https://metacpan.org/module/Plucene - you can close this report. -Mike On 12-10-25 10:13 AM, David F. Skoll via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=80286 > > > On Mon, 22 Oct 2012 12:03:27 -0400 > "Mike Doherty via RT" <bug-IO-stringy@rt.cpan.org> wrote: >
>> No, I am not at all sure. The code isn't mine, but I can find out >> whether open has been called. But if it hasn't, then I would have >> expected a more explicit error message like "what are you doing, open >> hasn't been called" :)
> > I suppose, but there are a large number of ways to abuse an API, > so I'm not sure its reasonable for us to try to predict them all. :) > > Anyway... if you can replicate this with a small code sample, I'll > have a look and see if the bug is in IO::Stringy or in the calling > code. > > Regards, > > David. >
-- --
Hello, Per your last reply, I have closed this ticket. Regards, David.