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

'Hash of Hash' line causes REPL to segfault in Rakudo #3009

Closed
p6rt opened this issue Dec 27, 2012 · 6 comments
Closed

'Hash of Hash' line causes REPL to segfault in Rakudo #3009

p6rt opened this issue Dec 27, 2012 · 6 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Dec 27, 2012

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

Searchable as RT116212$

@p6rt
Copy link
Author

p6rt commented Dec 27, 2012

From @masak

<doy> r​: class Foo { has Hash of Hash $.foo = {} }; Foo.new
<p6eval> rakudo c8de2e​: OUTPUT«Type check failed in assignment to
'$!foo'; expected 'Hash+{TypedHash}' but got 'Hash' [...]
<doy> am i misunderstanding how this works, or is this just not
properly implemented yet
<flussence> I think typed hash/arrays aren't quite there
<masak> I don't recall seeing 'of' in working code.
<doy> okay
<doy> it just looked like it was trying to work, so i wasn't sure
<doy> heh, and running that line in rakudo's repl makes it segfault
once you exit
* masak tries to reproduce that

$ nom

class Foo { has Hash of Hash $.foo = {} }; Foo.new
Type check failed in assignment to '$!foo'; expected
'Hash+{TypedHash}' but got 'Hash'
/usr/local/bin/nom​: line 3​: 7714 Segmentation fault /home/masak/ours/nom-rakudo/install/bin/perl6 "$@​"

<masak> yep.
* masak submits rakudobug

@p6rt
Copy link
Author

p6rt commented Jan 24, 2015

From @usev6

As a status update​: I don't get a segfault in the REPL with a current rakudo (tested on moar, parrot and jvm).

The error message has changed slightly​:

$ perl6-m

class Foo { has Hash of Hash $.foo = {} }; Foo.new
Type check failed in assignment to '$!foo'; expected 'Hash[Hash]' but got 'Hash'
  in block at src/gen/m-CORE.setting​:1018
  in method BUILDALL at src/gen/m-CORE.setting​:973
  in method bless at src/gen/m-CORE.setting​:961
  in method new at src/gen/m-CORE.setting​:947
  in block <unit> at <unknown file>​:1

say "alive"
alive
exit
$

1 similar comment
@p6rt
Copy link
Author

p6rt commented Jan 24, 2015

From @usev6

As a status update​: I don't get a segfault in the REPL with a current rakudo (tested on moar, parrot and jvm).

The error message has changed slightly​:

$ perl6-m

class Foo { has Hash of Hash $.foo = {} }; Foo.new
Type check failed in assignment to '$!foo'; expected 'Hash[Hash]' but got 'Hash'
  in block at src/gen/m-CORE.setting​:1018
  in method BUILDALL at src/gen/m-CORE.setting​:973
  in method bless at src/gen/m-CORE.setting​:961
  in method new at src/gen/m-CORE.setting​:947
  in block <unit> at <unknown file>​:1

say "alive"
alive
exit
$

@p6rt
Copy link
Author

p6rt commented Jan 24, 2015

@usev6 - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Feb 1, 2015

From @masak

On Sat Jan 24 13​:52​:59 2015, bartolin@​gmx.de wrote​:

As a status update​: I don't get a segfault in the REPL with a current
rakudo (tested on moar, parrot and jvm).

The error message has changed slightly​:

More exactly, the segfault is now gone.

<masak> m​: class Foo { has Hash of Hash $.foo = {} }; Foo.new
<camelia> rakudo-moar 6e182d​: OUTPUT«Type check failed in assignment to '$!foo'; expected 'Hash[Hash]' but got 'Hash' [...]
* masak resolves #​116212

@p6rt
Copy link
Author

p6rt commented Feb 1, 2015

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

@p6rt p6rt closed this as completed Feb 1, 2015
@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