Author Topic: 3.5.2: Segmentation fault in game_constants.h:155  (Read 1002 times)

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
3.5.2: Segmentation fault in game_constants.h:155
« on: 5 June 2011, 00:18:03 »
I ran into a segfault today. I was a client connected to a U.S. server. I and a bot were competing two humans on the Conflict map... We were several minutes into the game when this happened but I'm not aware of any action that may have triggered this. I think the only factions involved were tech (all humans) and magic (the bot).

Code: [Select]
v3.5.2-GNUC: 40401 [64bit]-May 26 2011 09:59:59, SVN: [Rev: 2305], [STREFLOP]
megaglest: /home/softcoder/Code/megaglest/trunk/source/glest_game/game/game_constants.h:155: static void Glest::Game::CardinalDir::assertDirValid(int): Assertion `v >= 0 && v < 4' failed.
Aborted (core dumped)

Core was generated by `./megaglest'.
Program terminated with signal 6, Aborted.
#0  0x00007fc26685fd05 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#0  0x00007fc26685fd05 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fc266863ab6 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007fc2668587c5 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
#3  0x00000000005e89a7 in Glest::Game::CardinalDir::assertDirValid (v=<value optimized out>) at /home/softcoder/Code/megaglest/trunk/source/glest_game/game/game_constants.h:155
#4  0x000000000075d79b in Glest::Game::NetworkCommand::preprocessNetworkCommand (this=0x7fc23944702c, world=<value optimized out>) at /home/softcoder/Code/megaglest/trunk/source/glest_game/network/network_types.cpp:79
#5  0x00000000005e5642 in Glest::Game::Commander::giveNetworkCommand (this=0x7fc24178b1c0, networkCommand=0x7fc23944702c) at /home/softcoder/Code/megaglest/trunk/source/glest_game/game/commander.cpp:567
#6  0x00000000005e5d1f in Glest::Game::Commander::updateNetwork (this=0x7fc24178b1c0, game=<value optimized out>) at /home/softcoder/Code/megaglest/trunk/source/glest_game/game/commander.cpp:513
#7  0x00000000005d6ab9 in Glest::Game::Game::update (this=0x7fc241789f80) at /home/softcoder/Code/megaglest/trunk/source/glest_game/game/game.cpp:872
#8  0x000000000065a269 in Glest::Game::Program::loopWorker (this=0x14908d0) at /home/softcoder/Code/megaglest/trunk/source/glest_game/main/program.cpp:305
#9  0x0000000000654625 in Glest::Game::glestMain (argc=<value optimized out>, argv=<value optimized out>) at /home/softcoder/Code/megaglest/trunk/source/glest_game/main/main.cpp:2995
#10 0x0000000000655c14 in Glest::Game::glestMainWrapper (argc=1, argv=0x7fff50ae2b38) at /home/softcoder/Code/megaglest/trunk/source/glest_game/main/main.cpp:3079
#11 0x00007fc26684aeff in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#12 0x0000000000574429 in _start () at ../sysdeps/x86_64/elf/start.S:113
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 · · ·

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: 3.5.2: Segmentation fault in game_constants.h:155
« Reply #1 on: 14 June 2011, 23:13:57 »
Sofcoder responded on IRC:
Code: [Select]
<softcoder> definately some kind of corrupt packet
<softcoder> the 'rotation' direction was not north south east or west
<softcoder> the only way is that the packet is corrupt
<softcoder> which could be different binaries, i.e. memory corruption
<softcoder> so its possible its showing a bug elsewhere
<softcoder> but in itself only shows symptoms of the problem
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 · · ·