# New Ticket Created by  Johnathan Swan 
# Please include the string:  [perl #76226]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=76226 >


Hi

I think I found a bug while playing around with Rakudo. It's the latest
downloaded from git: 

commit 7c83e65fb2cda0ddd85e6abe98b18ee7da4a465f
Author: Solomon Foster <colo...@gmail.com>
Date:   Fri Jun 4 16:06:32 2010 -0400

    Switch sub version of map to take slurpy values.

This compiler is built with the Parrot Compiler Toolkit, parrot revision
47344.

The problem is simple to reproduce: 

./perl6 -e 'say " " .. " "'

runs out of memory (after a long time). While experimenting I also found
that the following fails (seemingly faster, so I have the output here
too).

./perl6 -e 'say "" .. ""'

Failed allocation of 24445868 bytes
Parrot VM: PANIC: Out of mem!
C file src/gc/alloc_memory.c, line 151
Parrot file (not available), line (not available)

We highly suggest you notify the Parrot team if you have not been
working on
Parrot.  Use parrotbug (located in parrot's root directory) or send an
e-mail to parrot-...@lists.parrot.org.
Include the entire text of this error message and the text of the script
that
generated the error.  If you've made any modifications to Parrot, please
describe them as well.

Version     : 2.4.0-devel
Configured  : Fri Jun  4 11:48:39 2010 GMT
Architecture: i386-linux
JIT Capable : No
Interp Flags: (no interpreter)
Exceptions  : (missing from core)

Dumping Core...
Quit

In perl 5, " " .. " " returns " " as I would expect. And "" .. ""
returns nothingness as I would expect.

I also tested "A" .. "A" and "X" .. " " and they did not blow up.

I've been told on #perl6 that "" .. "" is maybe supposed to return an
infinite list. However people didn't seem so sure about " " .. " ", but
according to my understanding of the discussion, it seems to be trying
to build an infinite list of " ".

I hope this helps.

Cheers
J

Reply via email to