Skip Menu |
Report information
Id: 127811
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: bbkr [at] post.pl
Cc:
AdminCc:

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



To: rakudobug [...] perl.org
From: Pawel Pabian <bbkr [...] post.pl>
Subject: Compiling module that uses NativeCall and has warnings hangs forever
Date: Fri, 1 Apr 2016 02:16:57 +0200
Download (untitled) / with headers
text/plain 559b
To reproduce: 1. Save https://gist.github.com/bbkr/19ba6903358445410812bc09b0c0ec9c as Foo.pm 2. rm -rf .precomp/ 3. perl6 -I. -e 'use Foo' Result - module never gets compiled, moar takes 100% CPU. OS X 10.10.5, Rakudo 2016.03. Maybe it has something to do with warning groupping mechanism? Valid signatures or less different signatures compile just fine. BTW: I get reproducible error on OS X but it works on Linux (I've tried to increase amount of different signatures up to 20 but all I got was small linear compile time increase, no infinite locks).
Subject: 20160710.out
Download 20160710.out
application/octet-stream 10.6k

Message body not shown because it is not plain text.

Subject: rt127811.pl
Download rt127811.pl
text/x-perl 593b
use NativeCall; unit module Foo; my sub f1 () is native('libwhatever') { * } my sub f2 (int) is native('libwhatever') { * } my sub f3 (int, int) is native('libwhatever') { * } my sub f4 (int, int, int) is native('libwhatever') { * } my sub f5 (int, int, int, int) is native('libwhatever') { * } my sub f6 (int, int, int, int, int) is native('libwhatever') { * } my sub f7 (int, int, int, int, int, int) is native('libwhatever') { * } my sub f8 (int, int, int, int, int, int, int) is native('libwhatever') { * } my sub f9 (int, int, int, int, int, int, int, int) is native('libwhatever') { * }
Subject: rt127811.sh
Download rt127811.sh
application/octet-stream 52b

Message body not shown because it is not plain text.

RT-Send-CC: perl6-compiler [...] perl.org
Download (untitled) / with headers
text/plain 864b
On Thu Mar 31 17:17:24 2016, bbkr@post.pl wrote: Show quoted text
> To reproduce: > 1. Save https://gist.github.com/bbkr/19ba6903358445410812bc09b0c0ec9c > as Foo.pm > 2. rm -rf .precomp/ > 3. perl6 -I. -e 'use Foo' > > Result - module never gets compiled, moar takes 100% CPU. > OS X 10.10.5, Rakudo 2016.03. > > Maybe it has something to do with warning groupping mechanism? > Valid signatures or less different signatures compile just fine. > > BTW: I get reproducible error on OS X but it works on Linux (I've > tried to increase amount of different signatures up to 20 but all I > got was small linear compile time increase, no infinite locks).
I added 3 files to the ticket - the gist (please attach file to the ticket), a shell script showing the code I ran, and the output of that script. I'm not getting the error; I'm getting a ton of warnings. -- Will "Coke" Coleda


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