Jackson Ming Hu

Results 47 comments of Jackson Ming Hu

Here's another demo C code for WASM I've done: ```c int start() { printf("Message 1: %s %d %u %x %X\n", "test", -123, 123, 0xabcd, 0xABCD); char buf[32] = { 0...

I've just realised if I compiled the Wasm3 in debug build (with `-DCMAKE_BUILD_TYPE=DEBUG`) on my host machine, this corruption issue disappeared. I haven't tested on ESP32 for now, will do...

Here's a Release build with `-DDEBUG=1` and all logging enabled explicitly: runtime | new stack: 0x55f82996dea0 parse | load module: 725 bytes parse | found magic + version parse |...

And here's a Debug build's log, where you can see the `snprintf()` follows by `printf()` prints the correct result: runtime | new stack: 0x55f3cc910ea0 parse | load module: 725 bytes...

Hello again @vshymanskyy , one of your recent commits (https://github.com/wasm3/wasm3/commit/52f80e9e635b4d8ce441983352a9a4dcb535e144) reminds me that some of the GCC optimisation flags may cause some troubles. So I had a try and eventually,...

> @huming2207 should I merge this? So far I think this PR works fine with GCC stack protector on. I think something is wrong with the runtime's stack management. I...

> @huming2207 please rebase to the latest version and re-check (with different GCC stack protector settings, if you can). > We have fixed some bugs in the interpreter. Here's a...

Here's another test on my M1 Mac with Clang 11.1, macOS 11.2.3, compiled with `cmake . -DCMAKE_BUILD_TYPE=Release -DBUILD_NATIVE=OFF` (because Clang on Apple Silicon does not support `-march=native`) and the `-fno-stack-protector`...

@vshymanskyy also I remembered earlier when I was playing with this on ESP32, the third parameter (the format string) can also be corrupted, so does `printf()` you implemented earlier. So...

@vshymanskyy I think I still can't solve this issue, even with your latest commit (till 307265ae5e236ab0dd0f42bd1cee0acde71222e8). Since I'm also busy working on my exams and some work-related stuff, I don't...