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

[perl #123762] Perl_av_extend: Assertion `((svtype)((av)->sv_flags & 0xff)) == SVt_PVAV' failed (av.c:70)

Thread Previous
Brian Carpenter
February 8, 2015 20:49
[perl #123762] Perl_av_extend: Assertion `((svtype)((av)->sv_flags & 0xff)) == SVt_PVAV' failed (av.c:70)
Message ID:
# New Ticket Created by  Brian Carpenter 
# Please include the string:  [perl #123762]
# in the subject line of all future correspondence about this issue. 
# <URL: >

Built v5.21.9 (v5.21.8-237-g3c47da3) with 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 (

GDB output:
gdb-peda$ file ~/perl/perl
gdb-peda$ set args
gdb-peda$ r
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/".
Use of my $_ is experimental at line 5.
Content-type: text/html

Hello World.
Heres the form info:<P>
perl: av.c:70: Perl_av_extend: Assertion `((svtype)((av)->sv_flags & 0xff)) == SVt_PVAV' failed.

Program received signal SIGABRT, Aborted.
RAX: 0x0 
RBX: 0x7fffffffe60f --> 0x3a6469006c726570 ('perl')
RCX: 0xffffffffffffffff 
RDX: 0x6 
RSI: 0x9a93 
RDI: 0x9a93 
RBP: 0x7ffff6ea9a07 --> 0x257325732500203a (': ')
RSP: 0x7fffffffde48 --> 0x7ffff6d923e0 (<*__GI_abort+384>:	mov    rdx,QWORD PTR fs:0x10)
RIP: 0x7ffff6d8f165 (<*__GI_raise+53>:	cmp    rax,0xfffffffffffff000)
R8 : 0x7ffff7fdd700 (0x00007ffff7fdd700)
R9 : 0x27564156505f7456 ("Vt_PVAV'")
R10: 0x8 
R11: 0x206 
R12: 0xefd3e8 ("((svtype)((av)->sv_flags & 0xff)) == SVt_PVAV")
R13: 0xf6e922 ("Perl_av_extend")
R14: 0x7ffff6ea9a07 --> 0x257325732500203a (': ')
R15: 0x46 ('F')
EFLAGS: 0x206 (carry PARITY adjust zero sign trap INTERRUPT direction overflow)
   0x7ffff6d8f15b <*__GI_raise+43>:	movsxd rdi,eax
   0x7ffff6d8f15e <*__GI_raise+46>:	mov    eax,0xea
   0x7ffff6d8f163 <*__GI_raise+51>:	syscall 
=> 0x7ffff6d8f165 <*__GI_raise+53>:	cmp    rax,0xfffffffffffff000
   0x7ffff6d8f16b <*__GI_raise+59>:	ja     0x7ffff6d8f182 <*__GI_raise+82>
   0x7ffff6d8f16d <*__GI_raise+61>:	repz ret 
   0x7ffff6d8f16f <*__GI_raise+63>:	nop
   0x7ffff6d8f170 <*__GI_raise+64>:	test   eax,eax
0000| 0x7fffffffde48 --> 0x7ffff6d923e0 (<*__GI_abort+384>:	mov    rdx,QWORD PTR fs:0x10)
0008| 0x7fffffffde50 --> 0xefd3e8 ("((svtype)((av)->sv_flags & 0xff)) == SVt_PVAV")
0016| 0x7fffffffde58 --> 0x7ffff6eab9c1 --> 0x706c6568007325 ('%s')
0024| 0x7fffffffde60 --> 0x7fffffffde80 --> 0x3000000018 
0032| 0x7fffffffde68 --> 0x46 ('F')
0040| 0x7fffffffde70 --> 0x7fffffffdf70 --> 0x7fffffffe60f --> 0x3a6469006c726570 ('perl')
0048| 0x7fffffffde78 --> 0x7ffff6dc3fe6 (<__fxprintf+310>:	lea    rsp,[rbp-0x20])
0056| 0x7fffffffde80 --> 0x3000000018 
Legend: code, data, rodata, value
Stopped reason: SIGABRT
0x00007ffff6d8f165 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.

Debian 7, kernel v3.2.63-2+deb7u2 x86_64, libc6 v2.13-38+deb7u7, GCC 4.9.2
Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About