@terminalnode @keenerd
Error with saving logfile is caused by improper configuration. strace shows that game tries to save in my case in "/home/fenuks/.cache/yay/nethack4/src/nethack4-4.3-beta2/opt00000000000000000000/save/logfile", or in other words, in build directory.

Every game after I die I get a message saying the save file is corrupted, and that if I want to report this error at trac.nethack4.org I should include the following information:

Error: Failed to write logfile. Is it writable?

Location: libnethack/srs/topten.c:335

Game ID: <character name>_<some number>

Is this an error with the package or should it be reported to nethack4.org? It does happen consistently every game. I'm not sure where the path libnethack is supposed to be located, only that the actual save files are located in ~/.config/NetHack4/<some_number>_<character name>.nhgame (note that it's inverse to the game id, perhaps that's relevant?)