Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue Installing DBIish #6445

Closed
p6rt opened this issue Aug 15, 2017 · 6 comments
Closed

Issue Installing DBIish #6445

p6rt opened this issue Aug 15, 2017 · 6 comments

Comments

@p6rt
Copy link

p6rt commented Aug 15, 2017

Migrated from rt.perl.org#131898 (status was 'resolved')

Searchable as RT131898$

@p6rt
Copy link
Author

p6rt commented Aug 15, 2017

From chrz4376@kettering.edu

Hello All,

I was told on #perl6's irc channel on irc.freenode.net to put this in a bug
report here.

Long story short, whenever I try to run `zef install DBIish`, I receive
this error​:

http://termbin.com/nhvo

Here's my current perl6 version, built today​:

`This is Rakudo version 2017.07-160-g231cb3f built on MoarVM version
2017.07-403-g712cff3
implementing Perl 6.c.`

Let me know if you need any more information.

Thanks,
Brian Chrzanowski

@p6rt
Copy link
Author

p6rt commented Aug 15, 2017

From @AlexDaniel

Bisected​:

<AlexDaniel> bisect​: old=HEAD300 https://gist.githubusercontent.com/AlexDaniel/1e2c456f006687ea7100a35b2931af41/raw/9aad30ec83728b43b5d1d134a4c0701354e2c8c5/nativehelpers-test.p6
<bisectable6> AlexDaniel, Successfully fetched the code from the provided URL.
<bisectable6> AlexDaniel, Bisecting by exit code (old=HEAD
300 new=231cb3f). Old exit code​: 0
<bisectable6> AlexDaniel, bisect log​: https://gist.github.com/ccec99653559dd5f130e8a033fc7bdfb
<bisectable6> AlexDaniel, (2017-08-07) rakudo/rakudo@46ef1b5

On 2017-08-14 17​:16​:40, chrz4376@​kettering.edu wrote​:

Hello All,

I was told on #perl6's irc channel on irc.freenode.net to put this in a bug
report here.

Long story short, whenever I try to run `zef install DBIish`, I receive
this error​:

http://termbin.com/nhvo

Here's my current perl6 version, built today​:

`This is Rakudo version 2017.07-160-g231cb3f built on MoarVM version
2017.07-403-g712cff3
implementing Perl 6.c.`

Let me know if you need any more information.

Thanks,
Brian Chrzanowski

@p6rt
Copy link
Author

p6rt commented Aug 15, 2017

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Aug 15, 2017

From @niner

It's somehow caused by the native sub being declared within the blob-from-pointer sub​: https://github.com/salortiz/NativeHelpers-Blob/blob/master/lib/NativeHelpers/Blob.pm6#L94
It works when this sub is moved outside blob-from-pointer.

@p6rt
Copy link
Author

p6rt commented Aug 16, 2017

From @niner

Fixed in commit 9a0afcbcec8416c1d56bdced68a3f993e7be9d3c
Author​: Stefan Seifert <nine@​detonation.org>
Date​: Wed Aug 16 20​:27​:11 2017 +0200

  RT 131898​: Fix native closures failing on the second run
 
  On the first call of a native sub we create a new subroutine body and replace
  the original (stored in the routine's $!do attribute). We also set the
  invocation spec so the body will be called instead of the CALL-ME method. This
  invocation spec is shared between an original routine and it's clones. If the
  routine is a clousre, the body won't be shared as only a clone of the routine
  will be actually visible in the lexical scope. So until someone comes up with
  a better idea, we won't create an optimized version for a closure anymore.

@p6rt
Copy link
Author

p6rt commented Aug 16, 2017

@niner - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Aug 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant