diff options
Diffstat (limited to '')
| -rw-r--r-- | results/scraper/box64/60 | 37 | ||||
| -rw-r--r-- | results/scraper/box64/609 | 10 |
2 files changed, 47 insertions, 0 deletions
diff --git a/results/scraper/box64/60 b/results/scraper/box64/60 new file mode 100644 index 000000000..083deb05e --- /dev/null +++ b/results/scraper/box64/60 @@ -0,0 +1,37 @@ +Two potential deadlock errors due to the unreleased lock &mutex_mmap +Dear developers: + Thank you for your checking. Similarly, in the function AllocDynarecMap, the lock &mutex_mmap also may not be released. The fix is to insert pthread_mutex_unlock(&mutex_mmap); before returning. + +https://github.com/ptitSeb/box64/blob/f000951fc970708bfa0dd5d357a334b8cfc41eb0/src/custommem.c#L436 + + + +``` +uintptr_t AllocDynarecMap(dynablock_t* db, size_t size) +{ + if(!size) + return 0; + if(size>MMAPSIZE-2*sizeof(blockmark_t)) { + #ifndef USE_MMAP + pthread_mutex_lock(&mutex_mmap); // here + void *p = NULL; + if(posix_memalign(&p, box64_pagesize, size)) { + dynarec_log(LOG_INFO, "Cannot create dynamic map of %zu bytes\n", size); + return 0; // return without releasing + } + mprotect(p, size, PROT_READ | PROT_WRITE | PROT_EXEC); + #else + void* p = mmap(NULL, size, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_ANONYMOUS|MAP_PRIVATE, -1, 0); + if(p==(void*)-1) { + dynarec_log(LOG_INFO, "Cannot create dynamic map of %zu bytes\n", size); + return 0; // return without releasing + } + #endif + ...; + + return ret; +} +``` + + +Best, diff --git a/results/scraper/box64/609 b/results/scraper/box64/609 new file mode 100644 index 000000000..0f2407dae --- /dev/null +++ b/results/scraper/box64/609 @@ -0,0 +1,10 @@ +libatomic missing, Valheim dedicated server +Hello, + +when trying to run a valheim dedicated server on the Raspberry Pi the server is fully functional except crossplay with Xbox. For crossplay to work we need the "libparty.so" which cannot be loaded because of this error message: + +Error: Symbol __atomic_load not found, cannot apply R_X86_64_JUMP_SLOT @0x7fa9e24150 (0x971876) in /DATA/usb1/private/valheim/app/valheim_server_Data/Plugins/libparty.so +Error: Symbol __atomic_exchange not found, cannot apply R_X86_64_JUMP_SLOT @0x7fa9e24158 (0x971886) in /DATA/usb1/private/valheim/app/valheim_server_Data/Plugins/libparty.so +Error: relocating Plt symbols in elf libparty.so +Unable to preload the following plugins: + libparty.so \ No newline at end of file |