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
deleting elements in a HASH iterator #11157
Comments
From perl@ton.iguana.beCreated by perl@ton.iguana.beWhen debuging a core dump in some XS code i reduced it to what seems to Internally a perl HASH is an array of single linked chains of entries. However, if the deleted element is the current entry the deleted entry is However, if you delete the current iterator and then delete the next This is easily demonstrated with the next program. It first uses Devel::Peek ======================================================== my %hash = ("a".."z"); my $tmp_dir = tempdir(CLEANUP => 1); sub riter { my @riters; my ($first_key, $second_key); # Ok all preparation is done print "Now iterating into freed memory\n";
|
From @cpansproutOn Sun Feb 27 09:53:44 2011, perl@ton.iguana.be wrote:
Thank you. I’ve applied your first patch to the sprout/5.14.1-85026 |
The RT System itself - Status changed from 'new' to 'open' |
From @cpansproutOn Mon May 16 18:09:46 2011, sprout wrote:
I’ve now applied it to blead as ae19993. I’ve also applied your second patch as f50383f. |
@cpansprout - Status changed from 'open' to 'resolved' |
@cpansprout - Status changed from 'resolved' to 'open' |
From @cpansproutOops. I didn’t mean to resolve that yet. |
From @cpansproutOn Thu May 19 19:42:06 2011, sprout wrote:
I forgot to mention that I changed HvNAME_get to HvENAME_get. |
From @cpansproutOn Sun Feb 27 09:53:44 2011, perl@ton.iguana.be wrote:
Thank you. Applied as b569855. This also fixes all the to-do tests |
@cpansprout - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#85026 (status was 'resolved')
Searchable as RT85026$
The text was updated successfully, but these errors were encountered: