Comments (2)
IIUC, you have two questions:
- why wasmtime failed but wamr pass
- why wamr says "Space allocation in file successful." but the before and after file size are same.
I am just going to answer the second one 😄 .
According to manual,
The function posix_fallocate() ensures that disk space is allocated for the file referred to by the file descriptor fd for the bytes. ... If the size of the file is less than offset+len, then the file is increased to this size; otherwise the file size is left unchanged.
It is not going to increase the file size if there is enough space. In this case, the file size is 26, and offset+len
is 7. So, the file size is left unchanged.
And for sure, you'll see a file size change if use a bigger len
, like
int result = posix_fallocate(fd, 1, 70);
from wasm-micro-runtime.
why wasmtime failed but wamr pass
because wasmtime has deprecated fd_allocate while ago, it always fails.
this doesn't seem like a bug in wamr.
from wasm-micro-runtime.
Related Issues (20)
- File allocation bug? HOT 2
- fd_datasync failure. HOT 2
- Set right difference? HOT 1
- Wasm shared heap HOT 3
- Enabling GC and AOT in multi-module sample causes IOT Instruction crash
- [RFC] Assign part of wasm address space to a shared heap to share memory among wasm modules with zero-copying HOT 11
- [RFC] New option to do software bounds check by runtime API instead of inline it in IR in AOT/JIT mode HOT 2
- What's the difference between bound check of fast interpreter mode and bound check of classic interpreter mode HOT 2
- [wasi-nn] Got unexpected results when running tflite_birds_v1_image example HOT 2
- Stack-buffer-overflow in wasm-micro-runtime/core/iwasm/interpreter/wasm_interp_classic.c HOT 1
- O_TRUNC, O_CREAT access mode do not print . HOT 1
- O_DSYNC setting bug. HOT 2
- wamr dont support grain-lang now. HOT 3
- [Question] Different OP_CODE sequence when print the same variable?
- aot compiler: a wrong assumption on suspend_flags
- text relocations warning compiling build aot XIP file HOT 1
- aot: xtensa xip produces relocations for large functions
- buffer overflow in wasm_loader_emit_br_info HOT 5
- Announcement: Transition from TSC Meetings to Monthly Community Meetings 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.