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

List.Capture crashes when List contains Pairs with non-Str keys #6257

Closed
p6rt opened this issue May 23, 2017 · 3 comments
Closed

List.Capture crashes when List contains Pairs with non-Str keys #6257

p6rt opened this issue May 23, 2017 · 3 comments
Labels

Comments

@p6rt
Copy link

p6rt commented May 23, 2017

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

Searchable as RT131351$

@p6rt
Copy link
Author

p6rt commented May 23, 2017

From @zoffixznet

The culprit is this line that make an nqp​::hash out of Pairs, but I guess we don't yet have object nqp hashes? https://github.com/rakudo/rakudo/blob/c82b72a/src/core/List.pm#L886

  <Zoffix___> m​: (class {} => 42,).Capture
  <evalable6> Zoffix___, rakudo-moar c82b72ae3​: OUTPUT​: «(exit code 1) Cannot unbox a type object (<anon|50703168>) to a str.␤ in block <unit> at /tmp/Qa6ci_ikcF line 1␤»
  <Zoffix___> m​: (<a b> => 42,).Capture
  <evalable6> Zoffix___, rakudo-moar c82b72ae3​: OUTPUT​: «(exit code 1) This type cannot unbox to a native string​: P6opaque, List␤ in block <unit> at /tmp/okIydC1bSK line 1␤»

@p6rt
Copy link
Author

p6rt commented May 24, 2017

From @zoffixznet

On Tue, 23 May 2017 15​:59​:43 -0700, cpan@​zoffix.com wrote​:

The culprit is this line that make an nqp​::hash out of Pairs, but I
guess we don't yet have object nqp hashes?
https://github.com/rakudo/rakudo/blob/c82b72a/src/core/List.pm#L886

<Zoffix___> m​: (class {} => 42,).Capture
<evalable6> Zoffix___, rakudo-moar c82b72ae3​: OUTPUT​: «(exit code 1)
Cannot unbox a type object (<anon|50703168>) to a str.␤ in block
<unit> at /tmp/Qa6ci_ikcF line 1␤»
<Zoffix___> m​: (<a b> => 42,).Capture
<evalable6> Zoffix___, rakudo-moar c82b72ae3​: OUTPUT​: «(exit code 1)
This type cannot unbox to a native string​: P6opaque, List␤ in block
<unit> at /tmp/okIydC1bSK line 1␤»

Thank you for the report. This is now fixed.

Fix​: rakudo/rakudo@5b25836f21
Tests​: Raku/roast@ae935c92eb

@p6rt
Copy link
Author

p6rt commented May 24, 2017

@zoffixznet - Status changed from 'new' to 'resolved'

@p6rt p6rt closed this as completed May 24, 2017
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant