Perlについての質問箱 26箱目
■ このスレッドは過去ログ倉庫に格納されています
0475デフォルトの名無しさん
2006/08/07(月) 18:58:47スクリプトをUTF8で書いて、use encoding(utf8)を使うと、デバッグができません。
use encoding(utf8);
print "Hello world";
これをデバッグしようとperl -d で実行すると
perl(24137) malloc: *** vm_allocate(size=4274921472) failed (error code=3)
perl(24137) malloc: *** error: can't allocate region
perl(24137) malloc: *** set a breakpoint in szone_error to debug
Out of memory!
Cannot create second readline interface, falling back to dumb.
at /Library/Perl/5.8.6/Term/ReadLine/Perl.pm line 31
Term::ReadLine::Perl::new('Term::ReadLine', 'perldb', 'GLOB(0x183fff8)', 'GLOB(0x181129c)') called at /System/Library/Perl/5.8.6/perl5db.pl line 6029
DB::setterm called at /System/Library/Perl/5.8.6/perl5db.pl line 2034
DB::DB called at /System/Library/Perl/5.8.6/perl5db.pl line 9421
DB::fake::at_exit() called at /System/Library/Perl/5.8.6/perl5db.pl line 8993
DB::END() called at test line 0
eval {...} called at test line 0
perl(24137) malloc: *** vm_allocate(size=4287860736) failed (error code=3)
perl(24137) malloc: *** error: can't allocate region
perl(24137) malloc: *** set a breakpoint in szone_error to debug
こんな感じになります。解決方法があったら教えてください。
■ このスレッドは過去ログ倉庫に格納されています