rust-lang / rust-lang/rustc_codegen_gcc

The tests from base64 get OOM-killed

Open
#336 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
1.2k
Forks
105
Avg merge
8h 20m
Merged PRs (30d)
14

Description

The tests in base64 crate decode_detect_invalid_last_symbol_every_possible_three_symbols use a lot of RAM and doesn't free it while it doesn't happen when compiled with LLVM.

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 base64 test named decode_detect_invalid_last_symbol_every_possible_three_symbols and reproduce its OOM behavior under the rustc_codegen_gcc backend. Compare the result with LLVM and inspect how the test exercises invalid symbols. Done means the test no longer exhausts memory while retaining the expected decoding behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.