Skip to content

Perl_av_extend segmentation fault(cperl 5.30.0) #440

Open
@sten22

Description

@sten22

Very simple test case(reduced from AnyEvent::HTTPD):

my (@pars) = split /[\&\;]/, "xxx=42";

warn "pars", @pars;

~/perl5/perlbrew/perls/cperl-5.30.0/bin/cperl ~/perl5/perlbrew/perls/cperl-5.30.0/bin/perlcc ae-httpd-light.pl

lldb ./ae-httpd-light                                                                      
(lldb) target create "./ae-httpd-light"
Current executable set to '.../tests/perlcc/ae-httpd-light' (x86_64).
(lldb) run
Process 96350 launched: '.../tests/perlcc/ae-httpd-light' (x86_64)
Process 96350 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0xe)
    frame #0: 0x000000010007def1 ae-httpd-light`Perl_av_extend + 17
ae-httpd-light`Perl_av_extend:
->  0x10007def1 <+17>: testb  $-0x80, 0xe(%rdi)
    0x10007def5 <+21>: je     0x10007df09               ; <+41>
    0x10007def7 <+23>: movq   %rbx, %rdi
    0x10007defa <+26>: movl   $0x50, %esi
Target 0: (ae-httpd-light) stopped.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions