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

Segfault when using UNIVERSAL::can + eval #254

Closed
atoomic opened this issue Oct 14, 2015 · 4 comments
Closed

Segfault when using UNIVERSAL::can + eval #254

atoomic opened this issue Oct 14, 2015 · 4 comments

Comments

@atoomic
Copy link
Collaborator

atoomic commented Oct 14, 2015

ENV: perl 5.22 with debug enabled

perl

> perl -e 'Foo->UNIVERSAL::can("boogie"); print "ok\n" unless eval q/Foo->boogie(); 1/;'
ok

perlcc

$>perlcc -e 'Foo->UNIVERSAL::can("boogie"); print "ok\n" unless eval q/Foo->boogie(); 1/;'; ./a.out
zsh: segmentation fault  ./a.out
@rurban
Copy link
Owner

rurban commented Oct 15, 2015

for us only Foo->can() is high prio. I think it is even deprecated

pcc -e 'Foo->can("boogie"); print "ok\n" unless eval q/Foo->boogie(); 1/;'
ok

@toddr
Copy link
Collaborator

toddr commented Oct 19, 2015

I just looked into this. Foo->UNIVERSAL::can while silly looking is not deprecated. So we should still investigate this down the road.

atoomic added a commit to atoomic/perl-compiler that referenced this issue Oct 21, 2015
atoomic added a commit to atoomic/perl-compiler that referenced this issue Oct 21, 2015
@toddr
Copy link
Collaborator

toddr commented Oct 29, 2015

./t/testc.sh 254

@toddr
Copy link
Collaborator

toddr commented Nov 5, 2015

This has been resolved by commit 55528dd which is strange cause I thought this was an overload issue via #219

@toddr toddr closed this as completed Nov 5, 2015
atoomic added a commit to cpanel/perl-compiler that referenced this issue Aug 9, 2016
atoomic added a commit to cpanel/perl-compiler that referenced this issue Aug 9, 2016
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

3 participants