Navigation Menu

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

.wrap causes segfault when wrapping core sub and using that sub in a module that uses the module that wraps #5400

Open
p6rt opened this issue Jun 24, 2016 · 2 comments
Labels
SEGV Segmentation fault, bus error, etc.

Comments

@p6rt
Copy link

p6rt commented Jun 24, 2016

Migrated from rt.perl.org#128476 (status was 'new')

Searchable as RT128476$

@p6rt
Copy link
Author

p6rt commented Jun 24, 2016

From @zoffixznet

zoffix@​leliana​:/tmp/tmp.tEaH2sjXYg$ tree
.
├── A.pm6
└── B.pm6

0 directories, 2 files
zoffix@​leliana​:/tmp/tmp.tEaH2sjXYg$ cat B.pm6
unit module B;
use soft;
&put.wrap(sub (| is raw) {say "We're here!"; callsame});
zoffix@​leliana​:/tmp/tmp.tEaH2sjXYg$ cat A.pm6
unit module A;
use B;
zoffix@​leliana​:/tmp/tmp.tEaH2sjXYg$ perl6 -I. -MA -e 'put "foo"'
Segmentation fault
zoffix@​leliana​:/tmp/tmp.tEaH2sjXYg$

@p6rt
Copy link
Author

p6rt commented Jun 24, 2016

From @zoffixznet

Worth noting​: if you add `no precompilation;` at the top of module B.pm6, the bug disappears.

@p6rt p6rt added the SEGV Segmentation fault, bus error, etc. label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SEGV Segmentation fault, bus error, etc.
Projects
None yet
Development

No branches or pull requests

1 participant