PlaneShift

  • Status Closed
  • Percent Complete
    100%
  • Task Type Bug Report
  • Category
  • Assigned To No-one
  • Operating System
  • Severity Low
  • Priority
  • Reported Version
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: PlaneShift
Opened by Caarrie - 10.01.2009
Last edited by peeg - 20.02.2009

FS#2666 - server crash on /morph

on lastest svn trunk server crashes on /morph.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fa468cac6f0 (LWP 27285)]    
0x00007fa46608ae39 in csEngine::GetNearbyMeshList (this=0x7fa468c8afcc, 
    sector=0x0, pos=@0x7fff70cd0950, radius=100, list=@0x7fa45f5f14d4,  
    visited_sectors=@0x7fff70cd0770, crossPortals=true)                 
    at /home/mdavis/server/cs/plugins/engine/3d/engine.cpp:2343         
2343      iVisibilityCuller* culler = sector->GetVisibilityCuller ();   
(gdb) bt                                                                
#0  0x00007fa46608ae39 in csEngine::GetNearbyMeshList (this=0x7fa468c8afcc, 
    sector=0x0, pos=@0x7fff70cd0950, radius=100, list=@0x7fa45f5f14d4,      
    visited_sectors=@0x7fff70cd0770, crossPortals=true)                     
    at /home/mdavis/server/cs/plugins/engine/3d/engine.cpp:2343             
#1  0x00007fa466092a24 in csEngine::GetNearbyMeshes (this=0x7fa468c8afcc,   
    sector=0x0, pos=@0x7fff70cd0950, radius=100, crossPortals=true)         
    at /home/mdavis/server/cs/plugins/engine/3d/engine.cpp:2432             
#2  0x000000000047169e in GEMSupervisor::FindNearbyEntities (this=0x26ceb70, 
    sector=0x0, pos=@0x7fff70cd0950, radius=100, doInvisible=true)           
    at src/server/gem.cpp:537                                                
#3  0x0000000000471965 in gemObject::UpdateProxList (this=0x7fa4580070a0,    
    force=false) at src/server/gem.cpp:911                                   
#4  0x00000000005450bb in psServerDR::HandleMessage (this=0x26ff600,         
    me=0x271a710, client=0x2a07540) at src/server/psserverdr.cpp:260         
#5  0x00000000006cc130 in MsgHandler::Publish (this=0x26cd020, me=0x271a710) 
    at src/common/net/msghandler.cpp:74                                      
#6  0x00000000006f2532 in EventManager::Run (this=0x26cd020)                 
---Type <return> to continue, or q <return> to quit---                       
    at src/common/util/eventmanager.cpp:197                                  
#7  0x0000000000529fe5 in psServer::MainLoop (this=0x26392b0)                
    at src/server/psserver.cpp:558                                           
#8  0x00000000004c45aa in main (argc=1, argv=0x7fff70cd1008)                 
    at src/server/main.cpp:79                                                
(gdb) bt full                                                                
#0  0x00007fa46608ae39 in csEngine::GetNearbyMeshList (this=0x7fa468c8afcc,  
    sector=0x0, pos=@0x7fff70cd0950, radius=100, list=@0x7fa45f5f14d4,       
    visited_sectors=@0x7fff70cd0770, crossPortals=true)                      
    at /home/mdavis/server/cs/plugins/engine/3d/engine.cpp:2343              
        culler = (class iVisibilityCuller *) 0x7fff70cd0700                  
        visit = {<CS::Memory::CustomAllocated> = {<No data fields>},         
  obj = 0x7fff70cd07d0}                                                      
#1  0x00007fa466092a24 in csEngine::GetNearbyMeshes (this=0x7fa468c8afcc,    
    sector=0x0, pos=@0x7fff70cd0950, radius=100, crossPortals=true)          
    at /home/mdavis/server/cs/plugins/engine/3d/engine.cpp:2432              
        list = (                                                             
    csArray<iMeshWrapper*, csArrayElementHandler<iMeshWrapper*>, CS::Memory::AllocatorMalloc, csArrayCapacityFixedGrow<16> > *) 0x7fa45f5f14d4                
        visited_sectors = {map = {                                             
    Elements = {<CS::Memory::CustomAllocated> = {<No data fields>},            
      count = 23,                                                              
      capacity = {<csArrayCapacityFixedGrow<16>> = {<csArrayCapacityLinear<csAr---Type <return> to continue, or q <return> to quit---                         
rayThresholdFixed<16> >> = {<csArrayThresholdFixed<16>> = {<No data fields>}, <No data fields>}, <No data fields>}, c = 32},                                  
      root = {<CS::Memory::AllocatorMalloc> = {<No data fields>},              
        p = 0x7fa45f581c84}}, Modulo = 23, Size = 1, InitModulo = 23,          
    GrowRate = 5, MaxSize = 20000}}                                            
        it = (csMeshListIt *) 0x7fff70cd08a0                                   
#2  0x000000000047169e in GEMSupervisor::FindNearbyEntities (this=0x26ceb70,   
    sector=0x0, pos=@0x7fff70cd0950, radius=100, doInvisible=true)             
    at src/server/gem.cpp:537                                                  
        list = {<CS::Memory::CustomAllocated> = {<No data fields>},            
  count = 140735085873456,                                                     
  capacity = {<csArrayCapacityFixedGrow<16>> = {<csArrayCapacityLinear<csArrayThresholdFixed<16> >> = {<csArrayThresholdFixed<16>> = {<No data fields>}, <No data fields>}, <No data fields>}, c = 4812096201845374977},                     
  root = {<CS::Memory::AllocatorMalloc> = {<No data fields>},                  
    p = 0x7fff70cd0950}}                                                       
        list = {<CS::Memory::CustomAllocated> = {<No data fields>},            
---Type <return> to continue, or q <return> to quit---                         
  count = 5013185,                                                             
  capacity = {<csArrayCapacityFixedGrow<16>> = {<csArrayCapacityLinear<csArrayThresholdFixed<16> >> = {<csArrayThresholdFixed<16>> = {<No data fields>}, <No data fields>}, <No data fields>}, c = 140343827797008},                         
  root = {<CS::Memory::AllocatorMalloc> = {<No data fields>},                  
    p = 0x7fa45f58172c}}                                                       
        engine = {<CS::Memory::CustomAllocated> = {<No data fields>},          
  obj = 0x7fa468c8b034}                                                        
        obj_it = {<CS::Memory::CustomAllocated> = {<No data fields>},          
  obj = 0x0}                                                                   
#3  0x0000000000471965 in gemObject::UpdateProxList (this=0x7fa4580070a0,      
    force=false) at src/server/gem.cpp:911                                     
        pos = {{{x = 0, y = 0, z = 0}, m = {0, 0, 0}}}                         
        yrot = 0                                                               
        sector = (class iSector *) 0x0                                         
        time = 82458                                                           
        nearlist = {<CS::Memory::CustomAllocated> = {<No data fields>},        
---Type <return> to continue, or q <return> to quit---                         
  count = 0,                                                                   
  capacity = {<csArrayCapacityFixedGrow<16>> = {<csArrayCapacityLinear<csArrayThresholdFixed<16> >> = {<csArrayThresholdFixed<16>> = {<No data fields>}, <No data fields>}, <No data fields>}, c = 0},                                       
  root = {<CS::Memory::AllocatorMalloc> = {<No data fields>}, p = 0x0}}        
        count = 13983451662145028096                                           
        player_count = 14060133895494578646                                    
        obj = (gemObject *) 0x3                                                
        debug_count = 0                                                        
#4  0x00000000005450bb in psServerDR::HandleMessage (this=0x26ff600,           
    me=0x271a710, client=0x2a07540) at src/server/psserverdr.cpp:260           
        drmsg = {<psMessageCracker> = {_vptr.psMessageCracker = 0xa3bf70,      
    static msghandler = 0x26cd020,                                             
    msg = {<CS::Memory::CustomAllocated> = {<No data fields>}, obj = 0x0},     
    valid = true}, counter = 11 '\v', on_ground = true, mode = 0 '\0', pos = { 
    {{x = -35.7999992, y = 0, z = -159.630005}, m = {-35.7999992, 0,           
        -159.630005}}}, vel = {{{x = 0, y = 0, z = 0}, m = {0, 0, 0}}},        
---Type <return> to continue, or q <return> to quit---                         

  worldVel = {{{x = 0, y = -1.84239995, z = 0}, m = {0, -1.84239995, 0}}},     
  yrot = -0.883572936, sector = 0x7fa460668d8c,                                
  sectorName = {<csStringFast<36>> = {<csStringBase> = {                       
        _vptr.csStringBase = 0x72de50, Data = 0x0, Size = 7, MaxSize = 0,      
        GrowBy = 64},                                                          
      minibuff = "NPCroom\000\000\f?p?\177\000\000\200\v?p\002\000\000\000\020?q\002\000\000\000\000\000\000\000", miniused = 8}, <No data fields>},          
  ang_vel = 0, entityid = {id = 10061}}                                        
        actor = (class gemActor *) 0x7fa4580070a0                              
        __FUNCTION__ = "HandleMessage"                                         
#5  0x00000000006cc130 in MsgHandler::Publish (this=0x26cd020, me=0x271a710)   
    at src/common/net/msghandler.cpp:74                                        
        client = (class Client *) 0x2a07540                                    
        x = 0                                                                  
        lock = {lockObj = @0x26ce828}                                          
        handled = false                                                        
        mtype = 13                                                             
---Type <return> to continue, or q <return> to quit---                         
        __FUNCTION__ = "Publish"                                               
#6  0x00000000006f2532 in EventManager::Run (this=0x26cd020)                   
    at src/common/util/eventmanager.cpp:197                                    
        start = 82458                                                          
        timeTaken = 132                                                        
        now = 82446                                                            
        timeout = 250                                                          
        status = {<csStringFast<36>> = {<csStringBase> = {                     
      _vptr.csStringBase = 0x72de50, Data = 0x0, Size = 0, MaxSize = 0,        
      GrowBy = 64},                                                            
    minibuff = "Fri Jan  9 19:04:22 2009, \000\000\000\000\000\000?~@",        
    miniused = 0}, <No data fields>}                                           
        eventtimes = {57, 1, 52, 18, 4, 1, 1, 132, 0, 0, 1735077766, 32676,    
  7513600, 0, 1750865594, 32676, 1758142464, 32676, 1892486528, 32767,         
  1892486368, 32767, 1750866111, 32676, 1892486432, 32767, 1892486528, 32767,  
  1892486400, 32767, 4299508, 0, 40083232, 0, 1892486528, 32767, 1892486432,   
  32767, 4299612, 0, 40243728, 0, 1892486528, 32767, 1892486640, 32767,        
---Type <return> to continue, or q <return> to quit---                         
  7351086, 0, 0, 16777216}                                                     
        index = 8                                                              
        eventtimesTotal = 266                                                  
        filled = false                                                         
        msg = {<CS::Memory::CustomAllocated> = {<No data fields>},
  obj = 0x271a710}
        nextEvent = 82696
#7  0x0000000000529fe5 in psServer::MainLoop (this=0x26392b0)
    at src/server/psserver.cpp:558
        status = {<csStringFast<36>> = {<csStringBase> = {
      _vptr.csStringBase = 0x72de50, Data = 0x0, Size = 18, MaxSize = 0,
      GrowBy = 64},
    minibuff = "Server initialized\000\000\000\000\000\0008\003\000\000\000\000\000\0000\017?p", miniused = 19}, <No data fields>}
#8  0x00000000004c45aa in main (argc=1, argv=0x7fff70cd1008)
    at src/server/main.cpp:79
        CSSetup = (psCSSetup *) 0x2617290
---Type <return> to continue, or q <return> to quit---
        object_reg = (class iObjectRegistry *) 0x7fa468cbf6d4
        cfgmgr = {<CS::Memory::CustomAllocated> = {<No data fields>},
  obj = 0x7fa4676465c8}
The task depends upon
ID Project Summary Priority Severity Assigned To Progress
2623 PlaneShift  FS#2623 - client crash on /morph (after an error)  Critical
100%
Closed by  peeg
20.02.2009 17:31
Reason for closing:  
Additional comments about closing:  

Fixed by Loyni. Works fine again.

Aresilek Besolez commented on 10.01.2009 02:51

Confirmed. I get "Error setting mesh" and the server goes poof.

weltall commented on 10.01.2009 06:35

strangely here i get only the client to crash and no crash server side

Loyni commented on 10.02.2009 19:05

Here is a patch.

Project Manager
Lanarel commented on 10.02.2009 21:41

/morph works with this patch

Caarrie commented on 11.02.2009 16:57

Weltall can you test this and see if this patch fixes your issue with  bug 2623 ?

weltall commented on 11.02.2009 17:49

yes it does

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing