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

assigning the return value of a failed try { }; blows up #623

Closed
p6rt opened this issue Jan 14, 2009 · 6 comments
Closed

assigning the return value of a failed try { }; blows up #623

p6rt opened this issue Jan 14, 2009 · 6 comments

Comments

@p6rt
Copy link

p6rt commented Jan 14, 2009

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

Searchable as RT62336$

@p6rt
Copy link
Author

p6rt commented Jan 14, 2009

From @moritz

Rakudo r35507​:

./perl6 -e 'my $fh = open("README"); my $res = try { $fh.perl} ;'
Null PMC access in isa()
current instr.​: '!CALLMETHOD' pc 16769 (src/builtins/guts.pir​:74)
called from Sub 'infix​:=' pc 14108 (src/builtins/assign.pir​:19)
called from Sub '_block14' pc 130 (EVAL_16​:61)
called from Sub '!UNIT_START' pc 17255 (src/builtins/guts.pir​:321)
called from Sub 'parrot;PCT;HLLCompiler;eval' pc 950
(src/PCT/HLLCompiler.pir​:527)
called from Sub 'parrot;PCT;HLLCompiler;command_line' pc 1496
(src/PCT/HLLCompiler.pir​:787)
called from Sub 'parrot;Perl6;Compiler;main' pc 21006 (perl6.pir​:158)

@p6rt
Copy link
Author

p6rt commented Mar 10, 2009

From @moritz

This doesn't blow up anymore, because there's now a dummy Object.perl.
Using any non-existing method on the file handle still demonstrates the
error.

@p6rt
Copy link
Author

p6rt commented Mar 10, 2009

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

@p6rt
Copy link
Author

p6rt commented Sep 19, 2010

From sohtil@gmail.com

With current rakudo this again gives a Null PMC access​:

$ ./perl6 -e 'my $fh = open("README"); my $res = try { $fh.perl} ;'
Null PMC access in isa_pmc()
  in '&infix​:<=>' at line 1
  in main program body at line 1

This is Rakudo Perl 6, version 2010.08-119-gccde8dc built on parrot
2.7.0 r49158

Lithos

@p6rt
Copy link
Author

p6rt commented Oct 11, 2011

From @moritz

This is now fixed, and used a few times throughout the test suite.

@p6rt
Copy link
Author

p6rt commented Oct 11, 2011

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

@p6rt p6rt closed this as completed Oct 11, 2011
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