Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temporarily fix wasmtime on aarch64 by not constructing per-inst address map. #1541

Merged

Conversation

cfallin
Copy link
Member

@cfallin cfallin commented Apr 17, 2020

The current build of wasmtime on aarch64 panics immediately because the
debug infrastructure constructs an address-to-instruction map
unconditionally now, and the new backend does not yet support debug info
generally (#1523). In this particular case, the address-map construction
consults the encoding info, which is not implemented by the new backend
and causes the panic.

This fix simply avoids generating per-instruction entries in the address
map; it at least gets us going until we plumb SourceLocs all the way
through the new pipeline.

…ess map.

The current build of wasmtime on aarch64 panics immediately because the
debug infrastructure constructs an address-to-instruction map
unconditionally now, and the new backend does not yet support debug info
generally (bytecodealliance#1523). In this particular case, the address-map construction
consults the encoding info, which is not implemented by the new backend
and causes the panic.

This fix simply avoids generating per-instruction entries in the address
map; it at least gets us going until we plumb SourceLocs all the way
through the new pipeline.
@cfallin
Copy link
Member Author

cfallin commented Apr 17, 2020

r? @alexcrichton

});
// FIXME(#1523): New backend does not support debug info or instruction-address mapping
// yet.
if !isa.get_mach_backend().is_some() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if !isa.get_mach_backend().is_some() {
if isa.get_mach_backend().is_none() {

@alexcrichton alexcrichton merged commit 73fddc3 into bytecodealliance:master Apr 17, 2020
@cfallin cfallin added the cranelift:area:aarch64 Issues related to AArch64 backend. label Apr 18, 2020
@cfallin cfallin deleted the aarch64-fix-wasmtime-debug branch May 6, 2020 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cranelift:area:aarch64 Issues related to AArch64 backend.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants