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