tkernelcn

Results 24 comments of tkernelcn
trafficstars

I try the upstairs uploaded test.elf, also have many `unaligned` in disassemble ```sh $ r2 -a mips.gnu -b 32 -e asm.cpu=micro -e cfg.bigendian=true ./test.elf -- Pass '-j' to rabin2 to...

I `git pull` and rebuild ```sh $ r2 -v radare2 5.8.1 44 @ linux-x86-64 git.5.8.1 commit: 9fac6494957d9bd41fcb8dc34b6d3fe444a05378 build: 2023-01-18__09:51:20 ``` the disassemble result not same with upstairs GDB result: (with...

already got great achievement now, seems `pd` works well but `pdf` not 1,missing some instructions bytes let `unaligned` error 2, command `axt` and `axf` also not work, no result output...

new findings: seems wasi not support: ```c pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; pthread_cond_t cond = PTHREAD_COND_INITIALIZER; ``` change to below, it works. ```c pthread_mutex_init(&mutex, NULL); pthread_cond_init(&cond, NULL); ```

sure, It's not a bug, if I use below initialize, it will disappear pthread_mutex_init(&mutex, NULL); pthread_cond_init(&cond, NULL); if I use: pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; pthread_cond_t cond = PTHREAD_COND_INITIALIZER; even apply...

first finding at here ```shell #0 bh_hash_map_find (map=0xf6000700, key=0x0) at /home/peter/git_workspace/invest_wasm/lib/wasm/wasm-micro-runtime/core/shared/utils/bh_hashmap.c:134 #1 0x565a9b31 in get_thread_info (exec_env=0xf6c0b990, handle=0) at /home/peter/git_workspace/invest_wasm/lib/wasm/wasm-micro-runtime/core/iwasm/libraries/lib-pthread/lib_pthread_wrapper.c:475 #2 0x565aa3bb in pthread_mutex_lock_wrapper (exec_env=0xf6c0b990, mutex=0xf7faf558) at /home/peter/git_workspace/invest_wasm/lib/wasm/wasm-micro-runtime/core/iwasm/libraries/lib-pthread/lib_pthread_wrapper.c:851 #3 0x5655fdc5 in...

embed iwasm build with config script: ```shell set (WAMR_BUILD_LIBC_BUILTIN 1) set (WAMR_BUILD_LIBC_UVWASI 0) set (WAMR_BUILD_LIBC_WASI 1) set (WAMR_BUILD_MULTI_MODULE 1) set (WAMR_BUILD_MINI_LOADER 0) set (WAMR_BUILD_SHARED_MEMORY 1) set (WAMR_BUILD_BULK_MEMORY 1) set (WAMR_BUILD_THREAD_MGR...

if I use the new on configurations: ```script set (WAMR_BUILD_LIB_PTHREAD 0) set (WAMR_BUILD_LIB_PTHREAD_SEMAPHORE 0) set (WAMR_BUILD_LIB_WASI_THREADS 1) ``` the running errors: ```text [00:00:00:000 - 5671A410]: warning: failed to link import...

Hello @wenyongh, Thanks for your comments due to I will use wasi other apis like socket and file/directory, so the last approach is reasonable or implement on wasm app side...

is there any approach to use buildin sem_open that you list: https://github.com/bytecodealliance/wasm-micro-runtime/blob/main/core/iwasm/libraries/lib-pthread/lib_pthread_wrapper.c#L1134-L1176 and other api can also use wasi lib's like pthread/file/socket? need a prefix like `_priv_` or not? then...