[perl #50920] [BUG]: t/compilers/imcc/syn/macro.t failing

James Keenan via RT parrotbug-followup at parrotcode.org
Sun Nov 23 15:40:04 UTC 2008


On Sun Jul 20 18:55:22 2008, chromatic at wgz.org wrote:

> 
> This patch isn't ideal, but it gets us closer (and avoiding SIGABRT is
> good).
> 

Reviewing old tickets today.  I applied this patch on my Linux/i386, but
got no improvement.  Test #36, which has been TODO-ed, still fails:

not ok 36 - invalid label syntax # TODO RT #47978, RT #51104

#   Failed (TODO) test 'invalid label syntax'
#   at t/compilers/imcc/syn/macro.t line 469.
#                   'compilers/imcc/imcc.l:1004: failed assertion 'valp->s'
# Backtrace - Obtained 10 stack frames (max trace depth is 32).
#   (unknown)
#     Parrot_confess
#       (unknown)
#         yylex
#           yyparse
#             (unknown)
#               imcc_run
#                 (unknown)
#                   __libc_start_main
#                     (unknown)
# '
#     doesn't match '/Syntax error in macro at: \('\$iter_loop:'\)/
# '
# './parrot   "t/compilers/imcc/syn/macro_36.pir"' failed with exit code
[SIGNAL 6]


Here's the result of gdb:

(gdb) run t/compilers/imcc/syn/macro_36.pir
Starting program:  t/compilers/imcc/syn/macro_36.pir
[Thread debugging using libthread_db enabled]
[New Thread 1098391040 (LWP 14520)]
warning: Lowest section in /usr/lib/libicudata.so.36 is .hash at 000000b4
compilers/imcc/imcc.l:1004: failed assertion 'valp->s'
Backtrace - Obtained 10 stack frames (max trace depth is 32).
  (unknown)
    Parrot_confess
      (unknown)
        yylex
          yyparse
            (unknown)
              imcc_run
                (unknown)
                  __libc_start_main
                    (unknown)

Program received signal SIGABRT, Aborted.
[Switching to Thread 1098391040 (LWP 14520)]
0x41422947 in raise () from /lib/tls/libc.so.6
(gdb) bt
#0  0x41422947 in raise () from /lib/tls/libc.so.6
#1  0x414240c9 in abort () from /lib/tls/libc.so.6
#2  0x401dcd6b in Parrot_confess (cond=0x405a0438 "valp->s", 
    file=0x405a0422 "compilers/imcc/imcc.l", line=1004) at
src/exceptions.c:506
#3  0x404d3d31 in read_macro (valp=0xbf8e6d0c, interp=0x804f048, 
    yyscanner=0x81178d8) at compilers/imcc/imcc.l:1004
#4  0x404cfea2 in yylex (valp=0xbf8e6d0c, yyscanner=0x81178d8, 
    interp=0x804f048) at compilers/imcc/imcc.l:455
#5  0x404c944d in yyparse (yyscanner=0x81178d8, interp=0x804f048)
    at compilers/imcc/imcparser.c:2781
#6  0x404d6bad in compile_to_bytecode (interp=0x804f048, 
    sourcefile=0xbf8e7b74 "t/compilers/imcc/syn/macro_36.pir",
output_file=0x0)
    at compilers/imcc/main.c:950
#7  0x404d6f92 in imcc_run (interp=0x804f048, 
    sourcefile=0xbf8e7b74 "t/compilers/imcc/syn/macro_36.pir", argc=1, 
    argv=0xbf8e6f48) at compilers/imcc/main.c:1053
#8  0x08048938 in main (argc=1, argv=0xbf8e6f48) at src/main.c:61



More information about the parrot-dev mailing list