Stream: git-wasmtime

Topic: wasmtime / Issue #1132 cranelift-module allows func decla...


view this post on Zulip Wasmtime GitHub notifications bot (Oct 27 2020 at 15:26):

bjorn3 commented on Issue #1132:

cranelift-faerie has since been removed.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 27 2020 at 15:26):

bjorn3 closed Issue #1132:

thread 'rustc' panicked at 'inconsistent declarations: IncompatibleDeclaration { old: Defined(Function(FunctionDecl { scope: Local, visibility: Default, align: None })), new: Defined(Function(FunctionDecl { scope: Global, visibility: Default, align: None })) }', src/libcore/result.rs:1165:5
stack backtrace:
[...]
  15: core::result::unwrap_failed
             at src/libcore/result.rs:1165
  16: core::result::Result<T,E>::expect
             at /rustc/032a53a06ce293571e51bbe621a5c480e8a28e95/src/libcore/result.rs:960
  17: <cranelift_faerie::backend::FaerieBackend as cranelift_module::backend::Backend>::declare_function
             at /home/bjorn/.cargo/git/checkouts/cranelift-af8713b52459e6cd/ee6fe21/cranelift-faerie/src/backend.rs:127
  18: cranelift_module::module::Module<B>::declare_function
             at /home/bjorn/.cargo/git/checkouts/cranelift-af8713b52459e6cd/ee6fe21/cranelift-module/src/module.rs:426
[...]
module.declare_function(name, Linkage::Local, sig).unwrap();
module.declare_function(name, Linkage::Export, sig).unwrap();

Either cranelift-module should forbid this, or faerie should allow this. Preferably the later.


Last updated: Dec 23 2024 at 12:05 UTC