• 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!

Programmer paid $ 50 (resolve crashes from source 0.4) with gdb log

roriscrave

Advanced OT User
Joined
Dec 7, 2011
Messages
1,188
Solutions
34
Reaction score
200
Hi, how are you? I am paying $ 50 for anyone who can help me with the crashes of my source, I am using source 0.4.
Below is one of the errors (I'm saving the logs and when another one I post also appears).
When apply bt full

CORE NUMBER 1
Code:
(gdb) bt full
#0  0x0000000010002111 in ?? ()
No symbol table info available.
#1  0x000000000054b35c in Player::__queryDestination(int&, Thing const*, Item**, unsigned int&) ()
No symbol table info available.
#2  0x000000000047efd6 in Game::internalAddItem(Creature*, Cylinder*, Item*, int, unsigned int, bool, unsigned int&, Item**) ()
No symbol table info available.
#3  0x00000000004809a2 in Game::internalPlayerAddItem(Creature*, Player*, Item*, bool, slots_t) ()
No symbol table info available.
#4  0x00000000004f67e9 in LuaInterface::luaDoPlayerAddItemEx(lua_State*) ()
No symbol table info available.
#5  0x00007effb6655f78 in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.1.so.0
No symbol table info available.
#6  0x00007effb66606af in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.1.so.0
No symbol table info available.
#7  0x00007effb66563cd in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.1.so.0
No symbol table info available.
#8  0x00007effb66556eb in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.1.so.0
No symbol table info available.
#9  0x00007effb665655a in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.1.so.0
No symbol table info available.

CORE NUMBER2
Code:
#0  0x00000000005f7258 in vtable for TrashHolder ()
(gdb) bt full
#0  0x00000000005f7258 in vtable for TrashHolder ()
No symbol table info available.
#1  0x000000000054b001 in Player::__queryDestination(int&, Thing const*, Item**, unsigned int&) ()
No symbol table info available.
#2  0x000000000047efd6 in Game::internalAddItem(Creature*, Cylinder*, Item*, int, unsigned int, bool, unsigned int&, Item**) ()
No symbol table info available.
#3  0x00000000004833af in Game::playerAcceptTrade(unsigned int) ()
No symbol table info available.
#4  0x000000000047281d in Dispatcher::dispatcherThread(void*) ()
No symbol table info available.
#5  0x00007f84fade1a4a in ?? ()
   from /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.54.0
No symbol table info available.
#6  0x00007f84f9bad184 in start_thread (arg=0x7f84f71c0700)
    at pthread_create.c:312
        __res = <optimized out>
        pd = 0x7f84f71c0700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140209058219776,
                -1649970056017834514, 0, 0, 140209058220480, 140209058219776,
                1590842478167494126, 1590847693714656750},

If you can help me, please contact me!
 
Last edited:
Maybe is that removing and adding ring on slot or any1 other item and that makes crash ?
its a bit nobbish but some program u can do it. xD
 
Maybe is that removing and adding ring on slot or any1 other item and that makes crash ?
its a bit nobbish but some program u can do it. xD
for example putting and removing ring by ElfBot?
 
If u means to fix it , for First you have to do C+ edit to make max packets per second or either to add exhaust on Moving items, fast traveling etc...
 
If u means to fix it , for First you have to do C+ edit to make max packets per second or either to add exhaust on Moving items, fast traveling etc...
is there any source with these codes?
 
is there any source with these codes?
TFS 1.x already has installed sources with limit, try to download tfs 1.2 tibia 8.60 and see where is it located. no clue atm.
but my recommend is to save that 50$ and pay scripter to upgrade scripts from 0.4 to 1.2, because there are several ways to crash old distros.
and on new its harder but still possible.
 
Have you added any system like autostack recently?
Items moving logic can be tricky in TFS and even slightest change can be deadly, mine your code with logs (std::cout << "I'm here" << std::endl;, do it in Player::__queryDestination and Game::internalAddItem), and then check what was the last output in console before server went down
 
Have you added any system like autostack recently?
Items moving logic can be tricky in TFS and even slightest change can be deadly, mine your code with logs (std::cout << "I'm here" << std::endl;, do it in Player::__queryDestination and Game::internalAddItem), and then check what was the last output in console before server went down
Yes, I already downloaded the source with the built-in stackitems, the error can be in it?
 
Then I'm like 90% positive that this is the case.
I've shipped autostack from 1.2 (with some modifications) into mine 0.3.6 and it is working fine so I suggest you to take look at that if you are familiar with c++.
Also you can log the last message as I suggested, and try to redo that autostack by copy original 0.4 methods into your code and then take a look if server still crashes (every method in Player that inherits from Cylinder, and internalAddItem from Game).
 
Back
Top