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

printf with too few arguments returns "Null PMC Access" #620

Closed
p6rt opened this issue Jan 13, 2009 · 11 comments
Closed

printf with too few arguments returns "Null PMC Access" #620

p6rt opened this issue Jan 13, 2009 · 11 comments

Comments

@p6rt
Copy link

p6rt commented Jan 13, 2009

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

Searchable as RT62316$

@p6rt
Copy link
Author

p6rt commented Jan 13, 2009

From @masak

Rakudo r35481 reacts badly to a printf wherein the variables needed
are fewer than the variables available.

$ perl6 -e 'printf("%s")'
Null PMC access in get_string()
[...]

@p6rt
Copy link
Author

p6rt commented May 1, 2009

From @ronaldxs

Same error with sprintf so test added to /t/spec/S32-str/sprintf.t.

@p6rt
Copy link
Author

p6rt commented May 1, 2009

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

@p6rt
Copy link
Author

p6rt commented Aug 25, 2009

From @jnthn

On Tue Jan 13 13​:06​:01 2009, masak wrote​:

Rakudo r35481 reacts badly to a printf wherein the variables needed
are fewer than the variables available.

$ perl6 -e 'printf("%s")'
Null PMC access in get_string()
[...]

Now it returns a Failure. Pushed fix in git 9efc9fe and tests unfudged.

Thanks,

Jonathan

@p6rt
Copy link
Author

p6rt commented Aug 25, 2009

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

@p6rt
Copy link
Author

p6rt commented Jan 7, 2011

From @Kodiologist

And now it dies with an error message again, but this time, the message
is informative; see #​74610.

@p6rt
Copy link
Author

p6rt commented Mar 24, 2013

From quester.pm@gmail.com

Hello,

Oddly, this is exactly the same symptom that was reported and resolved in
2009 in bug #​62316. It looks like it sneaked back into the latest version
of Rakudo.

$ perl6 -e 'printf "%s"'
Null PMC access in get_string()
  in sub sprintf at src/gen/CORE.setting​:2471
  in sub printf at src/gen/CORE.setting​:2476
  in block at -e​:1

$ perl6 -v
This is perl6 version 2013.03 built on parrot 4.10.0 revision RELEASE_4_10_0

Niecza rejects this with a more appropriate "Unhandled exception​: Not
enough arguments for this format string".

Best regards,
Ira Kevin Byerly
quester (on #perl6 and perlmonks)
quester.pm@​gmail.com

@p6rt
Copy link
Author

p6rt commented Mar 24, 2013

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

@p6rt
Copy link
Author

p6rt commented Apr 22, 2013

From @coke

On Sat Mar 23 22​:45​:10 2013, quester.pm@​gmail.com wrote​:

Hello,

Oddly, this is exactly the same symptom that was reported and resolved in
2009 in bug #​62316. It looks like it sneaked back into the latest version
of Rakudo.

$ perl6 -e 'printf "%s"'
Null PMC access in get_string()
in sub sprintf at src/gen/CORE.setting​:2471
in sub printf at src/gen/CORE.setting​:2476
in block at -e​:1

$ perl6 -v
This is perl6 version 2013.03 built on parrot 4.10.0 revision RELEASE_4_10_0

Niecza rejects this with a more appropriate "Unhandled exception​: Not
enough arguments for this format string".

Best regards,
Ira Kevin Byerly
quester (on #perl6 and perlmonks)
quester.pm@​gmail.com

This dies again with
  ./perl6 -e 'printf "%s"'

Null PMC access in get_string()
  in sub sprintf at src/gen/CORE.setting​:2554
  in sub printf at src/gen/CORE.setting​:2559
  in block at -e​:1

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Aug 23, 2013

From @FROGGS

Fixed, tests are at Raku/roast@2647c16652

@p6rt
Copy link
Author

p6rt commented Aug 23, 2013

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

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