Skip Menu |
Report information
Id: 128476
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: cpan [at] zoffix.com
Cc:
AdminCc:

Severity: (no value)
Tag: Bug
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: [BUG] .wrap causes segfault when wrapping core sub and using that sub in a module that uses the module that wraps
Download (untitled) / with headers
text/plain 418b
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$
Worth noting: if you add `no precompilation;` at the top of module B.pm6, the bug disappears.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org