bytecodealliance / bytecodealliance/cargo-component
Build error: `error: string size out of bounds (at offset {offset})`
- Dominant language
- Rust
- Stars
- 593
- Forks
- 68
- PR merge metrics
- No merged PRs in 30d
Description
Recently I started experiencing an error when I run `cargo comonent build`. I'm sorry, but I can't figure out what's causing it or provide a minimal example. I'm hoping you all might have some idea what could be causing it.
I run this command:
```bash
cargo component build --package silex-parser
```
I get this output:
```
Finished dev [unoptimized + debuginfo] target(s) in 0.06s
error: string size out of bounds (at offset 0x19feacc9)
```
The interesting thing is, the build appears to have worked -- I get the output file and everything works as expected. The error code that gets generated by the command causes my CICD pipeline and buildscripts to abort, so it's rather annoying.
I've dug through my code for quite a while and couldn't find anything wrong with it. I basically commented out everything and then started adding things back in line by line and at a certain point, the error would start happening. This makes me think it could be related to the size of the project, but I don't know enough about how `cargo-component` works to guess at whether or not that could be the cause so I thought I'd raise the issue here and see if anyone more familiar with the project has any insights.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.