Perl / perl5

🐪 The Perl programming language
https://dev.perl.org/perl5/
Other
1.97k stars 560 forks source link

Re: Corrupting the sv arena #434

Closed p5pRT closed 22 years ago

p5pRT commented 25 years ago

Migrated from rt.perl.org#1275 (status was 'resolved')

Searchable as RT1275$

p5pRT commented 25 years ago

From ilya@math.ohio-state.edu

Thanks\, Ilya

On Wed\, Aug 25\, 1999 at 10​:01​:25AM -0600\, Bruno Melli wrote​:

Hi Ilya\,

You mentioned "esoteric" ways to corrupt the sv arena and I think I have found one although I don't know enough of the perl internals to know if that is the real cause​:

      \.\.\.

my %prelim_conf; tie %prelim_conf\, 'FOCS'\, $global_conf; # untie %prelim_conf; undef %prelim_conf;

exit 1;

(I added then commented out the untie call) Seems that if you tie a variable then undef it without untying it you cause damage to whatever you tied to. In this case the actual damage occurs during the exit operation so I assume that some sort of cleanup is done at that level on a corrupted global_conf. Does that sound plausible ?

thanks\,

bruno.

p5pRT commented 22 years ago

From @gbarr

Cannot reproduce

p5pRT commented 22 years ago

@gbarr - Status changed from 'open' to 'resolved'