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

Spurious indexing error on iOS simulator #138984

Closed
newpavlov opened this issue Mar 26, 2025 · 2 comments
Closed

Spurious indexing error on iOS simulator #138984

newpavlov opened this issue Mar 26, 2025 · 2 comments
Labels
C-bug Category: This is a bug. S-needs-info Status: The issue lacks details necessary to triage or act on it.

Comments

@newpavlov
Copy link
Contributor

newpavlov commented Mar 26, 2025

In getrandom we have this CI job winch uses cargo dinghy. From time to time we get the following error while running tests:

thread 'main' panicked at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/core/src/str/mod.rs:667:21:
byte index 8 is out of bounds of ``
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Simply re-running the job "fixes" the issue and I couldn't reproduce it locally. I will add RUST_BACKTRACE to the CI job, but for now it's all information I have.

Initially I thought that we get a spurious error from the system API, which then triggers bug with error formatting, but I couldn't find anything suspicious in our code.

@newpavlov newpavlov added the C-bug Category: This is a bug. label Mar 26, 2025
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Mar 26, 2025
newpavlov added a commit to rust-random/getrandom that referenced this issue Mar 27, 2025
This would give use more information from panicking tests, e.g.
rust-lang/rust#138984.
@lolbinarycat lolbinarycat added the S-needs-info Status: The issue lacks details necessary to triage or act on it. label Mar 27, 2025
@lolbinarycat
Copy link
Contributor

lolbinarycat commented Mar 27, 2025

That line number doesn't seem to corrospond to a function in any of the last 5 releases, could you at least give the rustc version you're using, and the one cargo dinghy was compiled with?

@newpavlov
Copy link
Contributor Author

We use stable toolchain for compiling tests. From the CI job logs:

stable-aarch64-apple-darwin updated - rustc 1.85.1 (4eb1612 2025-03-15) (from rustc 1.85.0 (4d91de4 2025-02-17))

The job uses pre-compiled cargo dinghy v0.7.2, which was released on Jun 17, 2024. I will migrate the job to the latest v0.8.0 release and I guess we can close this issue, I will open a separate one with added backtrace if the panic happens again.

@newpavlov newpavlov closed this as not planned Won't fix, can't repro, duplicate, stale Mar 27, 2025
@jieyouxu jieyouxu removed the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. S-needs-info Status: The issue lacks details necessary to triage or act on it.
Projects
None yet
Development

No branches or pull requests

4 participants