perl-unicode

Core dump from "Missing right brace on \x{}"

1998-10-13 14:42:53
$ ./perl -e '"\x{FF";'
Missing right brace on \x{} at -e line 1, within string
Segmentation fault (core dumped)

$ gdb perl core
Core was generated by `./perl -e "\x{FF";'.
Program terminated with signal 11, Segmentation fault.
#0  0x8064527 in Perl_scan_const (start=0x811d200 "\\x{FF") at toke.c:960
960             else if (*s == '(' && PL_lex_inpat && s[1] == '?') {
(gdb) bt
#0  0x8064527 in Perl_scan_const (start=0x811d200 "\\x{FF") at toke.c:960
#1  0x8066743 in Perl_yylex () at toke.c:1821
#2  0x8076ef2 in Perl_yyparse () at perly.c:1441
#3  0x80596d4 in perl_parse (sv_interp=0x8113f00, xsinit=0x8057264 <xs_init>, 
    argc=1, argv=0xbffffa64, env=0x0) at perl.c:979
#4  0x805720e in main (argc=3, argv=0xbffffa5c, env=0xbffffa6c)
    at perlmain.c:43
#5  0x805715b in ___crt_dummy__ ()

[perl5.005_52, Linux, i586]

Regards,
Gisle

<Prev in Thread] Current Thread [Next in Thread>