develooper Front page | perl.perl5.porters | Postings from December 2016

[perl #130361] debugger does not stop at postponed breakpoints

From:
James E Keenan via RT
Date:
December 30, 2016 23:42
Subject:
[perl #130361] debugger does not stop at postponed breakpoints
Message ID:
rt-4.0.24-22799-1483141331-1619.130361-15-0@perl.org
On Fri, 16 Dec 2016 18:33:04 GMT, jkahrman@mathworks.com wrote:
> 
> This is a bug report for perl from jkahrman@mathworks.com,
> generated with the help of perlbug 1.40 running under perl 5.20.2.
> 
> 
> -----------------------------------------------------------------
> [Please describe your issue here]
> 
> Debugger does not stop at postponed breakpoints in perl 5.20
> 
> Same behavior in perl5.20 from Debian 8 as perl 5.20 built from
> source. No
> customizations to PERL5DB.
> 
> http://www.perlmonks.com/?node_id=1176116
> 
> % perl -dwe0
> 
> main::(-e:1): 0
>   DB<1> b File::Temp->new
> Subroutine File::Temp not found.
> 
> DB<2> b postpone File::Temp::new
> DB<3> use File::Temp
> DB<4> x File::Temp->new
> 0  File::Temp=GLOB(0x283db48)
>  -> *File::Temp::$fh
>        FileHandle({*File::Temp::$fh}) => fileno(3)
> 
> ########### UNEXPECTEDLY did not stop at File::Temp::new
> 
> DB<5> b postpone File::Temp::new
> DB<6> x File::Temp->new
> 0  File::Temp=GLOB(0x216aa78)
>  -> *File::Temp::$fh
>        FileHandle({*File::Temp::$fh}) => fileno(3)
> 
> ########### UNEXPECTEDLY did not stop at File::Temp::new
> 
> DB<7> B *
> Deleting all breakpoints...
> DB<8> b postpone File::Temp::new
> DB<9> x File::Temp->new
> 0  File::Temp=GLOB(0x216abc8)
>  -> *File::Temp::$fh
>        FileHandle({*File::Temp::$fh}) => fileno(3)
> 
> ########### UNEXPECTEDLY did not stop at File::Temp::new
> 
> DB<10> b File::Temp::new
> DB<11> x File::Temp->new
> File::Temp::new(/.../x86_64/perl/perl-5.20.2-mw-
> 014/lib/5.20.2/File/Temp.pm:885):
> 885:   my $proto = shift;
> DB<<12>> c
> 0  File::Temp=GLOB(0x216aeb0)
>  -> *File::Temp::$fh
>        FileHandle({*File::Temp::$fh}) => fileno(3)
> 
> ########### STOPPED at File::Temp::new as EXPECTED
> 
> 

Confirmed that problem exists in 5.24.0 as well.

-- 
James E Keenan (jkeenan@cpan.org)

---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=130361



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About