Author Topic: [fixed] 3.8.0-beta1: SegF in type_instances/unit.cpp:2466  (Read 546 times)

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
[fixed] 3.8.0-beta1: SegF in type_instances/unit.cpp:2466
« on: 3 September 2013, 19:47:04 »
I was a client (standard 3.8.0 beta1) on a game filux hosted on his (patched/modified) SVN build, and while the game continued for Filux and Nig (a Windows client), I ran into a SegF:

Code: [Select]
megaglest v3.8.0-beta1
Compiled using: GNUC: 40403 [64bit] on: Jun 25 2013 22:02:29 platform: Linux-X64 endianness: little
SVN: [Rev: 4514] - using STREFLOP [SSE] - [no-denormals]
radeon: Acquired access to Hyper-Z.
In [/home/softcoder/Code/megaglest/trunk/source/glest_game/main/main.cpp::handleSIGSEGV Line: 5528] Error detected: signal 11:
Error saved to logfile [/home/user1/.megaglest/error.log]
[2013-09-03 21:35:45] *ERROR* In [/home/softcoder/Code/megaglest/trunk/source/glest_game/main/main.cpp::handleRuntimeError Line: 643] [In [/home/softcoder/Code/megaglest/trunk/source/glest_game/main/main.cpp::handleSIGSEGV Line: 5528] Error detected: signal 11:
] gameInitialized = 1, program = 0x1976440
[2013-09-03 21:35:46] *ERROR* In [/home/softcoder/Code/megaglest/trunk/source/glest_game/main/main.cpp::handleRuntimeError Line: 662] [In [/home/softcoder/Code/megaglest/trunk/source/glest_game/main/main.cpp::handleSIGSEGV Line: 5528] Error detected: signal 11:

Stack Trace:
./megaglest:Glest::Game::ExceptionHandler::handleRuntimeError(char const*, bool)address [0x766f97] line: 653
./megaglest:Glest::Game::handleSIGSEGV(int)address [0x76765f] line: 5533
/lib/x86_64-linux-gnu/libc.so.6:()address [0x7f236ef5b0b0] line: 0
]
Segmentation fault (core dumped)

So much, so little. And no DMP file.

But a core file. And this is the backtrace:

Code: [Select]
Program terminated with signal 11, Segmentation fault.
#0  0x0000000000000000 in ?? ()
#0  0x0000000000000000 in ?? ()
#1  0x00000000009e9ad7 in Glest::Game::Unit::updateTimedParticles (this=0x1bf0de30) at /home/softcoder/Code/megaglest/trunk/source/glest_game/type_instances/unit.cpp:2466
#2  0x0000000000aaf055 in Glest::Game::UnitUpdater::updateUnit (this=0x309ada0, unit=0x1bf0de30) at /home/softcoder/Code/megaglest/trunk/source/glest_game/world/unit_updater.cpp:133
#3  0x0000000000a9413f in Glest::Game::World::updateAllFactionUnits (this=0x309a5b0) at /home/softcoder/Code/megaglest/trunk/source/glest_game/world/world.cpp:707
#4  0x0000000000a95afc in Glest::Game::World::update (this=0x309a5b0) at /home/softcoder/Code/megaglest/trunk/source/glest_game/world/world.cpp:863
#5  0x0000000000673006 in Glest::Game::Game::update (this=0x309a570) at /home/softcoder/Code/megaglest/trunk/source/glest_game/game/game.cpp:2094
#6  0x000000000079b4fb in Glest::Game::Program::loopWorker (this=0x1976440) at /home/softcoder/Code/megaglest/trunk/source/glest_game/main/program.cpp:458
#7  0x000000000076729d in Glest::Game::ExceptionHandler::handleRuntimeError (msg=<optimized out>, getStackTraceString=true) at /home/softcoder/Code/megaglest/trunk/source/glest_game/main/main.cpp:684
#8  0x000000000076765f in Glest::Game::handleSIGSEGV (sig=<optimized out>) at /home/softcoder/Code/megaglest/trunk/source/glest_game/main/main.cpp:5532
#9  <signal handler called>
#10 0x0000000000000000 in ?? ()
#11 0x00000000009e9ad7 in Glest::Game::Unit::updateTimedParticles (this=0x1bf0de30) at /home/softcoder/Code/megaglest/trunk/source/glest_game/type_instances/unit.cpp:2466
#12 0x0000000000aaf055 in Glest::Game::UnitUpdater::updateUnit (this=0x309ada0, unit=0x1bf0de30) at /home/softcoder/Code/megaglest/trunk/source/glest_game/world/unit_updater.cpp:133
#13 0x0000000000a9413f in Glest::Game::World::updateAllFactionUnits (this=0x309a5b0) at /home/softcoder/Code/megaglest/trunk/source/glest_game/world/world.cpp:707
#14 0x0000000000a95afc in Glest::Game::World::update (this=0x309a5b0) at /home/softcoder/Code/megaglest/trunk/source/glest_game/world/world.cpp:863
#15 0x0000000000673006 in Glest::Game::Game::update (this=0x309a570) at /home/softcoder/Code/megaglest/trunk/source/glest_game/game/game.cpp:2094
#16 0x000000000079b4fb in Glest::Game::Program::loopWorker (this=0x1976440) at /home/softcoder/Code/megaglest/trunk/source/glest_game/main/program.cpp:458
#17 0x000000000078e746 in Glest::Game::glestMain (argc=<optimized out>, argv=0x7fff809483c8) at /home/softcoder/Code/megaglest/trunk/source/glest_game/main/main.cpp:5379
#18 0x0000000000792411 in Glest::Game::glestMainSEHWrapper (argc=1, argv=0x7fff809483c8) at /home/softcoder/Code/megaglest/trunk/source/glest_game/main/main.cpp:5624
#19 0x00000000007925f8 in Glest::Game::glestMainWrapper (argc=1, argv=0x7fff809483c8) at /home/softcoder/Code/megaglest/trunk/source/glest_game/main/main.cpp:5697
#20 0x00007f236ef45ea5 in __libc_start_main (main=0x7926b0 <main(int, char**)>, argc=1, ubp_av=0x7fff809483c8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff809483b8) at libc-start.c:260
#21 0x00000000005ea339 in _start ()

Does it help?
« Last Edit: 11 October 2013, 14:40:55 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 · · ·

filux

  • MegaGlest Team
  • Draco Rider
  • ********
  • Posts: 310
  • was OpenSuse x64, is Debian testing x64
    • View Profile
My version is/was of course latest svn (r.4528) and I didn't patched anything related with game's engine.
« Last Edit: 3 September 2013, 20:05:06 by filux »

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,238
    • View Profile
Is this defect reproducible? Are there specific steps that can be followed to trigger it?

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
It was the first time I ever ran into this one, and I play somewhat often, so if it is reproducible then it's very difficult to do so, and I don't know how to do it.
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,238
    • View Profile
This is likely impossible to reproduce since the latest updates in snv.

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
So let's consider it [fixed] (unless it occurs again in which case this report should be referenced or reopened).
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