develooper Front page | perl.perl5.porters | Postings from July 2005

[perl #36428] Problem with the debugger with conjunction to Encoding

From:
Michael G Schwern via RT
Date:
July 12, 2005 16:28
Subject:
[perl #36428] Problem with the debugger with conjunction to Encoding
Message ID:
rt-3.0.11-36428-117071.19.6612965378984@perl.org
> [wchem@eranet.pl - Wed Jun 29 15:20:13 2005]:
> 
> ----- the script starts here ------
> use Encode qw/encode decode/;
> 
> my $var = "+AQUBBQEF-/b+AXwBfAF8-";
> my $decoded = decode ("UTF-7", $var);
> my $encoded = encode ("UTF-7", $decoded);
> print $encoded;
> ----- the script ends here ---------
> 
> when the script is run without the debugger (without perl -d),
> the output is - as expected - exactly the value of $var. However,
> trying to run the same program with -d makes Perl prematurely exit
> from the debugger or crash. Thorough debugging shows, that the problem
> occurs in line 36 of UTF7.pm (this file is part of the Perl
> distribution)

Confirmed.  On OSX 5.8.6 I get:

main::(-:3):    my $var = "+AQUBBQEF-/b+AXwBfAF8-";
  DB<1> c
*** malloc_zone_malloc[1462]: argument too large: 4281226766
Out of memory!

And with bleadperl@24148 it simply hangs but does not consume additional
memory.




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