Raku / Raku/whateverable

Malformed UTF-8

Open
#153 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

greppable testneeded whateverable
Dominant language
Raku
Stars
19
Forks
16
PR merge metrics
No merged PRs in 30d

Description

In some cases we get errors like this:

Unhandled exception in code scheduled on thread 20
Malformed UTF-8

The source of it seems to be a Proc::Async from get-output sub.

Logically, one would want to use $proc.stdout(:enc<utf8-c8>) to make it work, but it only corrupts memory.

So the issue is not in whateverable, as I believe. There's something wrong with rakudo and it has to be rakudobugged, but right now I don't know what exactly.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the get-output sub in Whateverable.pm6 and its Proc::Async use, then inspect the $proc.stdout(:enc) path mentioned in the report. Reproduce the malformed UTF-8 failure and narrow it to a minimal Rakudo case; done means the failure is sufficiently isolated for a Rakudo bug report.

Written by the indexing model from the issue text.

Assessment

Domain
backend
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.