# New Ticket Created by Lloyd Fournier
# Please include the string: [perl #126587]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=126587 >
Two async + require bugs. Replace LWP::Simple with whatever you like
(except for builtins like Test which seem to work no matter what)
1. segfault
Thread.start({ say "entering"; require LWP::Simple; say "leaving" })
#both enters and leaves but segfault when it's done.
2. HTTP::Server::Tiny hangs
use HTTP::Server::Tiny;
HTTP::Server::Tiny.new(port => 8080).run: sub ($env) {
note "requiring!";
require LWP::Simple; # or whatever
note "we got it!";
return 200, ['Content-Type' => 'text/plain'], 'we win';
};
# then curl localhost:8080, you'll only get "requiring!".
This is perl6 version 2015.10-220-g4988c70 built on MoarVM version
2015.10-61-g624d504
Mac OSX