Author Topic: [lacks info] 3.7.0, Ubuntu 12.04 x86_64, SigSegv while playing  (Read 2098 times)

gonse

  • Guest
Hi there,

I did an ordinary online game. After a while I suddenly got a SigSegv and MG closes.

The log files are here:
http://www.sendspace.com/file/ybngzt

Greetings
« Last Edit: 22 November 2012, 12:59:52 by tomreyn »

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Thanks for your bug report, it's just on time because there will likely be a new update available soon. Do you possibly have a core file, too?
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 · · ·

gonse

  • Guest

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Thanks.

According to this your system has 4 GB physical RAM, 2.6 of which were available by the time you ran the script.
It also says you have a Nvidia GeForce GT 220 with 256 MB VRAM and proprietary Nvidia driver version 304.43.
Your CPU is an AMD Phenom II X4 955 quad core.

When this segmentation fault occurred, I was hosting a game for the two of us (you were connected as a client), we were playing a pretty standard game, us two against 2 CPU Ultra x1.5 on the Conflict map (lastCustomGameSettings.mgg is attached below). The first time it happened you had standard / no logging, the second time it happened (in the second game) you were doing debug and verbose logging. Both times, this issue occurred relatively late into the game, namely when we took the other continent and fought the CPU there (we had previously been attacked by the CPU on our continent without any issues).

A preliminary look on your logs makes me think the information provided therein will be insufficient for identifying the underlying issue (I may be wrong there, and if Softcoder or Titi tell you differently, please prefer their instructions instead). I therefore suggest you try to reproduce this once more, running ulimit -c unlimited and rm -f core from the same terminal window which you then use to start the game. This will ensure core dumps will be created when the game segfaults again. The dump will be stored in the current working directory in a file called core. Once you have such a file, you can run gdb -q -n -ex "bt" -batch ./megaglest core to get a backtrace, and post its output (including the gdb command you ran) here. gdb is the GNU Debugger, it's available in an Ubuntu package of the same name: Install GDB.


Code: (lastCustomGameSettings.mgg) [Select]
Description=Conflict
MapFilterIndex=0
Map=conflict
Tileset=desert2
TechTree=megapack
DefaultUnits=1
DefaultResources=1
DefaultVictoryConditions=1
FogOfWar=1
AdvancedIndex=0
AllowObservers=0
FlagTypes1=0
EnableObserverModeAtEndGame=1
AiAcceptSwitchTeamPercentChance=30
FallbackCpuMultiplier=5
PathFinderType=0
EnableServerControlledAI=1
NetworkFramePeriod=20
NetworkPauseGameForLaggedClients=0
FactionThisFactionIndex=0
FactionCount=4
FactionControlForIndex0=7
ResourceMultiplierIndex0=1
FactionTeamForIndex0=0
FactionStartLocationForIndex0=0
FactionTypeNameForIndex0=indian
FactionPlayerNameForIndex0=tomreyn
FactionControlForIndex1=5
ResourceMultiplierIndex1=5
FactionTeamForIndex1=0
FactionStartLocationForIndex1=1
FactionTypeNameForIndex1=magic
FactionPlayerNameForIndex1=gonse
FactionControlForIndex2=2
ResourceMultiplierIndex2=5
FactionTeamForIndex2=1
FactionStartLocationForIndex2=2
FactionTypeNameForIndex2=magic
FactionPlayerNameForIndex2=AI1
FactionControlForIndex3=2
ResourceMultiplierIndex3=5
FactionTeamForIndex3=1
FactionStartLocationForIndex3=3
FactionTypeNameForIndex3=norsemen
FactionPlayerNameForIndex3=AI2
FactionControlForIndex4=0
ResourceMultiplierIndex4=10
FactionTeamForIndex4=0
FactionStartLocationForIndex4=4
FactionTypeNameForIndex4=persian
FactionPlayerNameForIndex4=Closed
FactionControlForIndex5=0
ResourceMultiplierIndex5=10
FactionTeamForIndex5=0
FactionStartLocationForIndex5=5
FactionTypeNameForIndex5=romans
FactionPlayerNameForIndex5=Closed
FactionControlForIndex6=0
ResourceMultiplierIndex6=10
FactionTeamForIndex6=0
FactionStartLocationForIndex6=6
FactionTypeNameForIndex6=tech
FactionPlayerNameForIndex6=Closed
FactionControlForIndex7=0
ResourceMultiplierIndex7=10
FactionTeamForIndex7=0
FactionStartLocationForIndex7=7
FactionTypeNameForIndex7=*Random*
FactionPlayerNameForIndex7=Closed
« Last Edit: 16 November 2012, 19:15:23 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
Your log files are not showing anything helpful at the moment. Could you explain exact steps you took and exactly at what point the crash occurs?

Thanks

gonse

  • Guest
Hi there,

this time an offline game against AI. Just built up my basis at the beginning of the game. Recently a single contact to an opponent.

The logs are here:
http://www.sendspace.com/file/xj19p5

The core dump:
Code: [Select]
gonse@gonsecomp:~/megaglest$ gdb -q -n -ex "bt" -batch ./megaglest core
[New LWP 2597]
[New LWP 2599]
[New LWP 2598]
[New LWP 2602]
[New LWP 2506]
[New LWP 2600]
[New LWP 2603]
[New LWP 2503]
[New LWP 2601]
[New LWP 2498]
[New LWP 2505]
[New LWP 2507]
[New LWP 2501]
[New LWP 2500]
[New LWP 2596]

warning: Can't read pathname for load map: Eingabe-/Ausgabefehler.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `./megaglest --verbose'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007faba104e529 in glGetError () from /usr/lib/nvidia-current-updates/libGL.so.1
#0  0x00007faba104e529 in glGetError () from /usr/lib/nvidia-current-updates/libGL.so.1
#1  0x0000000000711a9d in Shared::Graphics::Gl::_assertGl (file=0xd89a98 "/home/softcoder/Code/megaglest/trunk/source/glest_game/graphics/renderer.cpp", line=6606, forceErrorNumber=0x0) at /home/softcoder/Code/megaglest/trunk/source/shared_lib/include/graphics/gl/opengl.h:54
#2  0x00000000006f78f2 in Glest::Game::Renderer::computePosition (this=0x11dee20, screenPos=..., worldPos=..., exactCoords=false) at /home/softcoder/Code/megaglest/trunk/source/glest_game/graphics/renderer.cpp:6606
#3  0x0000000000638240 in Glest::Game::Game::mouseMove (this=0x6fb0490, x=439, y=474, ms=0x6fb19a8) at /home/softcoder/Code/megaglest/trunk/source/glest_game/game/game.cpp:3287
#4  0x0000000000741d66 in Glest::Game::MainWindow::eventMouseMove (this=0x31218d0, x=<optimized out>, y=<optimized out>, ms=0x11e2f50) at /home/softcoder/Code/megaglest/trunk/source/glest_game/main/main.cpp:730
#5  0x0000000000b1c048 in Shared::Platform::Window::handleEvent () at /home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/platform/sdl/window.cpp:189
#6  0x0000000000773c61 in Glest::Game::ExceptionHandler::handleRuntimeError(char const*, bool) ()
#7  0x000000000074ab4f in Glest::Game::handleSIGSEGV (sig=<optimized out>) at /home/softcoder/Code/megaglest/trunk/source/glest_game/main/main.cpp:4891
#8  <signal handler called>
#9  0x0000000000a5f164 in isFree (field=<optimized out>, this=<optimized out>) at /home/softcoder/Code/megaglest/trunk/source/glest_game/world/map.h:79
#10 Glest::Game::Map::isFreeCell (this=0x6fb0568, pos=..., field=Glest::Game::fLand) at /home/softcoder/Code/megaglest/trunk/source/glest_game/world/map.cpp:711
#11 0x0000000000a5fbe1 in Glest::Game::Map::isAproxFreeCells (this=<optimized out>, pos=..., size=1, field=<optimized out>, teamIndex=1) at /home/softcoder/Code/megaglest/trunk/source/glest_game/world/map.cpp:816
#12 0x00000000005f916d in processNearestFreePos (nearestDist=<optimized out>, nearestPos=..., unitPos=..., teamIndex=-1908525472, field=<optimized out>, size=<optimized out>, j=<optimized out>, i=<optimized out>, finalPos=..., this=<optimized out>) at /home/softcoder/Code/megaglest/trunk/source/glest_game/ai/path_finder.cpp:1322
#13 Glest::Game::PathFinder::computeNearestFreePos (this=0x23b1e3d0, unit=<optimized out>, finalPos=...) at /home/softcoder/Code/megaglest/trunk/source/glest_game/ai/path_finder.cpp:1361
#14 0x00000000005feacd in Glest::Game::PathFinder::aStar (this=0x23b1e3d0, unit=0x29634080, targetPos=..., inBailout=<optimized out>, frameIndex=8571, maxNodeCount=2000, searched_node_count=0x7fab8e3e5acc) at /home/softcoder/Code/megaglest/trunk/source/glest_game/ai/path_finder.cpp:862
#15 0x0000000000603c2c in Glest::Game::PathFinder::findPath (this=0x23b1e3d0, unit=0x29634080, finalPos=..., wasStuck=0x0, frameIndex=8571) at /home/softcoder/Code/megaglest/trunk/source/glest_game/ai/path_finder.cpp:230
#16 0x0000000000a3a4ac in Glest::Game::UnitUpdater::updateMove (this=0x6fb0cd0, unit=0x29634080, frameIndex=8571) at /home/softcoder/Code/megaglest/trunk/source/glest_game/world/unit_updater.cpp:431
#17 0x0000000000a3968a in Glest::Game::UnitUpdater::updateUnitCommand (this=0x6fb0cd0, unit=0x29634080, frameIndex=8571) at /home/softcoder/Code/megaglest/trunk/source/glest_game/world/unit_updater.cpp:315
#18 0x00000000009aeec5 in Glest::Game::FactionThread::execute (this=0x175582f0) at /home/softcoder/Code/megaglest/trunk/source/glest_game/type_instances/faction.cpp:353
#19 0x0000000000b2083f in Shared::Platform::Thread::beginExecution (data=0x258c5008) at /home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/platform/sdl/thread.cpp:79
#20 0x00007faba1510fd5 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#21 0x00007faba1554999 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#22 0x00007faba12e8e9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#23 0x00007fab9da75cbd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#24 0x0000000000000000 in ?? ()

gonse

  • Guest
Another one. Again against AI - 3 teams - 2 player each. Happened during an attack to my home base.
I temporarely reverted back to nvidia 295 driver. See the logs:
http://www.sendspace.com/file/nckofs

core dump:
Code: [Select]
gonse@gonsecomp:~/megaglest$ gdb -q -n -ex "bt" -batch ./megaglest core
[New LWP 3509]
[New LWP 3512]
[New LWP 3513]
[New LWP 3518]
[New LWP 3516]
[New LWP 3511]
[New LWP 3517]

warning: Can't read pathname for load map: Eingabe-/Ausgabefehler.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `./megaglest --verbose'.
Program terminated with signal 11, Segmentation fault.
#0  0x0000000004738570 in ?? ()
#0  0x0000000004738570 in ?? ()
#1  0x0000000000a88e97 in Shared::Graphics::ModelManager::end (this=0x2047ed0) at /home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/graphics/model_manager.cpp:57
#2  0x00000000006d935c in Glest::Game::Renderer::endGame (this=0x11dee20, isFinalEnd=true) at /home/softcoder/Code/megaglest/trunk/source/glest_game/graphics/renderer.cpp:719
#3  0x000000000064f373 in Glest::Game::Game::~Game (this=0x5ef26d0, __in_chrg=<optimized out>) at /home/softcoder/Code/megaglest/trunk/source/glest_game/game/game.cpp:401
#4  0x0000000000735729 in Glest::Game::BattleEnd::~BattleEnd (this=0x2a562a40, __in_chrg=<optimized out>) at /home/softcoder/Code/megaglest/trunk/source/glest_game/main/battle_end.cpp:102
#5  0x000000000077b011 in Glest::Game::Program::setState (this=0x2063220, programStateNew=0x2ae84d60, cleanupOldState=true) at /home/softcoder/Code/megaglest/trunk/source/glest_game/main/program.cpp:540
#6  0x0000000000734d18 in Glest::Game::BattleEnd::mouseDownLeft (this=0x2a562a40, x=<optimized out>, y=89) at /home/softcoder/Code/megaglest/trunk/source/glest_game/main/battle_end.cpp:785
#7  0x0000000000741ef2 in Glest::Game::MainWindow::eventMouseDown (this=0x2076820, x=<optimized out>, y=<optimized out>, mouseButton=Shared::Platform::mbLeft) at /home/softcoder/Code/megaglest/trunk/source/glest_game/main/main.cpp:623
#8  0x0000000000b1b586 in Shared::Platform::Window::handleMouseDown (this=0x2076820, event=...) at /home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/platform/sdl/window.cpp:674
#9  0x0000000000b1bf1e in Shared::Platform::Window::handleEvent () at /home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/platform/sdl/window.cpp:160
#10 0x0000000000773c61 in Glest::Game::ExceptionHandler::handleRuntimeError(char const*, bool) ()
#11 0x000000000074ab4f in Glest::Game::handleSIGSEGV (sig=<optimized out>) at /home/softcoder/Code/megaglest/trunk/source/glest_game/main/main.cpp:4891
#12 <signal handler called>
#13 0x00007f032a6168e7 in ?? () from /usr/lib/nvidia-current/libnvidia-glcore.so.295.40
#14 0x00007f032a616a6d in ?? () from /usr/lib/nvidia-current/libnvidia-glcore.so.295.40
#15 0x00007f032a616ad3 in ?? () from /usr/lib/nvidia-current/libnvidia-glcore.so.295.40
#16 0x00007f032a61e571 in ?? () from /usr/lib/nvidia-current/libnvidia-glcore.so.295.40
#17 0x00007f032a5e34a1 in ?? () from /usr/lib/nvidia-current/libnvidia-glcore.so.295.40
#18 0x00007f032a6179d2 in ?? () from /usr/lib/nvidia-current/libnvidia-glcore.so.295.40
#19 0x00007f032a62071e in ?? () from /usr/lib/nvidia-current/libnvidia-glcore.so.295.40
#20 0x00007f032a6151e4 in ?? () from /usr/lib/nvidia-current/libnvidia-glcore.so.295.40
#21 0x00007f032a40e8d3 in ?? () from /usr/lib/nvidia-current/libnvidia-glcore.so.295.40
#22 0x0000000000ab59a2 in Shared::Graphics::Gl::Texture2DGl::end (this=0x48de520, deletePixelBuffer=true) at /home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/graphics/gl/texture_gl.cpp:948
#23 0x0000000000a8c9ba in Shared::Graphics::TextureManager::endTexture (this=0x2048b30, texture=0x48de520, mustExistInList=64) at /home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/graphics/texture_manager.cpp:62
#24 0x0000000000a920db in Shared::Graphics::Mesh::end (this=0x262a5f8) at /home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/graphics/model.cpp:297
#25 0x0000000000a95955 in Shared::Graphics::Mesh::~Mesh (this=0x7f0321f61668, __in_chrg=<optimized out>) at /home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/graphics/model.cpp:238
#26 0x0000000000a95c6f in Shared::Graphics::Model::~Model (this=0x2d2d700, __in_chrg=<optimized out>) at /home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/graphics/model.cpp:1062
#27 0x0000000000b16380 in Shared::Graphics::Gl::ModelGl::~ModelGl (this=0x7f0321f61668, __in_chrg=<optimized out>) at /home/softcoder/Code/megaglest/trunk/source/shared_lib/include/graphics/gl/model_gl.h:24
#28 0x0000000000a88eaa in Shared::Graphics::ModelManager::end (this=0x2047ed0) at /home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/graphics/model_manager.cpp:58
#29 0x00000000006d935c in Glest::Game::Renderer::endGame (this=0x11dee20, isFinalEnd=true) at /home/softcoder/Code/megaglest/trunk/source/glest_game/graphics/renderer.cpp:719
#30 0x000000000064f373 in Glest::Game::Game::~Game (this=0x5ef26d0, __in_chrg=<optimized out>) at /home/softcoder/Code/megaglest/trunk/source/glest_game/game/game.cpp:401
#31 0x0000000000735729 in Glest::Game::BattleEnd::~BattleEnd (this=0x2a562a40, __in_chrg=<optimized out>) at /home/softcoder/Code/megaglest/trunk/source/glest_game/main/battle_end.cpp:102
#32 0x000000000077b011 in Glest::Game::Program::setState (this=0x2063220, programStateNew=0x2ec8cf80, cleanupOldState=true) at /home/softcoder/Code/megaglest/trunk/source/glest_game/main/program.cpp:540
#33 0x0000000000734d18 in Glest::Game::BattleEnd::mouseDownLeft (this=0x2a562a40, x=<optimized out>, y=90) at /home/softcoder/Code/megaglest/trunk/source/glest_game/main/battle_end.cpp:785
#34 0x0000000000741ef2 in Glest::Game::MainWindow::eventMouseDown (this=0x2076820, x=<optimized out>, y=<optimized out>, mouseButton=Shared::Platform::mbLeft) at /home/softcoder/Code/megaglest/trunk/source/glest_game/main/main.cpp:623
#35 0x0000000000b1b586 in Shared::Platform::Window::handleMouseDown (this=0x2076820, event=...) at /home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/platform/sdl/window.cpp:674
#36 0x0000000000b1bf1e in Shared::Platform::Window::handleEvent () at /home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/platform/sdl/window.cpp:160
#37 0x000000000076ab72 in Glest::Game::glestMain (argc=1342238784, argv=0x2d215f0) at /home/softcoder/Code/megaglest/trunk/source/glest_game/main/main.cpp:4659
#38 0x000000000076df83 in Glest::Game::glestMainWrapper (argc=2, argv=0x7fff500130d8) at /home/softcoder/Code/megaglest/trunk/source/glest_game/main/main.cpp:4924
#39 0x00007f032c45376d in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#40 0x00000000005dda99 in _start ()

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
If possible please get an updated build based on svn rev#3925 or higher and let me know if that solves your problem?

gonse

  • Guest
hi there,

is the installer rebuild automatically or do I need to compile myself?



I see,

no time to compile myself at the moment. I'll probably wait for the next release.
The changes are just bracketing - this only harm me? - we'll see.

Thanks.

Edit by Omega: Combined double post



Allright, not as hard as I thought. I built rev#3925, started a game against AI and after a while the same behaviour: SegFault.

The logs:
http://www.sendspace.com/file/rx6j13

The core dump:
Code: [Select]
gonse@gonsecomp:~/megaglest_svn$ gdb -q -n -ex "bt" -batch ./mk/linux/megaglest core
[New LWP 25121]
[New LWP 25092]
[New LWP 25124]
[New LWP 25120]
[New LWP 25122]
[New LWP 25125]
[New LWP 25126]
[New LWP 25127]
[New LWP 25123]
[New LWP 25096]
[New LWP 25101]
[New LWP 25094]
[New LWP 25098]
[New LWP 25100]
[New LWP 25102]

warning: Can't read pathname for load map: Eingabe-/Ausgabefehler.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `mk/linux/megaglest --ini-path=mk/linux/ --data-path=mk/linux/ --verbose'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007f5c4abbf529 in glGetError () from /usr/lib/nvidia-current-updates/libGL.so.1
#0  0x00007f5c4abbf529 in glGetError () from /usr/lib/nvidia-current-updates/libGL.so.1
#1  0x00000000005fe4b5 in Shared::Graphics::Gl::_assertGl (line=6603, forceErrorNumber=<optimized out>, file=0xb68ed0 "/home/gonse/megaglest_svn/source/glest_game/graphics/renderer.cpp") at /home/gonse/megaglest_svn/source/glest_game/../shared_lib/include/graphics/gl/opengl.h:54
#2  0x00000000006089b9 in Glest::Game::Renderer::computePosition (this=0xeaba60, screenPos=..., worldPos=..., exactCoords=false) at /home/gonse/megaglest_svn/source/glest_game/graphics/renderer.cpp:6603
#3  0x0000000000588447 in Glest::Game::Game::mouseMove (this=0x5405f60, x=682, y=93, ms=<optimized out>) at /home/gonse/megaglest_svn/source/glest_game/game/game.cpp:3287
#4  0x0000000000664036 in Glest::Game::MainWindow::eventMouseMove (this=0x13e5ef0, x=<optimized out>, y=<optimized out>, ms=0xeb0222) at /home/gonse/megaglest_svn/source/glest_game/main/main.cpp:730
#5  0x0000000000a4e66b in Shared::Platform::Window::handleEvent () at /home/gonse/megaglest_svn/source/shared_lib/sources/platform/sdl/window.cpp:188
#6  0x0000000000699dd9 in Glest::Game::ExceptionHandler::handleRuntimeError (msg=<optimized out>, getStackTraceString=true) at /home/gonse/megaglest_svn/source/glest_game/main/main.cpp:429
#7  0x000000000068084f in Glest::Game::handleSIGSEGV (sig=<optimized out>) at /home/gonse/megaglest_svn/source/glest_game/main/main.cpp:4914
#8  <signal handler called>
#9  getUnit (field=0, this=0x55) at /home/gonse/megaglest_svn/source/glest_game/world/map.h:70
#10 Glest::Game::UnitUpdater::findEnemiesForCell (this=0x54067a0, ast=0xed34070, cell=0x55, unit=0x2dd08490, commandTarget=0x0, enemies=...) at /home/gonse/megaglest_svn/source/glest_game/world/unit_updater.cpp:2118
#11 0x00000000009589d3 in Glest::Game::UnitUpdater::findCachedCellsEnemies (this=0x54067a0, center=..., range=10, size=<optimized out>, enemies=..., ast=0xed34070, unit=0x2dd08490, commandTarget=0x0) at /home/gonse/megaglest_svn/source/glest_game/world/unit_updater.cpp:2099
#12 0x000000000095938e in Glest::Game::UnitUpdater::unitOnRange (this=0x54067a0, unit=0x2dd08490, range=10, rangedPtr=0x7f5c35badb80, ast=0xed34070) at /home/gonse/megaglest_svn/source/glest_game/world/unit_updater.cpp:2186
#13 0x000000000095ac71 in attackableOnSight (ast=<optimized out>, rangedPtr=0x7f5c35badb80, unit=0x2dd08490, this=0x54067a0) at /home/gonse/megaglest_svn/source/glest_game/world/unit_updater.cpp:2069
#14 Glest::Game::UnitUpdater::updateAttack (this=0x54067a0, unit=0x2dd08490, frameIndex=51348) at /home/gonse/megaglest_svn/source/glest_game/world/unit_updater.cpp:500
#15 0x000000000094d9c6 in Glest::Game::UnitUpdater::updateUnitCommand (this=0x54067a0, unit=0x2dd08490, frameIndex=51348) at /home/gonse/megaglest_svn/source/glest_game/world/unit_updater.cpp:315
#16 0x00000000008a6cf1 in Glest::Game::FactionThread::execute (this=0xbd63c60) at /home/gonse/megaglest_svn/source/glest_game/type_instances/faction.cpp:353
#17 0x0000000000a3c0df in Shared::Platform::Thread::beginExecution (data=<optimized out>) at /home/gonse/megaglest_svn/source/shared_lib/sources/platform/sdl/thread.cpp:79
#18 0x00007f5c4b081fd5 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#19 0x00007f5c4b0c5999 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#20 0x00007f5c4ae59e9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#21 0x00007f5c475c1cbd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#22 0x0000000000000000 in ?? ()




Another case - I just got attacked.

http://www.sendspace.com/file/hu6idg

The line 2125 of unit_updater.cpp is here (played around a bit)

if(possibleEnemy != NULL && possibleEnemy->isAlive()) {

Code: [Select]
gonse@gonsecomp:~/megaglest_svn$ gdb -q -n -ex "bt" -batch ./mk/linux/megaglest core
[New LWP 3150]
[New LWP 3149]
[New LWP 3124]
[New LWP 3116]
[New LWP 3147]
[New LWP 3148]
[New LWP 3125]
[New LWP 3119]
[New LWP 3121]
[New LWP 3118]
[New LWP 3123]

warning: Can't read pathname for load map: Eingabe-/Ausgabefehler.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `mk/linux/megaglest --ini-path=mk/linux/ --data-path=mk/linux/ --verbose'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007fd8fbfca529 in glGetError () from /usr/lib/nvidia-current-updates/libGL.so.1
#0  0x00007fd8fbfca529 in glGetError () from /usr/lib/nvidia-current-updates/libGL.so.1
#1  0x00000000005fe4b5 in Shared::Graphics::Gl::_assertGl (line=6603, forceErrorNumber=<optimized out>, file=0xb68ed0 "/home/gonse/megaglest_svn/source/glest_game/graphics/renderer.cpp") at /home/gonse/megaglest_svn/source/glest_game/../shared_lib/include/graphics/gl/opengl.h:54
#2  0x00000000006089b9 in Glest::Game::Renderer::computePosition (this=0xeaba60, screenPos=..., worldPos=..., exactCoords=false) at /home/gonse/megaglest_svn/source/glest_game/graphics/renderer.cpp:6603
#3  0x0000000000588447 in Glest::Game::Game::mouseMove (this=0x6bf3eb0, x=162, y=396, ms=<optimized out>) at /home/gonse/megaglest_svn/source/glest_game/game/game.cpp:3287
#4  0x0000000000664036 in Glest::Game::MainWindow::eventMouseMove (this=0x2d61ef0, x=<optimized out>, y=<optimized out>, ms=0xeb0222) at /home/gonse/megaglest_svn/source/glest_game/main/main.cpp:730
#5  0x0000000000a4e66b in Shared::Platform::Window::handleEvent () at /home/gonse/megaglest_svn/source/shared_lib/sources/platform/sdl/window.cpp:188
#6  0x0000000000699dd9 in Glest::Game::ExceptionHandler::handleRuntimeError (msg=<optimized out>, getStackTraceString=true) at /home/gonse/megaglest_svn/source/glest_game/main/main.cpp:429
#7  0x000000000068084f in Glest::Game::handleSIGSEGV (sig=<optimized out>) at /home/gonse/megaglest_svn/source/glest_game/main/main.cpp:4914
#8  <signal handler called>
#9  0x00000000009584c6 in Glest::Game::UnitUpdater::findEnemiesForCell (this=0x6bf46f0, ast=0x161a0c60, cell=0x1d195c38, unit=0x298fafa0, commandTarget=0x0, enemies=...) at /home/gonse/megaglest_svn/source/glest_game/world/unit_updater.cpp:2125
#10 0x00000000009589d3 in Glest::Game::UnitUpdater::findCachedCellsEnemies (this=0x6bf46f0, center=..., range=10, size=<optimized out>, enemies=..., ast=0x161a0c60, unit=0x298fafa0, commandTarget=0x0) at /home/gonse/megaglest_svn/source/glest_game/world/unit_updater.cpp:2099
#11 0x000000000095938e in Glest::Game::UnitUpdater::unitOnRange (this=0x6bf46f0, unit=0x298fafa0, range=10, rangedPtr=0x7fd8c5ffbb80, ast=0x161a0c60) at /home/gonse/megaglest_svn/source/glest_game/world/unit_updater.cpp:2190
#12 0x000000000095ac71 in attackableOnSight (ast=<optimized out>, rangedPtr=0x7fd8c5ffbb80, unit=0x298fafa0, this=0x6bf46f0) at /home/gonse/megaglest_svn/source/glest_game/world/unit_updater.cpp:2069
#13 Glest::Game::UnitUpdater::updateAttack (this=0x6bf46f0, unit=0x298fafa0, frameIndex=148550) at /home/gonse/megaglest_svn/source/glest_game/world/unit_updater.cpp:500
#14 0x000000000094d9c6 in Glest::Game::UnitUpdater::updateUnitCommand (this=0x6bf46f0, unit=0x298fafa0, frameIndex=148550) at /home/gonse/megaglest_svn/source/glest_game/world/unit_updater.cpp:315
#15 0x00000000008a6cf1 in Glest::Game::FactionThread::execute (this=0xecbc220) at /home/gonse/megaglest_svn/source/glest_game/type_instances/faction.cpp:353
#16 0x0000000000a3c0df in Shared::Platform::Thread::beginExecution (data=<optimized out>) at /home/gonse/megaglest_svn/source/shared_lib/sources/platform/sdl/thread.cpp:79
#17 0x00007fd8fc48cfd5 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#18 0x00007fd8fc4d0999 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#19 0x00007fd8fc264e9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#20 0x00007fd8f89cccbd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#21 0x0000000000000000 in ?? ()
« Last Edit: 18 November 2012, 16:07:28 by gonse »

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
These stack traces make absolutely no sense in the places they are pointing.

It seems like memory is randomly getting corrupt and crashing in places that don't even try to access memory pointers or dangerous logic.

Please add this to your glestuser.ini in ~/.megaglest

Code: [Select]
EnableFactionWorkerThreads=false
and see if it solves your problem?

gonse

  • Guest
I'll try. By the way I did a memtest yesterday and everything seems to be ok.

 

anything