[BUG] Hard Crash (see details)
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Thanks for letting me know about the crash. That's a UTF-8 character boundary bug in Claude Code - it was trying to slice a string containing Chinese characters (标识符 = "identifier") at an invalid byte position.
thread '<unnamed>' (2031931) panicked at /rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb/library/core/src/str/mod.rs:833:21:
byte index 8 is not a char boundary; it is inside '符' (bytes 6..9) of 标识符「]
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 5, aborting
zsh: abort claude
BTW - You should just collect these out of Claude Code and not make me break flow to report it here. Create an agent to collect them and consolidate and classify and then create these GitHub issues.
Why am report this as a human?
What Should Happen?
It shouldn't crash.
Error Messages/Logs
thread '<unnamed>' (2031931) panicked at /rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb/library/core/src/str/mod.rs:833:21:
byte index 8 is not a char boundary; it is inside '符' (bytes 6..9) of `标识符「]`
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 5, aborting
zsh: abort claude
Steps to Reproduce
I was just using Claude Code.
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
Current Version
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
It just crashed.
You know, this is way too much work.
You should just let me tell Claude Code, "Report this issue" and it will do the needful.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗