• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[Clang][Boost] TFS project compilation problem.

zbyhu

New Member
Joined
Mar 31, 2024
Messages
3
Reaction score
1
Hello,
I have tried to compile recent release of TFS (1.6) (GitHub - otland/forgottenserver: A free and open-source MMORPG server emulator written in C++ (https://github.com/otland/forgottenserver.git)).
My Toolchain compiler: (CLANG,C++20): WinLibs - GCC+MinGW-w64 compiler for Windows (https://winlibs.com/) (GCC 14.2.0 (with POSIX threads) + LLVM/Clang/LLD/LLDB 19.1.1 + MinGW-w64 12.0.0 UCRT - release 2 (LATEST))
Target: Windows 10 x64.
Everything built well, but when i had ran application its has been terminated with 0xC0000005 error code.
Windows UAC is disabled.
Server was run as administrator.
On debug mode i observed that application stops in function void Signals::asyncWait().
Its happend in boost::asio functions api, when application tried to run new thread (probably).
Below i sent screenshot of debug callstack on the top is an instruction that makes a problem.
Boost (v. 1.87.0 ) library was build with clang compiler.
Anyone have any ideas what is a problem factor, how to solve it?
When i comment this line (signals is a trap handler?) then Server starts loading some .lua script, but it still fails on the same boost api function (top of the call stack is similar, probably when new thread is about to be running).

1734433847292.webp
 
I have tried to compile recent release of TFS
Did you try to compile with Visual Studio and vcpkg libraries? Maybe it's just some OTS bug, not your compiler.

Do you have logs from OTS console? Maybe there is some error message printed before crash, it generates some signal that then crashes in asyncWait.

If it's signals related, maybe it's because your compiler define/not define _WIN32:
 

Similar threads

Back
Top