Skip to forum content

You are not logged in. Please login or register.


forums.pvpgn.pro → [EN] Research & Development → [HELP bug issue]Segment Faults (crash dump) PvPGN 1.99 svn

Pages 1

You must login or register to post a reply

RSS topic feed

Posts: 1

1 (edited by GanyoyGen 11.11.2015 01:20)

Topic: [HELP bug issue]Segment Faults (crash dump) PvPGN 1.99 svn

SEGMENT FAULT CODE

Core was generated by `./bnetd'.
Program terminated with signal 11, Segmentation fault.
#0  0x08153238 in pvpgn::elem_get_data (elem=0x10)
    at /home/gogsproj/199/src/common/list.cpp:247
247         return elem->data;
(gdb)


(gdb) bt
#0  0x08153238 in pvpgn::elem_get_data (elem=0x10)
    at /home/gogsproj/199/src/common/list.cpp:247
#1  0x080a8ace in pvpgn::bnetd::clanlist_save ()
    at /home/gogsproj/199/src/bnetd/clan.cpp:1101
#2  0x0813882f in pvpgn::bnetd::_server_mainloop (laddrs=0x88fea28)
    at /home/gogsproj/199/src/bnetd/server.cpp:1310
#3  0x0813929a in pvpgn::bnetd::server_process ()
    at /home/gogsproj/199/src/bnetd/server.cpp:1573
#4  0x0812a4e8 in main (argc=0, argv=0x0)
    at /home/gogsproj/199/src/bnetd/main.cpp:517



(gdb) bt full
#0  0x08153238 in pvpgn::elem_get_data (elem=0x10)
    at /home/gogsproj/199/src/common/list.cpp:247
        __FUNCTION__ = "elem_get_data"
#1  0x080a8ace in pvpgn::bnetd::clanlist_save ()
    at /home/gogsproj/199/src/bnetd/clan.cpp:1101
        curr = 0x10
        clan = 0x8a694c0
        __FUNCTION__ = "clanlist_save"
#2  0x0813882f in pvpgn::bnetd::_server_mainloop (laddrs=0x88fea28)
    at /home/gogsproj/199/src/bnetd/server.cpp:1310
        next_savetime = 1447058537
        track_time = 1447058417
        war3_ladder_updatetime = 1446900737
        output_updatetime = 1446900737
        count = 760
        __FUNCTION__ = "_server_mainloop"
#3  0x0813929a in pvpgn::bnetd::server_process ()
    at /home/gogsproj/199/src/bnetd/server.cpp:1573
        laddrs = 0x88fea28
        __FUNCTION__ = "server_process"
#4  0x0812a4e8 in main (argc=0, argv=0x0)
    at /home/gogsproj/199/src/bnetd/main.cpp:517
        a = 0
        pidfile = 0x0
        __FUNCTION__ = "main"

This is clan.cpp ::: clanlist_save ()

extern int clanlist_save(void)
{
    t_elem *curr;
    t_clan *clan;

    if (clanlist_head)
    {
    LIST_TRAVERSE(clanlist_head, curr)
    {
        if (!(clan = (t_clan*)elem_get_data(curr))) // THIS IS LINE OF 1101
        {
        eventlog(eventlog_level_error, __FUNCTION__, "found NULL entry in list");
        continue;
        }
        if (clan->modified)
        clan_save(clan);
    }

    }

    return 0;
}

server crash if there is a new clan, when the clan storing data.
NOT when clan successfully made.
I do not know when the clan is stored in the database. This happens periodically (bnet.conf)

This happened more than two times with the same error code.

Please help what is wrong.

Ty, I'm sorry if my english bad

Posts: 1

Pages 1

You must login or register to post a reply

Who now at forum

Currently view post: 1 guest, 0 registered users

forums.pvpgn.pro → [EN] Research & Development → [HELP bug issue]Segment Faults (crash dump) PvPGN 1.99 svn



Generated in 0.033 seconds (73% PHP - 27% DB) with 20 queries