Navigation Menu

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 .fmt and sprintf when number of specifications exceed arguments in Rakudo #2581

Closed
p6rt opened this issue Dec 19, 2011 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Dec 19, 2011

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

Searchable as RT106594$

@p6rt
Copy link
Author

p6rt commented Dec 19, 2011

From @masak

<lichtkind> rakudo​: my @​d= 1..5; say @​d.fmt( "jojo %d %d");
<p6eval> rakudo 1eadbb​: OUTPUT«Null PMC access in get_integer() [...]
<lichtkind> rakudo​: my @​d= 1..5; say @​d.fmt( "%d", ',');
<p6eval> rakudo 1eadbb​: OUTPUT«1,2,3,4,5␤»
<lichtkind> rakudo​: my @​d= 1..5; say @​d.fmt( "%d-%s");
<p6eval> rakudo 1eadbb​: OUTPUT«Null PMC access in get_string() [...]
<lichtkind> rakudo​: my @​d= 1..5; say @​d.fmt( "-%s");
<p6eval> rakudo 1eadbb​: OUTPUT«-1 -2 -3 -4 -5␤»
<lichtkind> got it :)
<jnthn> npmca ist crap, though.
* masak submits rakudobug
<masak> hello, #perl6 :)
<jnthn> masak. He submits bugs, THEN greets you.
<masak> rakudo​: say sprintf("%d-%s", 42)
<p6eval> rakudo 1eadbb​: OUTPUT«Null PMC access in get_string() [...]
<masak> sprintf is the real culprit.
<jnthn> ah
* moritz thought so

@p6rt
Copy link
Author

p6rt commented Mar 12, 2013

From @labster

Also this has a similar Null PMC error​:

1.1.fmt('%.*f')
Probably from not having the multiple argument form as in perl 5.

@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

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

@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
@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