Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Coro: segfault (perl-5.24+) #365

Open
constantined opened this issue May 30, 2018 · 5 comments
Open

Coro: segfault (perl-5.24+) #365

constantined opened this issue May 30, 2018 · 5 comments

Comments

@constantined
Copy link

Testcase:

use Coro;

sub _sleep {
    my $c = Coro::rouse_cb();
    Coro::rouse_wait();
}

my $child = async {
    my ($a, $a2, $a3
# remove following line to omit segfault
        , $a4, $a5, $a6, $a7, $a8, $a9
    );

    _sleep();
};

cede;
warn "canceling";
$child->cancel();

Segfault occurs in scope.c: Perl_leave_scope.
It seems like this bug also affects p5p. First bad commit is e8a84ef.

@rurban
Copy link
Member

rurban commented May 31, 2018

This is a Coro bug (EV actually), not cperl/perl5.
See rurban/Coro#1
Thanks for bisecting. Work was done on my 5.22 branch, but it is not done yet.

@rurban rurban closed this as completed May 31, 2018
@constantined
Copy link
Author

This code doesn't use EV.
Bug is not related to #103

@rurban
Copy link
Member

rurban commented May 31, 2018

Can you check my latest Coro code, branch 5.22. This tests fine for me.

@constantined
Copy link
Author

https://github.com/rurban/Coro/tree/5.22 also segfaults on cperl/perl-5.24+

@rurban
Copy link
Member

rurban commented Jun 1, 2018

Ok, thanks. I'll check the changed scope stuff then.

@rurban rurban reopened this Jun 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants