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
Carp croak() fails on anon sub and package deletion #16827
Comments
From wagnerc@plebeian.comThis perlbug is in support of RT#133776. croak() fails with numerous unitialized warnings and incorrect error I rewrote stash_deletion.t and added a new test for croak() to make it The problem is not with the test construction because merely changing Output: I also created an instrumented version of Carp.pm that illustrates how This failure came to light in investigating warnings::enabled() calling Thanks. |
From wagnerc@plebeian.com#!/usr/bin/env perl use Carp; printf "Test file %s, Perl $^V, Carp $Carp::VERSION $INC{'Carp.pm'}\n", __FILE__; { ok(!$@); # 1 ###################################### { ok(!$@); # 4 ###################################### { ok(!$@, "Croak_sub compile"); # 7 ###################################### { ok(!$@); # 10 ###################################### { my $Sub_sub = eval <<'EVAL_EOF'; ok(!$@); # 14 |
From wagnerc@plebeian.com1..18 |
From @jkeenanOn Sat, 26 Jan 2019 01:00:42 GMT, wagnerc@plebeian.com wrote:
So that people can play around with this, I created this branch in the repository: 133800-carp ... in which I placed *only* the additional tests Chris Wagner provided. (The instrumented module uses a non-core library, so I can't put that in the branch yet.) Thank you very much. -- |
The RT System itself - Status changed from 'new' to 'open' |
From wagnerc@plebeian.comThanks for doing that James. If if has to only use core modules, adding this code will replace Data::Dump. sub pp { Thanks. |
Migrated from rt.perl.org#133800 (status was 'open')
Searchable as RT133800$
The text was updated successfully, but these errors were encountered: