#1 require inside thread now gives:

perl6 -e 'Thread.start({ say "entering"; require Linenoise; say "leaving"
})'
entering
Unhandled exception: This type does not support associative operations
   at <unknown>:1
 
(/Users/llfourn/.rakudobrew/moar-nom/install/share/perl6/runtime/CORE.setting.moarvm::4294967295)
 from <unknown>:1
 
(/Users/llfourn/.rakudobrew/moar-nom/install/share/perl6/runtime/CORE.setting.moarvm::18)
 from gen/moar/m-CORE.setting:34776
 
(/Users/llfourn/.rakudobrew/moar-nom/install/share/perl6/runtime/CORE.setting.moarvm::20)
 from gen/moar/m-CORE.setting:34770
 
(/Users/llfourn/.rakudobrew/moar-nom/install/share/perl6/runtime/CORE.setting.moarvm:setup-repositories:67)
 from gen/moar/m-CORE.setting:35668
 
(/Users/llfourn/.rakudobrew/moar-nom/install/share/perl6/runtime/CORE.setting.moarvm:INITIALIZE_DYNAMIC:38)
 from gen/moar/m-CORE.setting:585
 
(/Users/llfourn/.rakudobrew/moar-nom/install/share/perl6/runtime/CORE.setting.moarvm:INITIALIZE_DYNAMIC:25)
 from gen/moar/m-CORE.setting:576
 
(/Users/llfourn/.rakudobrew/moar-nom/install/share/perl6/runtime/CORE.setting.moarvm::57)
 from gen/moar/m-CORE.setting:565
 
(/Users/llfourn/.rakudobrew/moar-nom/install/share/perl6/runtime/CORE.setting.moarvm::43)
 from gen/moar/m-CORE.setting:558
 
(/Users/llfourn/.rakudobrew/moar-nom/install/share/perl6/runtime/CORE.setting.moarvm:DYNAMIC:29)
 from gen/moar/m-CORE.setting:34896
 
(/Users/llfourn/.rakudobrew/moar-nom/install/share/perl6/runtime/CORE.setting.moarvm::169)
 from gen/moar/m-CORE.setting:34884
 
(/Users/llfourn/.rakudobrew/moar-nom/install/share/perl6/runtime/CORE.setting.moarvm::52)
 from gen/moar/m-CORE.setting:30433
 
(/Users/llfourn/.rakudobrew/moar-nom/install/share/perl6/runtime/CORE.setting.moarvm:protect:51)
 from gen/moar/m-CORE.setting:34881
 
(/Users/llfourn/.rakudobrew/moar-nom/install/share/perl6/runtime/CORE.setting.moarvm:load_module:165)
 from -e:1  (<ephemeral file>::52)
 from gen/moar/m-CORE.setting:30362
 
(/Users/llfourn/.rakudobrew/moar-nom/install/share/perl6/runtime/CORE.setting.moarvm:THREAD-ENTRY:44)

On Sun, Nov 8, 2015 at 8:11 PM perl6 via RT <perl6-bugs-follo...@perl.org>
wrote:

> Greetings,
>
> This message has been automatically generated in response to the
> creation of a trouble ticket regarding:
>         "[BUG] require inside thread segfault hang",
> a summary of which appears below.
>
> There is no need to reply to this message right now.  Your ticket has been
> assigned an ID of [perl #126587].
>
> Please include the string:
>
>          [perl #126587]
>
> in the subject line of all future correspondence about this issue. To do
> so,
> you may reply to this message.
>
>                         Thank you,
>                         perl6-bugs-follo...@perl.org
>
> -------------------------------------------------------------------------
> 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
>
>

Reply via email to