I noticed that whenever I reloaded a savegame, memory allocation of MegaGlest seemed to increased. Actually it pretty much stopped increasing after reaching about reaching 670 MB, though. After reloading yet another savegame I had created on the same revision of MegaGlest, I ended up with many archers which were still selected (that's how the game had been saved). But there is this delay after larger games get reloaded. So I did not do anything but click on the ground, hoping to deselect my archers this way. However, this actually seemed to have triggered this issue:
megaglest v3.6.1-dev
Compiled using: GNUC: 40601 [64bit] on: Mar 31 2012 22:11:45
SVN: [Rev: 3209M] - using STREFLOP [SSE] - [no-denormals]
In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleSIGSEGV Line: 634] Error detected: signal 11:
Error saved to logfile [/home/tomreyn/.megaglest/error.log]
Segmentation fault detected, analyzing...
warning:
Can't read pathname for load map: Eingabe-/Ausgabefehler.
[Thread debugging using libthread_db enabled]
Core was generated by `./megaglest'.
Program terminated with signal 11, Segmentation fault.
#0 0x000000000085dcdf in isInside (y=1065353216, x=0, this=0x0) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/world/map.cpp:562
562 return x>=0 && y>=0 && x<w && y<h;
#0 0x000000000085dcdf in isInside (y=1065353216, x=0, this=0x0) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/world/map.cpp:562
#1 Glest::Game::Map::isInside (this=0x0, pos=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/world/map.cpp:566
#2 0x00000000007bf4c5 in Glest::Game::Unit::computeHeight (this=0x7f9fb05c2790, pos=...) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/type_instances/unit.cpp:2717
#3 0x00000000007bf6e1 in Glest::Game::Unit::getVectorFlat (this=0x7f9fb05c2790, lastPosValue=..., curPosValue=...) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/type_instances/unit.cpp:1212
#4 0x00000000007bf7c7 in Glest::Game::Unit::getCurrVectorFlat (this=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/type_instances/unit.cpp:1185
#5 0x00000000005ce689 in Glest::Game::Renderer::renderSelectionEffects (this=0xc74260) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/graphics/renderer.cpp:4711
#6 0x000000000054296c in Glest::Game::Game::render3d (this=0x7f9fbb77def0) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/game/game.cpp:2833
#7 0x00000000005658f2 in Glest::Game::Game::renderWorker (this=0x7f9fbb77def0) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/game/game.cpp:1662
#8 0x0000000000565e18 in Glest::Game::Game::render (this=0x7f9fbb77def0) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/game/game.cpp:1592
#9 0x0000000000633566 in Glest::Game::Program::loopWorker (this=0x1f0fd10) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/program.cpp:391
#10 0x0000000000629dd5 in Glest::Game::ExceptionHandler::handleRuntimeError (msg=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp:512
#11 0x0000000000616442 in Glest::Game::handleSIGSEGV (sig=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp:638
#12 <signal handler called>
#13 0x000000000085dcdf in isInside (y=1065353216, x=0, this=0x0) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/world/map.cpp:562
#14 Glest::Game::Map::isInside (this=0x0, pos=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/world/map.cpp:566
#15 0x00000000007bf4c5 in Glest::Game::Unit::computeHeight (this=0x7f9fb05c2790, pos=...) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/type_instances/unit.cpp:2717
#16 0x00000000007bf6e1 in Glest::Game::Unit::getVectorFlat (this=0x7f9fb05c2790, lastPosValue=..., curPosValue=...) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/type_instances/unit.cpp:1212
#17 0x00000000007bf7c7 in Glest::Game::Unit::getCurrVectorFlat (this=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/type_instances/unit.cpp:1185
#18 0x00000000005ce689 in Glest::Game::Renderer::renderSelectionEffects (this=0xc74260) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/graphics/renderer.cpp:4711
#19 0x000000000054296c in Glest::Game::Game::render3d (this=0x7f9fbb77def0) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/game/game.cpp:2833
#20 0x00000000005658f2 in Glest::Game::Game::renderWorker (this=0x7f9fbb77def0) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/game/game.cpp:1662
#21 0x0000000000565e18 in Glest::Game::Game::render (this=0x7f9fbb77def0) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/game/game.cpp:1592
#22 0x0000000000633566 in Glest::Game::Program::loopWorker (this=0x1f0fd10) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/program.cpp:391
#23 0x0000000000620c10 in Glest::Game::glestMain (argc=<optimized out>, argv=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp:3849
#24 0x0000000000623f56 in Glest::Game::glestMainWrapper (argc=1, argv=0x7fff2ca42ce8) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp:4005
#25 0x00007f9ff5f3130d in __libc_start_main (main=0x4aafc0 <main(int, char**)>, argc=1, ubp_av=0x7fff2ca42ce8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff2ca42cd8) at libc-start.c:226
#26 0x00000000004b0439 in _start ()
So I'm not entirely sure how to reproduce it unfortunately. Maybe the stacktrace can provide enough info.