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


As AnonMonk reported here: http://www.perlmonks.org/?node_id=692090 the line
for 1..1000 -> $a { say $a }
segfaults in rakudo.

The problem can be reproduced by creating a Range with --runcore=gcdebug:

../../parrot --runcore=gcdebug perl6.p
bc -e '1..2'
src/string.c:514: failed assertion '!PObj_on_free_list_TEST(a)'
Backtrace - Obtained 17 stack frames (max trace depth is 32).
  (unknown)
    Parrot_confess
      string_append
        Parrot_CodeString_nci_emit
          Parrot_NCI_invoke
            Parrot_callmethodcc_p_sc
              (unknown)
                (unknown)
                  (unknown)
                    (unknown)
                      Parrot_runops_fromc_args
                        Parrot_runcode
                          (unknown)
                            imcc_run
                              (unknown)
                                __libc_start_main
                                  (unknown)
Aborted

Actually a single constant seems to be unsafe:

../../parrot --runcore=gcdebug perl6.pbc -e '1'
src/string.c:514: failed assertion '!PObj_on_free_list_TEST(a)'
Backtrace - Obtained 17 stack frames (max trace depth is 32).
  (unknown)
    Parrot_confess
      string_append
        Parrot_CodeString_nci_emit
          Parrot_NCI_invoke
            Parrot_callmethodcc_p_sc
              (unknown)
                (unknown)
                  (unknown)
                    (unknown)
                      Parrot_runops_fromc_args
                        Parrot_runcode
                          (unknown)
                            imcc_run
                              (unknown)
                                __libc_start_main
                                  (unknown)
Aborted

Note that compilation alone runs fine (that is ../../parrot
--runcore=gcdebug perl6.pbc -c -e '1..2')

Cheers,
Moritz
-- 
Moritz Lenz
http://moritz.faui2k3.org/ |  http://perl-6.de/

Reply via email to