Bug 859872 - perl-5.16: perl -d:foo crashes if DB::DB is seen but not defined in Devel::foo
Summary: perl-5.16: perl -d:foo crashes if DB::DB is seen but not defined in Devel::foo
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: perl
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Petr Pisar
QA Contact: Fedora Extras Quality Assurance
URL: https://rt.perl.org/rt3//Public/Bug/D...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-24 08:55 UTC by Petr Pisar
Modified: 2012-11-28 14:04 UTC (History)
11 users (show)

Fixed In Version: perl-5.16.2-234.fc18
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-11-28 14:04:17 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Pisar 2012-09-24 08:55:18 UTC
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>
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.