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

on single utf8-c8 synthetic #4794

Closed
p6rt opened this issue Nov 28, 2015 · 4 comments
Closed

on single utf8-c8 synthetic #4794

p6rt opened this issue Nov 28, 2015 · 4 comments
Labels
SEGV Segmentation fault, bus error, etc.

Comments

@p6rt
Copy link

p6rt commented Nov 28, 2015

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

Searchable as RT126756$

@p6rt
Copy link
Author

p6rt commented Nov 28, 2015

From @lizmat

[15​:04​:37] <lizmat> m​: Buf.new(0xFE).decode("utf8-c8") # jnthn might find this interesting
[15​:04​:38] <+camelia> rakudo-moar 6a45fe​: OUTPUT«(signal SEGV)»
[15​:08​:24] <jnthn> lizmat​: Uh, yes...wtf...
[15​:08​:30] <jnthn> lizmat​: Please RT it

I think it’s related to the fact that it starts with a synthetic, because​:

$ 6 'say Buf.new(0xFE,ord(“A”)).decode("utf8-c8")'
Segmentation fault​: 11

whereas if it starts with a non-synthetic​:

$ 6 'say Buf.new(ord("A"),0xFE).decode("utf8-c8")'
A􏿽xF

Liz

@p6rt
Copy link
Author

p6rt commented Apr 1, 2016

From @jnthn

On Sat Nov 28 06​:22​:27 2015, elizabeth wrote​:

[15​:04​:37] <lizmat> m​: Buf.new(0xFE).decode("utf8-c8") # jnthn
might find this interesting
[15​:04​:38] <+camelia> rakudo-moar 6a45fe​: OUTPUT«(signal SEGV)»
[15​:08​:24] <jnthn> lizmat​: Uh, yes...wtf...
[15​:08​:30] <jnthn> lizmat​: Please RT it

I think it’s related to the fact that it starts with a synthetic,
because​:

$ 6 'say Buf.new(0xFE,ord(“A”)).decode("utf8-c8")'
Segmentation fault​: 11

whereas if it starts with a non-synthetic​:

$ 6 'say Buf.new(ord("A"),0xFE).decode("utf8-c8")'
A􏿽xF

Fixed; test in S32-str/utf8-c8.t.

/jnthn

@p6rt
Copy link
Author

p6rt commented Apr 1, 2016

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

@p6rt p6rt closed this as completed Apr 1, 2016
@p6rt
Copy link
Author

p6rt commented Apr 1, 2016

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

@p6rt p6rt added the SEGV Segmentation fault, bus error, etc. label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SEGV Segmentation fault, bus error, etc.
Projects
None yet
Development

No branches or pull requests

1 participant