Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perl_av_extend segmentation fault(cperl 5.30.0) #440

Open
sten22 opened this issue Oct 23, 2021 · 1 comment
Open

Perl_av_extend segmentation fault(cperl 5.30.0) #440

sten22 opened this issue Oct 23, 2021 · 1 comment
Assignees

Comments

@sten22
Copy link

sten22 commented Oct 23, 2021

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.
@rurban rurban self-assigned this Oct 24, 2021
@sten22
Copy link
Author

sten22 commented Oct 24, 2021

same bug on cperl-5.26.5
works on cperl-5.24.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants