Comments (5)
Hi, do you have a minimum reproducible test case that I could take a look at?
from wasm-micro-runtime.
After further investigation it seems to happens because data segments are allowed to truncate trailing zeroes and rely on the fact that target memory is zeroed.
Is it possible that mmap()
ed memory is zeroed by default on normal systems but not on zephyr ?
from wasm-micro-runtime.
In the Zephyr platform, if you are not explicitly using set_exec_mem_alloc_func
, then by default you are using BH_MALLOC
(system malloc), you can refer to this file. I think it's worth a try to manually zero out the memory to see whether this is the cause
from wasm-micro-runtime.
Adding a memset()
to os_malloc()
in zephyr_platform.c
fixes the issue.
But most of the time memory is cleared again (like aot_runtime.c
/ runtime_malloc()
) so
I don't think it's the correct fix?
But I am not sure how to find the call to malloc that doesn't clear but should...
from wasm-micro-runtime.
Related Issues (20)
- A bug in ckecking data count section HOT 1
- [wasi-nn] add more backends into `libraries/wasi-nn`
- Enabling WAMR_BUILD_DEBUG_INTERP causes the program to run slower
- Exception: out of bounds memory access HOT 3
- How to debug wasm on the Windows platform HOT 2
- Got Crash when call Intel dcap verification lib which link with wasm from java
- Failure to execute AOT code compiled to 32bit --target=i386 HOT 5
- Heap Buffer Overflow inside "reserve_block_ret" Function HOT 1
- Heap Buffer Overflow inside "wasm_loader_prepare_bytecode" Function HOT 3
- Issue with running Pico on wamr through Zephyr HOT 1
- OSS-Fuzz issue 69574 HOT 2
- OSS-Fuzz issue 69576 HOT 2
- OSS-Fuzz issue 69577 HOT 3
- OSS-Fuzz issue 69579 HOT 2
- OSS-Fuzz issue 69598 HOT 2
- OSS-Fuzz issue 69608 HOT 2
- Fail allocate but print success? HOT 2
- File allocation bug? HOT 2
- fd_datasync failure. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wasm-micro-runtime.