Skip Menu |

This queue is for tickets about the Bloom-Faster CPAN distribution.

Report information
The Basics
Id: 57323
Status: resolved
Priority: 0/
Queue: Bloom-Faster

People
Owner: palvaro [...] cpan.org
Requestors: demoss.matt [...] gmail.com
Cc:
AdminCc:

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



Subject: Use of uninitialized value
Date: Sun, 9 May 2010 14:27:55 -0400
To: bug-Bloom-Faster [...] rt.cpan.org
From: Matt DeMoss <demoss.matt [...] gmail.com>
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.10/i686-cygwin/Bloom/Faster.pm line 73. I get this when I call new with m and k.
On Sun May 09 14:28:07 2010, demoss.matt@gmail.com wrote: Show quoted text
> Use of uninitialized value in subroutine entry at > /usr/lib/perl5/site_perl/5.10/i686-cygwin/Bloom/Faster.pm line 73. > > I get this when I call new with m and k.
Are you certain m and k are initialized? This is the first mention of this issue and the current Bloom::Faster release has been in production for some time. Please send along the enclosing code to the call to 'new'. I do not have a windows/cygwin environment to test in, unfortunately, so hopefully it's not something specific to that environment.
Subject: Re: [rt.cpan.org #57323] Use of uninitialized value
Date: Sun, 9 May 2010 14:41:49 -0400
To: bug-Bloom-Faster [...] rt.cpan.org
From: Matt DeMoss <demoss.matt [...] gmail.com>
I'm calling: my $rand_bloom = new Bloom::Faster({m => 1048576, k => 4}); It's pretty normal, I think, and I don't think it would be possible to get to line 73 unless m and k were defined. It must be complaining about n and e. Excerpt from Faster.pm: 67 if (! (ref $data)) { 68 $struct{vector} = bdeserialize($data); 69 } else { 70 if (defined($data->{e}) && defined($data->{n})) { 71 $struct{vector} = binit_sugg($data->{n},$data->{e}); 72 } *elsif (defined($data->{m}) && defined($data->{k})) {* 73 $struct{vector} = binit($data->{m},$data->{k},$data->{n},$data->{e}); 74 } else { 75 $! = "invalid arguments to Bloom::Faster"; 76 return undef; 77 } On Sun, May 9, 2010 at 2:37 PM, Peter Alvaro via RT < bug-Bloom-Faster@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=57323 > > > On Sun May 09 14:28:07 2010, demoss.matt@gmail.com wrote:
> > Use of uninitialized value in subroutine entry at > > /usr/lib/perl5/site_perl/5.10/i686-cygwin/Bloom/Faster.pm line 73. > > > > I get this when I call new with m and k.
> > Are you certain m and k are initialized? This is the first mention of this > issue and the current > Bloom::Faster release has been in production for some time. > > Please send along the enclosing code to the call to 'new'. I do not have a > windows/cygwin > environment to test in, unfortunately, so hopefully it's not something > specific to that > environment. >
Matt, Thanks for reporting this. Can you try the latest from our svn in http://sourceforge.net/projects/bloom-faster/ and let us know if this fixes your issue? -Dmitriy On Sun May 09 14:42:16 2010, demoss.matt@gmail.com wrote: Show quoted text
> I'm calling: > my $rand_bloom = new Bloom::Faster({m => 1048576, k => 4}); > > It's pretty normal, I think, and I don't think it would be possible to > get > to line 73 unless m and k were defined. It must be complaining about n > and > e. > > Excerpt from Faster.pm: > > > 67 if (! (ref $data)) { > 68 $struct{vector} = bdeserialize($data); > 69 } else { > 70 if (defined($data->{e}) && defined($data->{n})) { > 71 $struct{vector} = binit_sugg($data->{n},$data-
> >{e});
> 72 } *elsif (defined($data->{m}) && defined($data->{k})) > {* > 73 $struct{vector} = > binit($data->{m},$data->{k},$data->{n},$data->{e}); > 74 } else { > 75 $! = "invalid arguments to Bloom::Faster"; > 76 return undef; > 77 } > > > > On Sun, May 9, 2010 at 2:37 PM, Peter Alvaro via RT < > bug-Bloom-Faster@rt.cpan.org> wrote: >
> > <URL: https://rt.cpan.org/Ticket/Display.html?id=57323 > > > > > On Sun May 09 14:28:07 2010, demoss.matt@gmail.com wrote:
> > > Use of uninitialized value in subroutine entry at > > > /usr/lib/perl5/site_perl/5.10/i686-cygwin/Bloom/Faster.pm line 73. > > > > > > I get this when I call new with m and k.
> > > > Are you certain m and k are initialized? This is the first mention
> of this
> > issue and the current > > Bloom::Faster release has been in production for some time. > > > > Please send along the enclosing code to the call to 'new'. I do not
> have a
> > windows/cygwin > > environment to test in, unfortunately, so hopefully it's not
> something
> > specific to that > > environment. > >
Subject: Re: [rt.cpan.org #57323] Use of uninitialized value
Date: Mon, 31 May 2010 21:08:11 -0400
To: bug-Bloom-Faster [...] rt.cpan.org
From: Matt DeMoss <demoss.matt [...] gmail.com>
In 1.6.1 it works now without any warnings; thank-you. On Mon, May 31, 2010 at 8:52 PM, Dmitriy Ryaboy via RT < bug-Bloom-Faster@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=57323 > > > Matt, > Thanks for reporting this. > Can you try the latest from our svn in > http://sourceforge.net/projects/bloom-faster/ and let us know if this > fixes your issue? > > -Dmitriy > > On Sun May 09 14:42:16 2010, demoss.matt@gmail.com wrote:
> > I'm calling: > > my $rand_bloom = new Bloom::Faster({m => 1048576, k => 4}); > > > > It's pretty normal, I think, and I don't think it would be possible to > > get > > to line 73 unless m and k were defined. It must be complaining about n > > and > > e. > > > > Excerpt from Faster.pm: > > > > > > 67 if (! (ref $data)) { > > 68 $struct{vector} = bdeserialize($data); > > 69 } else { > > 70 if (defined($data->{e}) && defined($data->{n})) { > > 71 $struct{vector} = binit_sugg($data->{n},$data-
> > >{e});
> > 72 } *elsif (defined($data->{m}) && defined($data->{k})) > > {* > > 73 $struct{vector} = > > binit($data->{m},$data->{k},$data->{n},$data->{e}); > > 74 } else { > > 75 $! = "invalid arguments to Bloom::Faster"; > > 76 return undef; > > 77 } > > > > > > > > On Sun, May 9, 2010 at 2:37 PM, Peter Alvaro via RT < > > bug-Bloom-Faster@rt.cpan.org> wrote: > >
> > > <URL: https://rt.cpan.org/Ticket/Display.html?id=57323 > > > > > > > On Sun May 09 14:28:07 2010, demoss.matt@gmail.com wrote:
> > > > Use of uninitialized value in subroutine entry at > > > > /usr/lib/perl5/site_perl/5.10/i686-cygwin/Bloom/Faster.pm line 73. > > > > > > > > I get this when I call new with m and k.
> > > > > > Are you certain m and k are initialized? This is the first mention
> > of this
> > > issue and the current > > > Bloom::Faster release has been in production for some time. > > > > > > Please send along the enclosing code to the call to 'new'. I do not
> > have a
> > > windows/cygwin > > > environment to test in, unfortunately, so hopefully it's not
> > something
> > > specific to that > > > environment. > > >
> > > >
fixed in v1.7