Здравствуйте!
У нас падает сервер вот здесь:
stg-2.4-2006.10.18-09.40.29/projects/stargazer/traffcounter.cpp:574
558¦ void TRAFFCOUNTER::DelUser(user_iter user)
559¦ {
560¦ STG_LOCKER lock(&mutex, __FILE__, __LINE__);
561¦
562¦ printfd(__FILE__, "DelUser: %s \n", user->GetLogin().c_str());
563¦ uint32_t uip = user->GetCurrIP();
564¦ pair<ip2p_iter, ip2p_iter> pi;
565¦ pi = ip2packets.equal_range(uip);
566¦
567¦ while (pi.first != pi.second)
568¦ {
569¦ if (pi.first->second->first.GetSrcIP() == uip)
570¦ {
571¦ if (pi.first->second->second.userU != user)
572¦ {
573¦ int * a = NULL;
574+> *a = 0;
575¦ }
576¦
577¦ if (pi.first->second->second.dirU < DIR_NUM)
578¦ {
579¦ pi.first->second->second.userU->AddTraffStatU(pi.first->second->second.dirU,
580¦ pi.first->second->first.GetDstIP(),
581¦ pi.first->second->second.lenU);
582¦ }
583¦ pi.first->second->second.userUPresent = false;
584¦ }
585¦
586¦ if (pi.first->second->first.GetDstIP() == uip)
587¦ {
588¦ if (pi.first->second->second.userD != user)
589¦ {
Стек вызовов при этом такой:
#0 0x080a1afe in TRAFFCOUNTER::DelUser (this=0x80f2b10, user={<std::_List_iterator_base> = {_M_node = 0x8102c68}, <No data fields>}) at traffcounter.cpp:574
#1 0x0809375b in TRF_IP_BEFORE::Notify (this=0x80f3f30, oldValue=@0xbeffe41c, newValue=@0xbeffe460) at traffcounter.h:239
#2 0x080b0d87 in USER_PROPERTY<unsigned int>::operator= (this=0x8103a94, newValue=@0xbeffe460) at user_property.h:205
#3 0x080abd48 in USER::Unauthorize (this=0x8102c70, auth=0x80f9288) at user.cpp:553
#4 0x403384dd in AUTH_IA::PacketProcessor (this=0x80f9288, buff=0xbefff8fc "@", dataLen=64, sip=1761091500, protoVer=6, user=0xbefff864) at inetaccess.cpp:831
#5 0x40336861 in AUTH_IA::RecvData (this=0x80f9288, buffer=0xbefff8d4 "00100", bufferSize=512) at inetaccess.cpp:462
#6 0x4033623e in AUTH_IA::Run (d=0x80f9288) at inetaccess.cpp:340
#7 0x40042e51 in pthread_start_thread () from /lib/libpthread.so.0
#8 0x4024e8aa in clone () from /lib/libc.so.6
Аналогичным образом выпадала и текущая стабильная версия Старгайзера.
Проблема повторяется регулярно, но с каким событием она связана установить не удалось.