Stream: git-wasmtime

Topic: wasmtime / Issue #2630 Cranelift: Context::build_value_la...


view this post on Zulip Wasmtime GitHub notifications bot (Feb 03 2021 at 11:40):

bjorn3 opened Issue #2630:

Repro

Using the x64 newBE compile a function without any value labels. Then call Context::build_value_labels_ranges.

Result

Panic because encodings aren't used for new style backends.

thread 'rustc' panicked at 'Should not be called when new-style backend is available!', /home/bjorn/.cargo/git/checkouts/wasmtime-41807828cb3a7a7e/256cc8a/cranelift/codegen/src/machinst/adapter.rs:93:9
stack backtrace:
   0: std::panicking::begin_panic
   1: <cranelift_codegen::machinst::adapter::TargetIsaAdapter as cranelift_codegen::isa::TargetIsa>::encoding_info
   2: cranelift_codegen::value_label::build_value_labels_ranges
   3: cranelift_codegen::context::Context::build_value_labels_ranges

Expected

An empty ValueLabelsRanges map is returned.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 03 2021 at 11:40):

bjorn3 labeled Issue #2630:

Repro

Using the x64 newBE compile a function without any value labels. Then call Context::build_value_labels_ranges.

Result

Panic because encodings aren't used for new style backends.

thread 'rustc' panicked at 'Should not be called when new-style backend is available!', /home/bjorn/.cargo/git/checkouts/wasmtime-41807828cb3a7a7e/256cc8a/cranelift/codegen/src/machinst/adapter.rs:93:9
stack backtrace:
   0: std::panicking::begin_panic
   1: <cranelift_codegen::machinst::adapter::TargetIsaAdapter as cranelift_codegen::isa::TargetIsa>::encoding_info
   2: cranelift_codegen::value_label::build_value_labels_ranges
   3: cranelift_codegen::context::Context::build_value_labels_ranges

Expected

An empty ValueLabelsRanges map is returned.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 03 2021 at 11:40):

bjorn3 labeled Issue #2630:

Repro

Using the x64 newBE compile a function without any value labels. Then call Context::build_value_labels_ranges.

Result

Panic because encodings aren't used for new style backends.

thread 'rustc' panicked at 'Should not be called when new-style backend is available!', /home/bjorn/.cargo/git/checkouts/wasmtime-41807828cb3a7a7e/256cc8a/cranelift/codegen/src/machinst/adapter.rs:93:9
stack backtrace:
   0: std::panicking::begin_panic
   1: <cranelift_codegen::machinst::adapter::TargetIsaAdapter as cranelift_codegen::isa::TargetIsa>::encoding_info
   2: cranelift_codegen::value_label::build_value_labels_ranges
   3: cranelift_codegen::context::Context::build_value_labels_ranges

Expected

An empty ValueLabelsRanges map is returned.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 03 2021 at 11:43):

bjorn3 edited Issue #2630:

Repro

Using the x64 newBE compile a function without any value labels. Then call Context::build_value_labels_ranges.

Result

Panic because encodings aren't used for new style backends.

thread 'rustc' panicked at 'Should not be called when new-style backend is available!', /home/bjorn/.cargo/git/checkouts/wasmtime-41807828cb3a7a7e/256cc8a/cranelift/codegen/src/machinst/adapter.rs:93:9
stack backtrace:
   0: std::panicking::begin_panic
   1: <cranelift_codegen::machinst::adapter::TargetIsaAdapter as cranelift_codegen::isa::TargetIsa>::encoding_info
   2: cranelift_codegen::value_label::build_value_labels_ranges
   3: cranelift_codegen::context::Context::build_value_labels_ranges

Expected

An empty ValueLabelsRanges map is returned.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 04 2021 at 17:38):

cfallin closed Issue #2630:

Repro

Using the x64 newBE compile a function without any value labels. Then call Context::build_value_labels_ranges.

Result

Panic because encodings aren't used for new style backends.

thread 'rustc' panicked at 'Should not be called when new-style backend is available!', /home/bjorn/.cargo/git/checkouts/wasmtime-41807828cb3a7a7e/256cc8a/cranelift/codegen/src/machinst/adapter.rs:93:9
stack backtrace:
   0: std::panicking::begin_panic
   1: <cranelift_codegen::machinst::adapter::TargetIsaAdapter as cranelift_codegen::isa::TargetIsa>::encoding_info
   2: cranelift_codegen::value_label::build_value_labels_ranges
   3: cranelift_codegen::context::Context::build_value_labels_ranges

Expected

An empty ValueLabelsRanges map is returned.


Last updated: Oct 23 2024 at 20:03 UTC