Stream: git-wasmtime

Topic: wasmtime / issue #5915 Cranelift: Interpreter panic when ...


view this post on Zulip Wasmtime GitHub notifications bot (Mar 02 2023 at 20:39):

afonso360 opened issue #5915:

:wave: Hey,

.clif Test Case

test interpret

function %a(i16x8) -> i64x2 {
block0(v3: i16x8):
    v23 = bitcast.i64x2 little v3
    return v23
}

; run: %a(0x00000000000000000000000000000000) == 0x00000000000000000000000000000000

Steps to Reproduce

Expected Results

The test to pass.

Actual Results

     Running `/home/afonso/git/wasmtime/target/debug/clif-util test ./lmao.clif`
thread 'worker #0' panicked at 'index out of bounds: the len is 16 but the index is 16', cranelift/interpreter/src/step.rs:1565:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
 ERROR cranelift_filetests::concurrent > FAIL: panicked in worker #0: index out of bounds: the len is 16 but the index is 16
FAIL ./lmao.clif: panicked in worker #0: index out of bounds: the len is 16 but the index is 16
1 tests
Error: 1 failure

Versions and Environment

Cranelift version or commit: main

Operating system: Linux

Architecture: Interpreter (x86_64 host)

Extra Info

If anyone needs help working on this let me know!

view this post on Zulip Wasmtime GitHub notifications bot (Mar 02 2023 at 20:39):

afonso360 labeled issue #5915:

:wave: Hey,

.clif Test Case

test interpret

function %a(i16x8) -> i64x2 {
block0(v3: i16x8):
    v23 = bitcast.i64x2 little v3
    return v23
}

; run: %a(0x00000000000000000000000000000000) == 0x00000000000000000000000000000000

Steps to Reproduce

Expected Results

The test to pass.

Actual Results

     Running `/home/afonso/git/wasmtime/target/debug/clif-util test ./lmao.clif`
thread 'worker #0' panicked at 'index out of bounds: the len is 16 but the index is 16', cranelift/interpreter/src/step.rs:1565:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
 ERROR cranelift_filetests::concurrent > FAIL: panicked in worker #0: index out of bounds: the len is 16 but the index is 16
FAIL ./lmao.clif: panicked in worker #0: index out of bounds: the len is 16 but the index is 16
1 tests
Error: 1 failure

Versions and Environment

Cranelift version or commit: main

Operating system: Linux

Architecture: Interpreter (x86_64 host)

Extra Info

If anyone needs help working on this let me know!

view this post on Zulip Wasmtime GitHub notifications bot (Mar 02 2023 at 20:39):

afonso360 labeled issue #5915:

:wave: Hey,

.clif Test Case

test interpret

function %a(i16x8) -> i64x2 {
block0(v3: i16x8):
    v23 = bitcast.i64x2 little v3
    return v23
}

; run: %a(0x00000000000000000000000000000000) == 0x00000000000000000000000000000000

Steps to Reproduce

Expected Results

The test to pass.

Actual Results

     Running `/home/afonso/git/wasmtime/target/debug/clif-util test ./lmao.clif`
thread 'worker #0' panicked at 'index out of bounds: the len is 16 but the index is 16', cranelift/interpreter/src/step.rs:1565:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
 ERROR cranelift_filetests::concurrent > FAIL: panicked in worker #0: index out of bounds: the len is 16 but the index is 16
FAIL ./lmao.clif: panicked in worker #0: index out of bounds: the len is 16 but the index is 16
1 tests
Error: 1 failure

Versions and Environment

Cranelift version or commit: main

Operating system: Linux

Architecture: Interpreter (x86_64 host)

Extra Info

If anyone needs help working on this let me know!

view this post on Zulip Wasmtime GitHub notifications bot (Mar 02 2023 at 20:39):

afonso360 labeled issue #5915:

:wave: Hey,

.clif Test Case

test interpret

function %a(i16x8) -> i64x2 {
block0(v3: i16x8):
    v23 = bitcast.i64x2 little v3
    return v23
}

; run: %a(0x00000000000000000000000000000000) == 0x00000000000000000000000000000000

Steps to Reproduce

Expected Results

The test to pass.

Actual Results

     Running `/home/afonso/git/wasmtime/target/debug/clif-util test ./lmao.clif`
thread 'worker #0' panicked at 'index out of bounds: the len is 16 but the index is 16', cranelift/interpreter/src/step.rs:1565:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
 ERROR cranelift_filetests::concurrent > FAIL: panicked in worker #0: index out of bounds: the len is 16 but the index is 16
FAIL ./lmao.clif: panicked in worker #0: index out of bounds: the len is 16 but the index is 16
1 tests
Error: 1 failure

Versions and Environment

Cranelift version or commit: main

Operating system: Linux

Architecture: Interpreter (x86_64 host)

Extra Info

If anyone needs help working on this let me know!

view this post on Zulip Wasmtime GitHub notifications bot (Mar 02 2023 at 20:39):

afonso360 labeled issue #5915:

:wave: Hey,

.clif Test Case

test interpret

function %a(i16x8) -> i64x2 {
block0(v3: i16x8):
    v23 = bitcast.i64x2 little v3
    return v23
}

; run: %a(0x00000000000000000000000000000000) == 0x00000000000000000000000000000000

Steps to Reproduce

Expected Results

The test to pass.

Actual Results

     Running `/home/afonso/git/wasmtime/target/debug/clif-util test ./lmao.clif`
thread 'worker #0' panicked at 'index out of bounds: the len is 16 but the index is 16', cranelift/interpreter/src/step.rs:1565:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
 ERROR cranelift_filetests::concurrent > FAIL: panicked in worker #0: index out of bounds: the len is 16 but the index is 16
FAIL ./lmao.clif: panicked in worker #0: index out of bounds: the len is 16 but the index is 16
1 tests
Error: 1 failure

Versions and Environment

Cranelift version or commit: main

Operating system: Linux

Architecture: Interpreter (x86_64 host)

Extra Info

If anyone needs help working on this let me know!

view this post on Zulip Wasmtime GitHub notifications bot (Mar 02 2023 at 20:54):

jameysharp commented on issue #5915:

Here's the line where the array index is out of bounds. (The line number is different on current main than in the above stack trace.)
https://github.com/bytecodealliance/wasmtime/blob/3ff3994a1/cranelift/interpreter/src/step.rs#L1578

I don't much like the structure of the loop here, but despite that it looks to me like it ought to work. Interesting!

view this post on Zulip Wasmtime GitHub notifications bot (Jun 02 2023 at 11:53):

afonso360 closed issue #5915:

:wave: Hey,

.clif Test Case

test interpret

function %a(i16x8) -> i64x2 {
block0(v3: i16x8):
    v23 = bitcast.i64x2 little v3
    return v23
}

; run: %a(0x00000000000000000000000000000000) == 0x00000000000000000000000000000000

Steps to Reproduce

Expected Results

The test to pass.

Actual Results

     Running `/home/afonso/git/wasmtime/target/debug/clif-util test ./lmao.clif`
thread 'worker #0' panicked at 'index out of bounds: the len is 16 but the index is 16', cranelift/interpreter/src/step.rs:1565:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
 ERROR cranelift_filetests::concurrent > FAIL: panicked in worker #0: index out of bounds: the len is 16 but the index is 16
FAIL ./lmao.clif: panicked in worker #0: index out of bounds: the len is 16 but the index is 16
1 tests
Error: 1 failure

Versions and Environment

Cranelift version or commit: main

Operating system: Linux

Architecture: Interpreter (x86_64 host)

Extra Info

If anyone needs help working on this let me know!


Last updated: Oct 23 2024 at 20:03 UTC