Cranelift s390x: `stack_limit` load chain with a large offset panics

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

Maintainer thường phản hồi trong vòng 1 ngày

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

  • #15506 của @orshih6 — đã đóng, không merge

Đánh giá

Độ khó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
compilers

Hướng nghiên cứu

The panic is the assertion base != tmp.to_reg() at line 169 of cranelift/codegen/src/isa/s390x/inst/emit.rs, reached while lowering the stack_limit load chain with a large offset. Start from that assertion and check which register is used as the base versus the temporary when the offset does not fit the instruction's displacement. Run the repro through clif-util compile --target s390x and confirm the panic. Done means the repro compiles and a filetest under cranelift/filetests covers the case.

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

Mô tả

bug cranelift cranelift:area:s390x

This input:

test compile
target s390x

function %f(i64 vmctx) {
    gv0 = vmctx
    gv1 = load.i64 notrap aligned gv0+8
    gv2 = load.i64 notrap aligned gv1+524288
    stack_limit = gv2
    ss0 = explicit_slot 20
block0(v0: i64):
    return
}

fails with:

$ clif-util compile --target s390x repro.clif
thread 'main' panicked at cranelift/codegen/src/isa/s390x/inst/emit.rs:169:17:
assertion failed: base != tmp.to_reg()
Ngôn ngữ chính
Rust
Star
18.9k
Fork
2k
Merge trung bình
1 ngày 6 giờ
Pull request đã merge (30 ngày)
238

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

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/wasmtime

Tất cả issue của bytecodealliance/wasmtime

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.