Bug 859872 - perl-5.16: perl -d:foo crashes if DB::DB is seen but not defined in Devel::foo
perl-5.16: perl -d:foo crashes if DB::DB is seen but not defined in Devel::foo
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: perl (Show other bugs)
18
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Petr Pisar
Fedora Extras Quality Assurance
https://rt.perl.org/rt3//Public/Bug/D...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-09-24 04:55 EDT by Petr Pisar
Modified: 2012-11-28 09:04 EST (History)
11 users (show)

See Also:
Fixed In Version: perl-5.16.2-234.fc18
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-11-28 09:04:17 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Petr Pisar 2012-09-24 04:55:18 EDT
Create Devel/foo.pm in @INC path with content:

package Devel::foo;
*DB::DB = sub {} if 0;
1;

and run

# perl -d:foo -e '1'
Neoprávněný přístup do paměti (SIGSEGV)

This has been reported to upstream as RT #114990 and fixed in commit:

commit 432d4561c48cd74f3299eddc270a890908a4512e
Author: Jesse Luehrs <doy@tozt.net>
Date:   Mon Sep 24 00:29:06 2012 -0500

    don't crash with -d if DB::DB is seen but not defined [perl #114990]

Only perl-5.16 (F≥18) is affected.

Note You need to log in before you can comment on or make changes to this bug.