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

Re: Smoke [5.9.2] 23863 FAIL(F) MSWin32 WinXP/.Net SP1 (x86/1 cpu)

Thread Previous | Thread Next
From:
Dave Mitchell
Date:
January 23, 2005 09:42
Subject:
Re: Smoke [5.9.2] 23863 FAIL(F) MSWin32 WinXP/.Net SP1 (x86/1 cpu)
Message ID:
20050123174319.GA27334@iabyn.com
On Sun, Jan 23, 2005 at 03:53:01PM +0000, Nicholas Clark wrote:
> With -Dusemymalloc on FreeBSD it fails after test 787:
> 
> Out of memory during "large" request for 268439552 bytes, total sbrk() is 270153728 bytes at t/uni/upper.t line 7.
> 
> So this seems to be an OS independent problem.


Reduces to this code:

    use Devel::Peek;
    for my $index (8066 .. 8150) {
	my $c = chr($index);
	Dump(uc $c);
	print "$index\n";
    }

which after a while gets you:

    SV = PVMG(0x8be9928) at 0x8bb36a8
      REFCNT = 1
      FLAGS = (PADTMP,SMG,POK,pPOK,UTF8)
      IV = 0
      NV = 0
      PV = 0xccd2008 "\341\275\255\316\231"\0 [UTF8 "\x{1f6d}\x{399}"]
      CUR = 5
      LEN = 67112948
      MAGIC = 0x8c41108
	MG_VIRTUAL = &PL_vtbl_utf8
	MG_TYPE = PERL_MAGIC_utf8(w)
	MG_LEN = 2

looks like the SvLEN of the PADTMP associated with the uc op is doubling
each second time round the loop.

Over to you, Jarkko ???


-- 
But Pity stayed his hand. "It's a pity I've run out of bullets",
he thought. - "Bored of the Rings"

Thread Previous | Thread Next


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