1. If you have a problem and need help, create a new thread with a title that briefly describes the problem.
    Do not use titles like 'Help!' or 'I have a problem!'
    Dismiss Notice
  2. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

[Debian] Crash occurs sometimes when player connects, disconnects or chat.

Discussion in 'Server Help' started by Znote, Jun 3, 2012.

  1. Znote

    Znote Shark Slayer

    Messages:
    10
    Here is an image of my console:
    [​IMG]

    I am afraid those errors don't explain a whole lot of deal to me. On client side it just says "disconnected from server", obviously because of the server side crash.

    I have set global g_debug = 1;

    But where are the more detailed error files located and what name do they have?

    The Logs directory does not seem to be very useful, it contains consoles and chat logs, app.txt and other files which seem to declare live state activity of in-game like players online etc..
    app.txt:
    Code:
    Engine (build: 400 version: 0.95A)
     
    Downloading checksums from http://update.kag2d.com/kag_linux/App/version.txt
     
    Version file the same (key matches)
     
    Using file 'Base/libJuxta_dedi.so'
    APP GameDLLInit
     
    Game DLL initialized.
    Changing game working directory to '/home/znote/kag/Base/'
    Game version 394
    Precaching files.
    
    There crashes occur very often, usually once twice a minute if there is activity on server.

    Here are some dumps of the last lines from several console logs:
    [01:48:45] *Match Ended*
    [01:48:54] *Restarting Map*
    [01:49:25] Unbanned player NinjaBladez
    (CRASH)

    [01:58:39] * Znote connected (admin: 0 guard 0 gold 1)
    [01:58:39] CPlayerManager::AddPlayer id -123248723 port 52117 id -123248723
    (CRASH)

    [02:25:14]* Znote connected (admin: 0 guard 0 gold 1)
    [02:25:14] CPlayerManager::AddPlayer id 828068084 port 60801 id 828068084
    [02:27:51] Player Znote left the game (players left 0)
    [02:28:05] * Znote connected (admin: 0 guard 0 gold 1)
    [02:28:05] CPlayerManager::AddPlayer id 839209204 port 55961 id 839209204
    (CRASH)

    [02:31:42] Player Azzazia left the game (players left 2)
    [02:32:03] Red Team wins the game!
    [02:32:03] *Match Ended*
    [02:32:03] Can't spawn units depleted
    [02:32:10] Blob loaded... Entities/Effects/Light.cfg
    [02:32:12] *Match Started*
    [02:32:12] *Restarting Map*
    [02:32:12] *Match Ended*
    [02:32:12] *Match Started*
    (CRASH)

    [03:44:50] * Znote connected (admin: 0 guard 0 gold 1)
    [03:44:50] CPlayerManager::AddPlayer id 1140805876 port 57820 id 1140805876
    [03:45:32] Unbanned player heab00
    (CRASH)

    [04:24:41] * Znote connected (admin: 0 guard 0 gold 1)
    [04:24:41] CPlayerManager::AddPlayer id -1856412559 port 50243 id -1856412559
    [04:24:41] *Match Started*
    [04:25:14] Blue Team wins the game!
    [04:25:14] *Match Ended*
    [04:25:14] Can't spawn units depleted
    (CRASH)

    [04:36:00] Address: *censored*; banned for 2 minutes : reason High Ping : U$
    [04:36:02] Player oacon left the game (players left 0)
    [04:38:30] Unbanned player oacon
    (CRASH)

    System Information:
    Linux debian 2.6.32-5-686

    32bit OS

    @debian:/home/username# lsb_release -a

    No LSB modules are available.
    Distributor ID: Debian
    Description: Debian GNU/Linux 6.0.5 (squeeze)
    Release: 6.0.5
    Codename: squeeze

    KAGdedi - 1 - 2% CPU usage - 0.4% of 3GB RAM usage.
     
  2. trelawney

    trelawney KAG Guard Tester

    Messages:
    771
    Znote likes this.
  3. Znote

    Znote Shark Slayer

    Messages:
    10
    Ahh yeah, thanks. :)

    Here goes first log:
    Code:
    [14:40:08] Can't spawn units depleted
    DOOM CMD 7 pickid 7
    [14:40:17] *Match Started*
     
    Program received signal SIGSEGV, Segmentation fault.
    0xb7f608fe in std::ostream::sentry::sentry(std::ostream&) ()
      from /usr/lib/libstdc++.so.6
    (gdb)
     
     
    =============
    (gdb) bt full
    =============
     
    #0  0xb7f608fe in std::ostream::sentry::sentry(std::ostream&) ()
      from /usr/lib/libstdc++.so.6
    No symbol table info available.
    #1  0xb7f61519 in std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int) () from /usr/lib/libstdc++.so.6
    No symbol table info available.
    #2  0xb7f6191c in std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*) () from /usr/lib/libstdc++.so.6
    No symbol table info available.
    #3  0xb6e2f638 in CLog::Write (this=0x80ef7a0,
        msg=0x8293448 "[14:40:17] *Match Started*") at ../Engine/log.cpp:42
            args = 0xbfffe9d8 "\233\353\377\277\262"
    #4  0xb6f63dea in IC_Console::add (this=0x80e1640, message=..., color=...)
        at ../IrrConsole/console.cpp:515
            str = {array = 0x8293448 "[14:40:17] *Match Started*", allocated = 27,
              used = 27, allocator = {_vptr.irrAllocator = 0xb76286e8}}
            text = {data = 0x828b898, allocated = 6, used = 1, allocator = {
                _vptr.irrAllocator = 0xb7629a98},
              strategy = irr::core::ALLOC_STRATEGY_DOUBLE,
              free_when_destroyed = true, is_sorted = false}
            i = 1
    ---Type <return> to continue, or q <return> to quit---
     
    #5  0xb6f5fae5 in IC_Console::add (this=0x80e1640, message=...)
        at ../IrrConsole/console.cpp:542
    No locals.
    #6  0xb6f5f9fe in IC_Console::addx (this=0x80e1640,
        msg=0xb7557102 "*Match Started*") at ../IrrConsole/console.cpp:551
            args = 0xbfffec58 "\273\\\032\267\350+c\267@\021\027\bx\347\036\b\210\354\377\277{\330\036\267h\356\026\b\001"
            wstr = {array = 0x8270b68 L"*Match Started*", allocated = 16,
              used = 16, allocator = {_vptr.irrAllocator = 0xb7628798}}
    #7  0xb721047a in CRules::StartMatch (this=0x8171140)
        at ../World/rules.cpp:1245
    No locals.
    #8  0xb7213fe5 in CRules::Think (this=0x8171140) at ../World/rules.cpp:403
    No locals.
    #9  0xb71e6944 in CWorldTask::Update (this=0x816ec60) at ../World/world.cpp:213
            i = <value optimized out>
    #10 0xb6e3074d in CKernel::Execute (this=0x8101dc0) at ../Engine/kernel.cpp:86
            t = 0x322e3738
            mainControl = 0
    #11 0xb6edaaf7 in CGame::Run (this=0x80f1eb8, argc=5, argv=0xbffff2f4)
        at ../Game/GameDLL.cpp:402
    No locals.
    #12 0xb6ea2d9a in GameDLLInit (ie=..., argc=5, argv=0xbffff2f4)
    ---Type <return> to continue, or q <return> to quit---
     
     
        at ../Game/GameDLL.cpp:90
            profilehandler = {<IProfilerOutputHandler> = {
                _vptr.IProfilerOutputHandler = 0xb7628a00}, <No data fields>}
            script = 0x80d78f0
            console = 0x80e1640
            filename = {array = 0x80ef150 "Logs/console-12-06-03-14-34-15.txt",
              allocated = 35, used = 35, allocator = {
                _vptr.irrAllocator = 0xb76286e8}}
            ex = <value optimized out>
            now = 1338726855
    #13 0x0805ae33 in CApplication::LoadGameDLL (this=0x80c2088,
        filename=0x80c539c "Base/libJuxta_dedi.so", argc=5, argv=0xbffff2f4)
        at ../App/main.cpp:334
            initializer = 0xb6ea2a90
            module = 0x80c4a18
    #14 0x0805a346 in CApplication::Run (this=0x80c2088, argc=5, argv=0xbffff2f4)
        at ../App/main.cpp:221
            dllFile = {static npos = 4294967295,
              _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
                _M_p = 0x80c539c "Base/libJuxta_dedi.so"}}
            path = <value optimized out>
            buildnum = 0
    ---Type <return> to continue, or q <return> to quit---
     
    #15 0x0805b55f in main (argc=5, argv=0xbffff2f4) at ../App/main.cpp:592
            restart = {
              array = 0xbffff218 "H\362\377\277\251\027\n\b\004\323\350\267\364\317\350\267P\362\377\277\364\317", <incomplete sequence \350\267>,
              allocated = 134521625, used = 3086947200, allocator = {
                _vptr.irrAllocator = 0x804ae00}}
            dir = {
              array = 0xbffff208 "\030\362\377\277\031\243\004\b\200\023\377\267",
              allocated = 134879259, used = 0, allocator = {
                _vptr.irrAllocator = 0x80b21bc}}
    
    2nd log:
    Code:
    [15:19:59] Unnamed player is now known as Znote
    [15:21:20] Blob loaded... Entities/Effects/Light.cfg
    packet on server #1 (27590)
    [New Thread 0xb6a5cb70 (LWP 3292)]
    [Thread 0xb6a5cb70 (LWP 3292) exited]
    [15:22:01] * Harlekin connected (admin: 0 guard 0 gold 1)
     
    Program received signal SIGSEGV, Segmentation fault.
    0xb7f608fe in std::ostream::sentry::sentry(std::ostream&) () from /usr/lib/libstdc++.so.6
    (gdb) bt full
    #0  0xb7f608fe in std::ostream::sentry::sentry(std::ostream&) () from /usr/lib/libstdc++.so.6
    No symbol table info available.
    #1  0xb7f61519 in std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int) () from /usr/lib/libstdc++.so.6
    No symbol table info available.
    #2  0xb7f6191c in std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*) () from /usr/lib/libstdc++.so.6
    No symbol table info available.
    #3  0xb6e2f638 in CLog::Write (this=0x80ef7a0, msg=0x81782e8 "[15:22:01] * Harlekin connected (admin: 0 guard 0 gold 1)") at ../Engine/log.cpp:42
            args = 0xbfffe7c8 "\213\351\377\277\262\341", <incomplete sequence \346\267>
    #4  0xb6f63dea in IC_Console::add (this=0x80e1640, message=..., color=...) at ../IrrConsole/console.cpp:515
            str = {array = 0x81782e8 "[15:22:01] * Harlekin connected (admin: 0 guard 0 gold 1)", allocated = 58, used = 58, allocator = {_vptr.irrAllocator = 0xb76286e8}}
            text = {data = 0x8268ec0, allocated = 6, used = 1, allocator = {_vptr.irrAllocator = 0xb7629a98}, strategy = irr::core::ALLOC_STRATEGY_DOUBLE, free_when_destroyed = true, is_sorted = false}
            i = 1
    #5  0xb6f5fae5 in IC_Console::add (this=0x80e1640, message=...) at ../IrrConsole/console.cpp:542
    No locals.
    #6  0xb6f5f9fe in IC_Console::addx (this=0x80e1640, msg=0xb754df34 "* %s connected (admin: %i guard %i gold %i)") at ../IrrConsole/console.cpp:551
            args = 0xbfffea48 "T\203\063\b"
            wstr = {array = 0x8176b70 L"* Harlekin connected (admin: 0 guard 0 gold 1)", allocated = 47, used = 47, allocator = {_vptr.irrAllocator = 0xb7628798}}
    #7  0xb711d948 in CNet::server_ProcessAPIPlayer (this=0x8101fb0, aPlayer=0x8299690, data=0x8299670, infoStatus=APICLIENT_REQUESTSTATUS_OK) at ../Network/net.cpp:1440
    No locals.
    #8  0xb7120b53 in CNet::UpdateServer (this=0x8101fb0) at ../Network/net.cpp:1045
            sd = 0x8299670
            i = 0
            netvars = {data = 0x0, allocated = 0, used = 0, allocator = {_vptr.irrAllocator = 0xb762f760}, strategy = irr::core::ALLOC_STRATEGY_DOUBLE, free_when_destroyed = true, is_sorted = true}
            event = {type = ENET_EVENT_TYPE_NONE, peer = 0x0, channelID = 0 '\000', data = 3083838400, packet = 0x0}
            i = <value optimized out>
    #9  0xb7122858 in CNet::Update (this=0x8101fb0) at ../Network/net.cpp:577
    No locals.
    #10 0xb712c980 in CNetworkTask::Update (this=0x80f5578) at ../Network/NetworkTask.cpp:42
    No locals.
    #11 0xb6e3074d in CKernel::Execute (this=0x8101dc0) at ../Engine/kernel.cpp:86
            t = 0x33322e35
            mainControl = 0
    #12 0xb6edaaf7 in CGame::Run (this=0x80f1eb8, argc=5, argv=0xbffff2f4) at ../Game/GameDLL.cpp:402
    No locals.
    #13 0xb6ea2d9a in GameDLLInit (ie=..., argc=5, argv=0xbffff2f4) at ../Game/GameDLL.cpp:90
            profilehandler = {<IProfilerOutputHandler> = {_vptr.IProfilerOutputHandler = 0xb7628a00}, <No data fields>}
            script = 0x80d78f0
            console = 0x80e1640
            filename = {array = 0x80ef150 "Logs/console-12-06-03-15-06-46.txt", allocated = 35, used = 35, allocator = {_vptr.irrAllocator = 0xb76286e8}}
            ex = <value optimized out>
            now = 1338728806
    #14 0x0805ae33 in CApplication::LoadGameDLL (this=0x80c2088, filename=0x80c539c "Base/libJuxta_dedi.so", argc=5, argv=0xbffff2f4) at ../App/main.cpp:334
            initializer = 0xb6ea2a90
            module = 0x80c4a18
    #15 0x0805a346 in CApplication::Run (this=0x80c2088, argc=5, argv=0xbffff2f4) at ../App/main.cpp:221
            dllFile = {static npos = 4294967295, _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x80c539c "Base/libJuxta_dedi.so"}}
            path = <value optimized out>
            buildnum = 0
    #16 0x0805b55f in main (argc=5, argv=0xbffff2f4) at ../App/main.cpp:592
            restart = {array = 0xbffff218 "H\362\377\277\251\027\n\b\004\323\350\267\364\317\350\267P\362\377\277\364\317", <incomplete sequence \350\267>, allocated = 134521625, used = 3086947200, allocator = {
                _vptr.irrAllocator = 0x804ae00}}
            dir = {array = 0xbffff208 "\030\362\377\277\031\243\004\b\200\023\377\267", allocated = 134879259, used = 0, allocator = {_vptr.irrAllocator = 0x80b21bc}}
    (gdb)
    
    3rd log:
    Code:
    Program received signal SIGSEGV, Segmentation fault.
    0xb7f608fe in std::ostream::sentry::sentry(std::ostream&) () from /usr/lib/libstdc++.so.6
    (gdb) bt full
    #0  0xb7f608fe in std::ostream::sentry::sentry(std::ostream&) () from /usr/lib/libstdc++.so.6
    No symbol table info available.
    #1  0xb7f61519 in std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int) () from /usr/lib/libstdc++.so.6
    No symbol table info available.
    #2  0xb7f6191c in std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*) () from /usr/lib/libstdc++.so.6
    No symbol table info available.
    #3  0xb6e2f638 in CLog::Write (this=0x80ef7a0, msg=0xb5962138 "[15:33:28] Blue Team wins the game!") at ../Engine/log.cpp:42
            args = 0xbfffe188 "K\343\377\277\262"
    #4  0xb6f63dea in IC_Console::add (this=0x80e1640, message=..., color=...) at ../IrrConsole/console.cpp:515
            str = {array = 0xb5962138 "[15:33:28] Blue Team wins the game!", allocated = 36, used = 36, allocator = {_vptr.irrAllocator = 0xb76286e8}}
            text = {data = 0xb59438c0, allocated = 6, used = 1, allocator = {_vptr.irrAllocator = 0xb7629a98}, strategy = irr::core::ALLOC_STRATEGY_DOUBLE, free_when_destroyed = true, is_sorted = false}
            i = 1
    #5  0xb6f5fae5 in IC_Console::add (this=0x80e1640, message=...) at ../IrrConsole/console.cpp:542
    No locals.
    #6  0xb6f6511d in IC_Console::addwx (this=0x80e1640, msg=0xb5921c18 L"%ls wins the game!") at ../IrrConsole/console.cpp:567
            args = 0xbfffe3fc "@\"\037\bpÕ\265pÕ\265pÕ\265pÕ\265pÕ\265pÕ\265pÕ\265pÕ\265pÕ\265pÕ\265pÕ\265pÕ\265\314\353\377\277pÕ\265pÕ\265pÕ\265pÕ\265pÕ\265pÕ\265pÕ\265pÕ\265pÕ\265pÕ\265pÕ\265pÕ\265\324\345\377\277pÕ\265pÕ\265pÕ\265pÕ\265pÕ\265pÕ\265pÕ\265pÕ\265pÕ\265pÕ\265M"
            wstr = {array = 0xb593ef00 L"Blue Team wins the game!", allocated = 25, used = 25, allocator = {_vptr.irrAllocator = 0xb7628798}}
    #7  0xb7210f2d in CRules::checkEndMatch (this=0x8171140) at ../World/rules.cpp:1325
            c_end = irr::core::unicode::EUTFEE_NATIVE
            len = 19
            m_end = <value optimized out>
            j = 0
            p = 0xb7557dc4
            pos = 19
            i = 1
            c_end = <value optimized out>
            len = <value optimized out>
            p = <value optimized out>
            m_end = <value optimized out>
            pos = <value optimized out>
    #8  0xb7213f4c in CRules::Think (this=0x8171140) at ../World/rules.cpp:337
    No locals.
    #9  0xb71e6944 in CWorldTask::Update (this=0x816ec60) at ../World/world.cpp:213
            i = <value optimized out>
    #10 0xb6e3074d in CKernel::Execute (this=0x8101dc0) at ../Engine/kernel.cpp:86
            t = 0x33322e35
            mainControl = 0
    #11 0xb6edaaf7 in CGame::Run (this=0x80f1eb8, argc=5, argv=0xbffff2f4) at ../Game/GameDLL.cpp:402
    No locals.
    #12 0xb6ea2d9a in GameDLLInit (ie=..., argc=5, argv=0xbffff2f4) at ../Game/GameDLL.cpp:90
            profilehandler = {<IProfilerOutputHandler> = {_vptr.IProfilerOutputHandler = 0xb7628a00}, <No data fields>}
            script = 0x80d78f0
            console = 0x80e1640
            filename = {array = 0x80ef150 "Logs/console-12-06-03-15-30-14.txt", allocated = 35, used = 35, allocator = {_vptr.irrAllocator = 0xb76286e8}}
            ex = <value optimized out>
            now = 1338730214
    #13 0x0805ae33 in CApplication::LoadGameDLL (this=0x80c2088, filename=0x80c539c "Base/libJuxta_dedi.so", argc=5, argv=0xbffff2f4) at ../App/main.cpp:334
            initializer = 0xb6ea2a90
            module = 0x80c4a18
    #14 0x0805a346 in CApplication::Run (this=0x80c2088, argc=5, argv=0xbffff2f4) at ../App/main.cpp:221
            dllFile = {static npos = 4294967295, _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x80c539c "Base/libJuxta_dedi.so"}}
            path = <value optimized out>
            buildnum = 0
    #15 0x0805b55f in main (argc=5, argv=0xbffff2f4) at ../App/main.cpp:592
            restart = {array = 0xbffff218 "H\362\377\277\251\027\n\b\004\323\350\267\364\317\350\267P\362\377\277\364\317", <incomplete sequence \350\267>, allocated = 134521625, used = 3086947200, allocator = {
                _vptr.irrAllocator = 0x804ae00}}
            dir = {array = 0xbffff208 "\030\362\377\277\031\243\004\b\200\023\377\267", allocated = 134879259, used = 0, allocator = {_vptr.irrAllocator = 0x80b21bc}}
    
    </br>--- merged: Jun 8, 2012 9:00 PM ---</br>
    Edit:
    The latest update seem to have fixed these issues, running 415 now and its pretty damn stable! :D
    Thanks developers. :)