Author Topic: [fixed] 3.6.0.3: Segfault on (new) headless server 'Summoner'  (Read 824 times)

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
The following has happened on the newly setup 'Summoner' headless server, now running Ubuntu 12.04 x86_64 with (its own) kernel 3.2.0-30 on KVM with 1 GB dedicated RAM:

Code: [Select]
[2012-09-23 03:16:25] Runtime Error information:
======================================================
In [/home/softcoder/Code/megaglest/branches/release-3.6.0.3/source/glest_game/main/main.cpp::handleSIGSEGV Line: 652] Error detected: signal 11:

Stack Trace:
./megaglest:Glest::Game::handleSIGSEGV(int) address [0x6d45c2] line: 657
/lib/x86_64-linux-gnu/libc.so.6:() address [0x7f66a6c084c0] line: 0
./megaglest:Shared::PlatformCommon::SimpleTaskThread::~SimpleTaskThread() address [0x999d75] line: 310
./megaglest:Shared::PlatformCommon::SimpleTaskThread::execute() address [0x99f53b] line: 403
./megaglest:Shared::Platform::Thread::beginExecution(void*) address [0x9c3e9f] line: 81
/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0:() address [0x7f66a99b7fd5] line: 0
/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0:() address [0x7f66a99fb999] line: 0
/lib/x86_64-linux-gnu/libpthread.so.0:() address [0x7f66a978fe9a] line: 0
/lib/x86_64-linux-gnu/libc.so.6:clone() address [0x7f66a6cc44bd] line: 0

GDB backtrace:
Code: [Select]
Core was generated by `./megaglest --ini-path=./ --data-path=./ --headless-server-mode=exit'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007f66a6c50882 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#0  0x00007f66a6c50882 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f66a6c515a9 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x000000000090f3ab in deallocate (this=<optimized out>, __p=<optimized out>) at /usr/include/c++/4.4/ext/new_allocator.h:95
#3  _M_deallocate (__n=<optimized out>, __p=<optimized out>, this=<optimized out>) at /usr/include/c++/4.4/bits/stl_vector.h:146
#4  ~_Vector_base (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/c++/4.4/bits/stl_vector.h:132
#5  ~vector (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/c++/4.4/bits/stl_vector.h:313
#6  ~FowAlphaCellsLookupItem (this=<optimized out>, __in_chrg=<optimized out>) at /home/softcoder/Code/megaglest/branches/release-3.6.0.3/source/glest_game/world/world.h:76
#7  ~pair (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/c++/4.4/bits/stl_pair.h:68
#8  destroy (__p=<optimized out>, this=<optimized out>) at /usr/include/c++/4.4/ext/new_allocator.h:115
#9  _M_destroy_node (__p=<optimized out>, this=<optimized out>) at /usr/include/c++/4.4/bits/stl_tree.h:383
#10 _M_erase (__x=0x1c05900, this=<optimized out>) at /usr/include/c++/4.4/bits/stl_tree.h:972
#11 ~_Rb_tree (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/c++/4.4/bits/stl_tree.h:614
#12 ~map (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/c++/4.4/bits/stl_map.h:87
#13 ~pair (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/c++/4.4/bits/stl_pair.h:68
#14 destroy (__p=<optimized out>, this=<optimized out>) at /usr/include/c++/4.4/ext/new_allocator.h:115
#15 _M_destroy_node (__p=<optimized out>, this=<optimized out>) at /usr/include/c++/4.4/bits/stl_tree.h:383
#16 std::_Rb_tree<Shared::Graphics::Vec2<int>, std::pair<Shared::Graphics::Vec2<int> const, std::map<int, Glest::Game::FowAlphaCellsLookupItem, std::less<int>, std::allocator<std::pair<int const, Glest::Game::FowAlphaCellsLookupItem> > > >, std::_Select1st<std::pair<Shared::Graphics::Vec2<int> const, std::map<int, Glest::Game::FowAlphaCellsLookupItem, std::less<int>, std::allocator<std::pair<int const, Glest::Game::FowAlphaCellsLookupItem> > > > >, std::less<Shared::Graphics::Vec2<int> >, std::allocator<std::pair<Shared::Graphics::Vec2<int> const, std::map<int, Glest::Game::FowAlphaCellsLookupItem, std::less<int>, std::allocator<std::pair<int const, Glest::Game::FowAlphaCellsLookupItem> > > > > >::_M_erase (this=0x1b54f00, __x=<optimized out>) at /usr/include/c++/4.4/bits/stl_tree.h:972
#17 0x0000000000900db7 in clear (this=<optimized out>) at /usr/include/c++/4.4/bits/stl_tree.h:726
#18 clear (this=<optimized out>) at /usr/include/c++/4.4/bits/stl_map.h:626
#19 Glest::Game::World::end (this=0x1b54e98) at /home/softcoder/Code/megaglest/branches/release-3.6.0.3/source/glest_game/world/world.cpp:172
#20 0x0000000000634a99 in Glest::Game::Game::~Game (this=0x1b54e60, __in_chrg=<optimized out>) at /home/softcoder/Code/megaglest/branches/release-3.6.0.3/source/glest_game/game/game.cpp:312
#21 0x00000000006f250b in Glest::Game::Program::~Program (this=0x1a6b370, __in_chrg=<optimized out>) at /home/softcoder/Code/megaglest/branches/release-3.6.0.3/source/glest_game/main/program.cpp:243
#22 0x00000000006ee5cf in Glest::Game::ExceptionHandler::handleRuntimeError(char const*) ()
#23 0x00000000006d45c2 in Glest::Game::handleSIGSEGV (sig=<optimized out>) at /home/softcoder/Code/megaglest/branches/release-3.6.0.3/source/glest_game/main/main.cpp:656
#24 <signal handler called>
#25 0x0000000000999d75 in Shared::PlatformCommon::SimpleTaskThread::~SimpleTaskThread (this=0x1afd760, __in_chrg=<optimized out>) at /home/softcoder/Code/megaglest/branches/release-3.6.0.3/source/shared_lib/sources/platform/common/simple_threads.cpp:310
#26 0x000000000099f53b in Shared::PlatformCommon::SimpleTaskThread::execute (this=0x1afd760) at /home/softcoder/Code/megaglest/branches/release-3.6.0.3/source/shared_lib/sources/platform/common/simple_threads.cpp:401
#27 0x00000000009c3e9f in Shared::Platform::Thread::beginExecution (data=0x1af1c28) at /home/softcoder/Code/megaglest/branches/release-3.6.0.3/source/shared_lib/sources/platform/sdl/thread.cpp:79
#28 0x00007f66a99b7fd5 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#29 0x00007f66a99fb999 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#30 0x00007f66a978fe9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#31 0x00007f66a6cc44bd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#32 0x0000000000000000 in ?? ()

Is this an issue in MegaGlest, and if so, is it fixed, yet?
« Last Edit: 22 September 2012, 22:37:26 by tomreyn »
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: 3.6.0.3: Segfault on (new) headless server 'Summoner'
« Reply #1 on: 22 September 2012, 22:04:34 »
The code this segfaulted in has more protection around it in svn, so unless this is reproducible in svn code I wouldn't waste time on this.

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: 3.6.0.3: Segfault on (new) headless server 'Summoner'
« Reply #2 on: 22 September 2012, 22:37:12 »
Let's consider it [fixed] then, unless we learn otherwise.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

 

anything