Skip Menu |
Report information
Id: 130857
Status: resolved
Priority: 0/
Queue: perl6

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

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



Subject: WARNING: unhandled Failure detected in DESTROY
Download (untitled) / with headers
text/plain 2.1k
The code in Failure.pm has: # "Shouldn't happen." We use note here because the dynamic scope in GC is likely meaningless. submethod DESTROY () { if not $!handled { note "WARNING: unhandled Failure detected in DESTROY:\n" ~ self.mess } } However, it does happen with this code: my $matcher = *.so; say eager grep $matcher, gather with CORE:: -> $c { with &?BLOCK -> &dig { for $c.keys.grep(* ne 'IterationEnd') { take $c.{$_}; $c.{$_}.WHO.keys and dig $c.{$_}; } } } Output: zoffix@VirtualBox:~$ perl6 /tmp/z.map.p6 WARNING: unhandled Failure detected in DESTROY: Type SocketType does not support associative indexing. in block at /tmp/z.map.p6 line 6 in code at /tmp/z.map.p6 line 3 in block <unit> at /tmp/z.map.p6 line 2 WARNING: unhandled Failure detected in DESTROY: Type PromiseStatus does not support associative indexing. in block at /tmp/z.map.p6 line 6 in code at /tmp/z.map.p6 line 3 in block <unit> at /tmp/z.map.p6 line 2 WARNING: unhandled Failure detected in DESTROY: Type Signal does not support associative indexing. in block at /tmp/z.map.p6 line 6 in code at /tmp/z.map.p6 line 3 in block <unit> at /tmp/z.map.p6 line 2 WARNING: unhandled Failure detected in DESTROY: Type Signal does not support associative indexing. in block at /tmp/z.map.p6 line 6 in code at /tmp/z.map.p6 line 3 in block <unit> at /tmp/z.map.p6 line 2 Cannot find method 'keys': no method cache and no .^find_method in block at /tmp/z.map.p6 line 6 in code at /tmp/z.map.p6 line 3 in block <unit> at /tmp/z.map.p6 line 2 zoffix@VirtualBox:~$ perl6 /tmp/z.map.p6 Cannot find method 'keys': no method cache and no .^find_method in block at /tmp/z.map.p6 line 6 in code at /tmp/z.map.p6 line 3 in block <unit> at /tmp/z.map.p6 line 2 zoffix@VirtualBox:~$ zoffix@VirtualBox:~$ perl6 -v This is Rakudo version 2017.02-72-g3de7b08 built on MoarVM version 2017.02-7-g3d85900 implementing Perl 6.c. zoffix@VirtualBox:~$
Download (untitled) / with headers
text/plain 683b
I'm also seeing this and it definitely started when I upgraded to 2017.03 Output: WARNING: unhandled Failure detected in DESTROY: No such symbol 'Powerline::Prompt::Shell::Bash' in block at /home/tojo/Git/perl6-powerline-prompt/examples/powerline-daemon.p6 line 12 in sub MAIN at /home/tojo/Git/perl6-powerline-prompt/examples/powerline-daemon.p6 line 8 in block <unit> at /home/tojo/Git/perl6-powerline-prompt/examples/powerline-daemon.p6 line 6 Code: https://github.com/7ojo/perl6-powerline-prompt/blob/master/examples/powerline-daemon.p6 Version: perl6 -v This is Rakudo version 2017.03 built on MoarVM version 2017.03 implementing Perl 6.c. -- best regards, Jarkko
RT-Send-CC: perl6-compiler [...] perl.org
Download (untitled) / with headers
text/plain 264b
I only now realized what this message actually means /o\ A Failure that neither exploded nor was handled got GCed, potentially indicating an error in user's code due to missed Failures. I improved the message in https://github.com/rakudo/rakudo/commit/75c3f29100


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