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

.open(:enc<ascii>) on file with unicode leads to MoarVM panic: MVM_nfg_get_synthetic_info called with out-of-range synthetic #6282

Closed
p6rt opened this issue May 27, 2017 · 5 comments

Comments

@p6rt
Copy link

p6rt commented May 27, 2017

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

Searchable as RT131384$

@p6rt
Copy link
Author

p6rt commented May 27, 2017

From @zoffixznet

<Zoffix___> c​: HEAD with "/tmp/foo2121".IO { .spurt​: "fo♥o"; with .open(​:enc<ascii>) { say .slurp } }
<committable6> Zoffix___, ¦HEAD(0c5fe56)​: «MoarVM panic​: MVM_nfg_get_synthetic_info called with out-of-range synthetic «exit code = 1»»

This is not the result of encoding refactor; still exists in 2017.05​:
<Zoffix___> c​: 2017.05 with "/tmp/foo2121".IO { .spurt​: "fo♥o"; with .open(​:enc<ascii>) { say .slurp } }
<committable6> Zoffix___, ¦2017.05​: «MoarVM panic​: MVM_nfg_get_synthetic_info called with out-of-range synthetic «exit code = 1»»

@p6rt
Copy link
Author

p6rt commented May 27, 2017

From @zoffixznet

Bisecting this shows the issue existed before The Christmas​:

Zoffix___> bisect​: old=2015.12,new=b4dfed2a86b8af1 with "/tmp/foo2121".IO { .spurt​: "fo♥o"; with .open(​:enc<ascii>) { say .get } }
<bisectable6> Zoffix___, On both starting points (old=2015.12 new=b4dfed2a86b8af
1) the exit code is 1 and the output is identical as well
<bisectable6> Zoffix___, Output on both points​: «MVM_nfg_get_synthetic_info called with out-of-range synthetic»

@p6rt
Copy link
Author

p6rt commented Jul 7, 2017

From @jnthn

On Sat, 27 May 2017 08​:01​:00 -0700, cpan@​zoffix.com wrote​:

<Zoffix___> c​: HEAD with "/tmp/foo2121".IO { .spurt​: "fo♥o"; with
.open(​:enc<ascii>) { say .slurp } }
<committable6> Zoffix___, ¦HEAD(0c5fe56)​: «MoarVM panic​:
MVM_nfg_get_synthetic_info called with out-of-range synthetic «exit
code = 1»»

This is not the result of encoding refactor; still exists in 2017.05​:
<Zoffix___> c​: 2017.05 with "/tmp/foo2121".IO { .spurt​: "fo♥o"; with
.open(​:enc<ascii>) { say .slurp } }
<committable6> Zoffix___, ¦2017.05​: «MoarVM panic​:
MVM_nfg_get_synthetic_info called with out-of-range synthetic «exit
code = 1»»

Fixed (now it gives a normal decoding exception) and tested in S32-io/io-handle.t.

@p6rt
Copy link
Author

p6rt commented Jul 7, 2017

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

@p6rt p6rt closed this as completed Jul 7, 2017
@p6rt
Copy link
Author

p6rt commented Jul 7, 2017

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

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