Stream: git-wasmtime

Topic: wasmtime / issue #12078 SharedMemory Not Useable in PyAPI


view this post on Zulip Wasmtime GitHub notifications bot (Nov 24 2025 at 14:37):

xavierYou opened issue #12078:

Thanks for filing a bug report! Please fill out the TODOs below.

Note: if you want to report a security issue, please read our security policy!

Test Case

i‘m using wasmtime python api,and i want to create a sharememory to bind to different “store” by linker

Steps to Reproduce

first initialize a wasmtime engine,and then initialize multiple store by that engine,and then initialize multiple linker by that engine,then initialize a sharememory,by far its ok。
but when i want to bind that sharememory to specific store by “linker.define(store, "env", "memory", shared_memory)”,it will raise an error,“incompatible types, LP_LP_wasmtime_sharedmemory instance instead of LP_wasmtime_sharedmemory instance”

Expected Results

i think it's a bug,i expected to bind store by linker.define,and i can use that sharedmemory through different module that belongs to different store

Actual Results

it will raise an error,“incompatible types, LP_LP_wasmtime_sharedmemory instance instead of LP_wasmtime_sharedmemory instance”

Versions and Environment

Wasmtime version :38.0.0

Operating system: Ubuntu 22.04.5 LTS
kernel version:5.15.0-161-generic

Architecture: x86-64

Extra Info

Anything else you'd like to add?

view this post on Zulip Wasmtime GitHub notifications bot (Nov 24 2025 at 14:37):

xavierYou added the bug label to Issue #12078.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 24 2025 at 14:59):

alexcrichton closed issue #12078:

Thanks for filing a bug report! Please fill out the TODOs below.

Note: if you want to report a security issue, please read our security policy!

Test Case

i‘m using wasmtime python api,and i want to create a sharememory to bind to different “store” by linker

Steps to Reproduce

first initialize a wasmtime engine,and then initialize multiple store by that engine,and then initialize multiple linker by that engine,then initialize a sharememory,by far its ok。
but when i want to bind that sharememory to specific store by “linker.define(store, "env", "memory", shared_memory)”,it will raise an error,“incompatible types, LP_LP_wasmtime_sharedmemory instance instead of LP_wasmtime_sharedmemory instance”

Expected Results

i think it's a bug,i expected to bind store by linker.define,and i can use that sharedmemory through different module that belongs to different store

Actual Results

it will raise an error,“incompatible types, LP_LP_wasmtime_sharedmemory instance instead of LP_wasmtime_sharedmemory instance”

Versions and Environment

Wasmtime version :38.0.0

Operating system: Ubuntu 22.04.5 LTS
kernel version:5.15.0-161-generic

Architecture: x86-64

Extra Info

Anything else you'd like to add?

view this post on Zulip Wasmtime GitHub notifications bot (Nov 24 2025 at 14:59):

alexcrichton commented on issue #12078:

Thanks for the report, but this belongs in the wasmtime-py repository. There's an issue already upstream for this, so I'm going to close this.


Last updated: Dec 06 2025 at 07:03 UTC