develooper Front page | perl.perl5.porters | Postings from February 2015

[perl #123801] Perl_yylex: Assertion `PL_valid_types_IVX[((svtype)((_svivx)->sv_flags & 0xff)) & 0xf]' failed (toke.c:4550)

Thread Previous
From:
Brian Carpenter
Date:
February 11, 2015 19:26
Subject:
[perl #123801] Perl_yylex: Assertion `PL_valid_types_IVX[((svtype)((_svivx)->sv_flags & 0xff)) & 0xf]' failed (toke.c:4550)
Message ID:
rt-4.0.18-24077-1423682784-1933.123801-75-0@perl.org
# New Ticket Created by  Brian Carpenter 
# Please include the string:  [perl #123801]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=123801 >


Built v5.21.9 (v5.21.8-286-g534577b) using the following command line:

./Configure -des -Dusedevel -DDEBUGGING -Dcc=afl-gcc -Doptimize=-O2\ -g && AFL_HARDEN=1 make -j6 test-prep

Bug found with AFL (http://lcamtuf.coredump.cx/afl)

GDB output:
Program terminated with signal 6, Aborted.
#0  0x00007fce68ad7165 in *__GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
64	../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
gdb-peda$ bt
#0  0x00007fce68ad7165 in *__GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x00007fce68ada3e0 in *__GI_abort () at abort.c:92
#2  0x00007fce68ad0311 in *__GI___assert_fail (assertion=0xefc430 "PL_valid_types_IVX[((svtype)((_svivx)->sv_flags & 0xff)) & 0xf]", file=<optimized out>, line=0x11c6, function=0xf3b150 "Perl_yylex") at assert.c:81
#3  0x0000000000611aa1 in Perl_yylex () at toke.c:4550
#4  0x0000000000669685 in Perl_yyparse ()
#5  0x00000000005399a5 in S_parse_body ()
#6  0x0000000000541537 in perl_parse ()
#7  0x000000000042b63c in main () at perlmain.c:114
#8  0x00007fce68ac3ead in __libc_start_main (main=<optimized out>, argc=<optimized out>, ubp_av=<optimized out>, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffaf9e2678) at libc-start.c:244
#9  0x000000000042b955 in _start ()
gdb-peda$ i r
rax            0x0	0x0
rbx            0x7fffaf9e3631	0x7fffaf9e3631
rcx            0xffffffffffffffff	0xffffffffffffffff
rdx            0x6	0x6
rsi            0xe632	0xe632
rdi            0xe632	0xe632
rbp            0x7fce68bf1a07	0x7fce68bf1a07
rsp            0x7fffaf9e1b18	0x7fffaf9e1b18
r8             0x7fce69d26700	0x7fce69d26700
r9             0x67616c665f76733e	0x67616c665f76733e
r10            0x8	0x8
r11            0x202	0x202
r12            0xefc430	0xefc430
r13            0xf3b150	0xf3b150
r14            0x7fce68bf1a07	0x7fce68bf1a07
r15            0x11c6	0x11c6
rip            0x7fce68ad7165	0x7fce68ad7165 <*__GI_raise+53>
eflags         0x202	[ IF ]
cs             0x33	0x33
ss             0x2b	0x2b
ds             0x0	0x0
es             0x0	0x0
fs             0x0	0x0
gs             0x0	0x0

Debian 7, Kernel 3.2.65-1+deb7u1 x86_64, libc 3.2.65-1+deb7u1 x86_6, gcc 4.9.2
Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About