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
Output of complex objects differs when program is debugged with perl -d #9799
Comments
From ericp@ActiveState.comCreated by ericp@activestate.comThe output of this program behaves differently depending on The program: my $obj = Obj->new(); package Obj; sub new (%) { sub alias($$) : lvalue { #============= Output from the command-line: $VAR1 = bless( { #============= Output from a `perl -d ...' session: C:>perl -d bug83805a.pl Loading DB routines from perl5db.pl version 1.3 Enter h or `h h' for help, or `perldoc perldebug' for more help. main::(bug83805a.pl:5): my $obj = Obj->new(); DB<1> c DB<1> q C:> #============= The discrepancy is most likely due to the way the debugger Perl Info
|
From ericp@ActiveState.comThe problem is that DB::sub interferes with $ cat bug83805b.pl # Show how lvalue functions break when debugging. sub setter : lvalue { setter('def') = 2; $ perl bug83805b.pl $ perl -d bug83805b.pl Loading DB routines from perl5db.pl version 1.3 Enter h or `h h' for help, or `perldoc perldebug' for more help. 1..2 DB<1> c DB<1> q |
ericp@ActiveState.com - Status changed from 'new' to 'open' |
From p5p@perl.wizbit.beCiteren Eric Promislow <perlbug-followup@perl.org>:
[snip] This appears fixed in blead... $ /opt/perl/bin/perl5100 -d /tmp/rt-67830.pl Loading DB routines from perl5db.pl version 1.3 Enter h or `h h' for help, or `man perldebug' for more help. main::(/tmp/rt-67830.pl:5): my $obj = Obj->new(); $ /opt/perl/git/build/bin/perl5.11.0 -d /tmp/rt-67830.pl Loading DB routines from perl5db.pl version 1.33 Enter h or `h h' for help, or `man perldebug' for more help. main::(/tmp/rt-67830.pl:5): my $obj = Obj->new(); Using your second test case: $ /opt/perl/bin/perl5100 -d /tmp/rt-67830-2.pl Loading DB routines from perl5db.pl version 1.3 Enter h or `h h' for help, or `man perldebug' for more help. 1..2 $ /opt/perl/git/build/bin/perl5.11.0 -d /tmp/rt-67830-2.pl Loading DB routines from perl5db.pl version 1.33 Enter h or `h h' for help, or `man perldebug' for more help. 1..2 I'll run a bisect to find out which change fixed it. Best regards, Bram |
From @jbenjoreOn Thu, Jul 23, 2009 at 4:10 PM, Bram<p5p@perl.wizbit.be> wrote:
re: Bram I recall there was a note that lvalue subs were fixed in the debugger Josh |
From p5p@perl.wizbit.beCiteren Bram <p5p@perl.wizbit.be>:
...
----Program---- system("$^X", "-d", "/tmp/rt-67830-1.pl"); ----Output of ...pNnBswg/perl-5.10.0@34835/bin/perl---- ----EOF ($?='0')---- ----EOF ($?='0')---- This was fixed with commits: http://perl5.git.perl.org/perl.git/commit/89d1f0ef1b6c19fa0e51e21c93cfffe86aeb375c [perl #48489] patch to fix perl bug #7013 [perl #48489] patch to fix perl bug #7013 Just the pp_hot.c portion of this patch applied along with removing p4raw-id: //depot/perl@34833 Forgot to include lib/perl5db.pl in change #34833author Steve Peters Forgot to include lib/perl5db.pl in change #34833 p4raw-id: //depot/perl@34836 Best regards, Bram |
p5p@spam.wizbit.be - Status changed from 'open' to 'resolved' |
From ericp@ActiveState.comIs this patch likely to make it into the 5.10 line, or 5.12? |
From p5p@spam.wizbit.beOn Fri Jul 24 09:44:32 2009, ericp wrote:
This is already merged in maint-5.10 and should be available in 5.10.1 http://perl5.git.perl.org/perl.git/blob/ # Finished processing this change (CAPS): 1554 M 1ad62f6 2008/11/14 34833 Best regards, Bram |
Migrated from rt.perl.org#67830 (status was 'resolved')
Searchable as RT67830$
The text was updated successfully, but these errors were encountered: