-
Notifications
You must be signed in to change notification settings - Fork 578
utf8::length() bad #2280
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
Comments
From [email protected]Created by [email protected]Hi, % perl -mutf8 -e "print utf8::length('a')" causes my cpu to peg, and memory to grow until I break out of it. I tried running it in gdb, got a segfault report immediately, but the (gdb) run -mutf8 -e "print utf8::length('a')" --- several seconds pass, then I interrupt it --- Program received signal SIGINT, Interrupt. Even though I have my coredumplimit set to zero, when running this from jfriedl@fummy> gdb /usr/src/perl-5.6.0/perl core warning: core file may not match specified executable file. Which seems odd, to say the least. Jeffrey Perl Info
|
From [Unknown Contact. See original ticket]Jeffrey Friedl (lists.p5p):
Oh, *swear*. I know why this is happening, and I'll have a look at it |
From [Unknown Contact. See original ticket]Simon Cozens (lists.p5p):
Hm, this was more fundamental than I thought. Why do you think you Nevertheless, recursive AUTOLOADs are certainly bad. Inline Patch--- lib/utf8.pm~ Tue Aug 1 15:46:44 2000
+++ lib/utf8.pm Tue Aug 1 15:53:16 2000
@@ -13,7 +13,8 @@
sub AUTOLOAD {
require "utf8_heavy.pl";
- goto &$AUTOLOAD;
+ goto &$AUTOLOAD if defined &$AUTOLOAD;
+ Carp::croak("Undefined subroutine $AUTOLOAD called");
}
1; |
From @jhi
Applied, thanks. |
Migrated from rt.perl.org#3598 (status was 'resolved')
Searchable as RT3598$
The text was updated successfully, but these errors were encountered: