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 non-existent values from %ENV causes segfault when compiled with PERL_USE_SAFE_PUTENV #10565
Comments
From chrishammond@ymail.comCreated by chrishammond@ymail.comHi, I've got an instance of Perl 5.12.1 which has been compiled using the PERL_USE_SAFE_PUTENV flag defined, and have noted that it segfaults if you try to clear a non-existent value from the magic %ENV hash if local'ed. Using 5.12.1 compiled with with: perl -e "local %ENV;delete $ENV{q{UNDEFINED}}" Segmentation fault (core dumped) Process terminating with default action of signal 11 (SIGSEGV): dumping core Invalid read of size 8 No seg fault from: DEFINED=YES perl -e "delete local $ENV{q{DEFINED}}" Some code that does this: Thanks, Chris Perl Info
|
chrishammond@ymail.com - Status changed from 'new' to 'open' |
From @iabynOn Mon, Aug 23, 2010 at 02:08:21AM -0700, chrishammond@ymail.com wrote:
I'm unable to reproduce this, either on blead, nor with a 5.12.1 Here's my config: Summary of my perl5 (revision 5 version 12 subversion 1) configuration: Locally applied patches: @INC for perl 5.12.1: Environment for perl 5.12.1:
-- |
From @doughera88On Wed, 25 Aug 2010, Dave Mitchell wrote:
I was able to reproduce it on Debian Linux/x86. The 'local' is essential myuname='linux xxx 2.6.26-2-686 #1 smp thu aug 19 03:44:10 utc 2010 i686 gnulinux ' (gdb) run -e 'local %ENV; delete $ENV{q{UNDEFINED}};' Program received signal SIGSEGV, Segmentation fault. -- |
From @doyI can't reproduce this either. Is this still a problem? -doy |
Migrated from rt.perl.org#77372 (status was 'open')
Searchable as RT77372$
The text was updated successfully, but these errors were encountered: