Build error: `error: string size out of bounds (at offset {offset})`

Đang mở
#281 10 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
rust, wasm
Lĩnh vực
build-system, tooling

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện cargo component build --package silex-parser và xác nhận liệu đầu ra được tạo có thể sử dụng được dù trạng thái thoát khác không. Theo dõi đường dẫn build báo cáo string size out of bounds và xác định tại sao lỗi này được phát ra sau một build có vẻ thành công. Được xem là hoàn tất khi trường hợp được báo cáo không còn làm CI bị hủy nữa trong khi vẫn giữ lại đầu ra component đã tạo.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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:

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.

Ngôn ngữ chính
Rust
Star
593
Fork
68
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của bytecodealliance/cargo-component

Tất cả issue của bytecodealliance/cargo-component

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.