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

Null PMC access in type() #164

Closed
p6rt opened this issue Jul 9, 2008 · 4 comments
Closed

Null PMC access in type() #164

p6rt opened this issue Jul 9, 2008 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Jul 9, 2008

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

Searchable as RT56748$

@p6rt
Copy link
Author

p6rt commented Jul 9, 2008

From @moritz

I found a small piece of code that reproduces the "Null PMC access in
type()" error​:

sub f(Int $n){
  if ($n >= 0 ){
  f($n-1);
  }
}
f(0);

produces the above error on parrot + rakudo r29207, Debian GNU Linux
i386 32bit.

An even smaller example is
sub f (Int $n) { f($n-1) }; f(0)
except that this one would loop infinitely if it weren't for the null
PMC access.

--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/

@p6rt
Copy link
Author

p6rt commented Aug 7, 2008

From @jnthn

On Wed Jul 09 10​:48​:19 2008, moritz@​casella.verplant.org wrote​:

I found a small piece of code that reproduces the "Null PMC access in
type()" error​:

sub f(Int $n){
if ($n >= 0 ){
f($n-1);
}
}
f(0);

produces the above error on parrot + rakudo r29207, Debian GNU Linux
i386 32bit.

I fixed a while ago the bug that prevented us seeing the real exception.
Today I have fixed the root cause of this, which was the type check
failure. So this now runs as it should (I stuck a "say $n" in and tried
it with f(4) and so forth, and it works as expected).

Thanks,

Jonathan

@p6rt
Copy link
Author

p6rt commented Aug 7, 2008

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

@p6rt
Copy link
Author

p6rt commented Aug 7, 2008

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

@p6rt p6rt closed this as completed Aug 7, 2008
@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