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
Leaked scalars #9752
Comments
From @nwc10Jerry Hedden mailed p5p in 1ff86f510805081400l1fd9b9das47034600aee20390@mail.gmail.com Dave notes: a regression since 5.10.0 - present in B,M |
From @jimcOn Thu May 28 08:09:27 2009, nicholas wrote:
another data point. I ran DaveM's simpler code using -Dm, gdb ./perl -- -Dm -Ilib ../bisect.pl #0 Perl_sv_setpvn (my_perl=0x8364958, sv=0xabababab, ptr=0x82579ea "", BTW, adding an __END__ does NOT give me a 3rd attempt to free. |
The RT System itself - Status changed from 'new' to 'open' |
From p5p@spam.wizbit.beBisect of Dave's test case: Running the prog '/tmp/rt-66108-2.pl' for installed-perls/perl/pSgz7tX/ my ----Output of .../pSgz7tX/perl-5.9.4@28770/bin/perl---- ----EOF ($?='0')---- ----EOF ($?='0')---- http://perl5.git.perl.org/perl.git/commit/ Change the generation of {} and [] from 3 ops to 1, and avoid 1 mortal p4raw-id: //depot/perl@28771 |
From [Unknown Contact. See original ticket]Bisect of Dave's test case: Running the prog '/tmp/rt-66108-2.pl' for installed-perls/perl/pSgz7tX/ my ----Output of .../pSgz7tX/perl-5.9.4@28770/bin/perl---- ----EOF ($?='0')---- ----EOF ($?='0')---- http://perl5.git.perl.org/perl.git/commit/ Change the generation of {} and [] from 3 ops to 1, and avoid 1 mortal p4raw-id: //depot/perl@28771 |
From @iabynOn Thu, May 28, 2009 at 08:09:27AM -0700, Nicholas Clark wrote:
Now fixed: commit 7fa3829 fix for [perl #66108] Leaked scalars Affected files ... Differences ... Inline Patchdiff --git a/sv.c b/sv.c
index 38a9140..c2757d6 100644
--- a/sv.c
+++ b/sv.c
@@ -11913,6 +11913,10 @@ perl_clone_using(PerlInterpreter *proto_perl, UV flags,
SvNV_set(&PL_sv_yes, 1);
ptr_table_store(PL_ptr_table, &proto_perl->Isv_yes, &PL_sv_yes);
+ /* dbargs array probably holds garbage; give the child a clean array */
+ PL_dbargs = newAV();
+ ptr_table_store(PL_ptr_table, proto_perl->Idbargs, PL_dbargs);
+
/* create (a non-shared!) shared string table */
PL_strtab = newHV();
HvSHAREKEYS_off(PL_strtab);
@@ -12039,7 +12043,6 @@ perl_clone_using(PerlInterpreter *proto_perl, UV flags,
PL_DBsingle = sv_dup(proto_perl->IDBsingle, param);
PL_DBtrace = sv_dup(proto_perl->IDBtrace, param);
PL_DBsignal = sv_dup(proto_perl->IDBsignal, param);
- PL_dbargs = av_dup(proto_perl->Idbargs, param);
/* symbol tables */
PL_defstash = hv_dup_inc(proto_perl->Idefstash, param);
-- Lady Nancy Astor: If you were my husband, I would flavour your coffee |
@iabyn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#66108 (status was 'resolved')
Searchable as RT66108$
The text was updated successfully, but these errors were encountered: