-
Notifications
You must be signed in to change notification settings - Fork 578
psuedohash Out of memory! #4700
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
From [email protected]Created by [email protected]perl5.00503, perl5.6.1, and a not so old bleadperl all get very! Test-Differences$ perl -e '$s = [ { Handler => bless {}, "Foo" } ]; $s->{Handler} = 1;' Perl Info
|
From [Unknown Contact. See original ticket]On Dec 13, barries@sizzle.whoville.com said:
Probably because (0 + {}) is a VERY large number. -- |
From @schwernOn Thu, Dec 13, 2001 at 11:49:10AM -0500, barries@sizzle.whoville.com wrote:
The bleadperl error throws some light on it. That $s->{Handler} = 1 translates to: $s->[$s->[0]{Handler}]; which is: $s->[bless {}, "Foo"] which is something like: $s->[270104932] which doesn't cause an error. But this does: $s->[270104932] = 1; so does this $#s = 270104932; So it must be that pseudo-hash fetch is doing an av_extend. Breakpoint 1, Perl_av_extend (av=0x10199080, key=27010493) at av.c:60 no, av_fetch is calling av_store which is then extending. That can't if (key > AvFILLp(av)) { -- Michael G. Schwern <schwern@pobox.com> http://www.pobox.com/~schwern/ |
From [Unknown Contact. See original ticket]--- Michael G Schwern <schwern@pobox.com> wrote:
It most certainly is right. av_fetch was called with lval = -- BKS __________________________________________________ |
From @schwernThe code does the equivalent of: $s->[bless {}] = 1; and a reference numerifies to a Very Large Number. So its: $s->[27010493] = 1; # for example which causes Perl to try to allocate a huge array. -- Michael G. Schwern <schwern@pobox.com> http://www.pobox.com/~schwern/ |
From @schwernOn Thu, Dec 13, 2001 at 10:11:26AM -0800, Benjamin Stuhl wrote:
Makes sense. Closed the bug as 'not a bug' -- Michael G. Schwern <schwern@pobox.com> http://www.pobox.com/~schwern/ |
Migrated from rt.perl.org#8058 (status was 'resolved')
Searchable as RT8058$
The text was updated successfully, but these errors were encountered: