Author Topic: [fixed] 3.5.3-dev+r2439: Segfault glest_game/type_instances/unit.cpp:870  (Read 1302 times)

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
This happened in a single player game against CPU which was being attacked and drawing a drawbox around some workers (possibly fighters, too). It's also possible I had already selected those units and was giving a movement order.

Code: [Select]
Core was generated by `./megaglest'.
Program terminated with signal 11, Segmentation fault.
#0  empty (this=0x215) at /usr/include/c++/4.5/bits/stl_list.h:801
801       { return this->_M_impl._M_node._M_next == &this->_M_impl._M_node; }
#0  empty (this=0x215) at /usr/include/c++/4.5/bits/stl_list.h:801
#1  Glest::Game::Unit::getCurrCommand (this=0x215) at /home/user1/SCM/megaglest-trunk/source/glest_game/type_instances/unit.cpp:870
#2  0x00000000006c5a5b in Glest::Game::CommandGroupSorter::operator< (this=0x7fffc15eb8d0, j=...) at /home/user1/SCM/megaglest-trunk/source/glest_game/type_instances/faction.cpp:46
#3  0x000000000075b509 in __unguarded_linear_insert<__gnu_cxx::__normal_iterator<Glest::Game::CommandGroupSorter*, std::vector<Glest::Game::CommandGroupSorter> > > (__first=<value optimized out>, __last=<value optimized out>) at /usr/include/c++/4.5/bits/stl_algo.h:2064
#4  std::__unguarded_insertion_sort<__gnu_cxx::__normal_iterator<Glest::Game::CommandGroupSorter*, std::vector<Glest::Game::CommandGroupSorter> > > (__first=<value optimized out>, __last=<value optimized out>) at /usr/include/c++/4.5/bits/stl_algo.h:2147
#5  0x0000000000758478 in __final_insertion_sort<__gnu_cxx::__normal_iterator<Glest::Game::CommandGroupSorter*, std::vector<Glest::Game::CommandGroupSorter> > > (this=0x7f115c4fb1b8) at /usr/include/c++/4.5/bits/stl_algo.h:2178
#6  sort<__gnu_cxx::__normal_iterator<Glest::Game::CommandGroupSorter*, std::vector<Glest::Game::CommandGroupSorter> > > (this=0x7f115c4fb1b8) at /usr/include/c++/4.5/bits/stl_algo.h:5214
#7  Glest::Game::World::updateAllFactionUnits (this=0x7f115c4fb1b8) at /home/user1/SCM/megaglest-trunk/source/glest_game/world/world.cpp:295
#8  0x0000000000758b27 in Glest::Game::World::update (this=0x7f115c4fb1b8) at /home/user1/SCM/megaglest-trunk/source/glest_game/world/world.cpp:443
#9  0x0000000000513462 in Glest::Game::Game::update (this=0x7f115c4fb180) at /home/user1/SCM/megaglest-trunk/source/glest_game/game/game.cpp:914
#10 0x0000000000591dc8 in Glest::Game::Program::loopWorker (this=0x24e6b20) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/program.cpp:337
#11 0x00000000005851ed in Glest::Game::ExceptionHandler::handleRuntimeError (msg=<value optimized out>) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/main.cpp:476
#12 0x000000000056e5b2 in Glest::Game::handleSIGSEGV (sig=<value optimized out>) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/main.cpp:594
#13 <signal handler called>
#14 empty (this=0x214) at /usr/include/c++/4.5/bits/stl_list.h:801
#15 Glest::Game::Unit::getCurrCommand (this=0x214) at /home/user1/SCM/megaglest-trunk/source/glest_game/type_instances/unit.cpp:870
#16 0x00000000006c5a5b in Glest::Game::CommandGroupSorter::operator< (this=0x7fffc15f0660, j=...) at /home/user1/SCM/megaglest-trunk/source/glest_game/type_instances/faction.cpp:46
#17 0x000000000075b509 in __unguarded_linear_insert<__gnu_cxx::__normal_iterator<Glest::Game::CommandGroupSorter*, std::vector<Glest::Game::CommandGroupSorter> > > (__first=<value optimized out>, __last=<value optimized out>) at /usr/include/c++/4.5/bits/stl_algo.h:2064
#18 std::__unguarded_insertion_sort<__gnu_cxx::__normal_iterator<Glest::Game::CommandGroupSorter*, std::vector<Glest::Game::CommandGroupSorter> > > (__first=<value optimized out>, __last=<value optimized out>) at /usr/include/c++/4.5/bits/stl_algo.h:2147
#19 0x0000000000758478 in __final_insertion_sort<__gnu_cxx::__normal_iterator<Glest::Game::CommandGroupSorter*, std::vector<Glest::Game::CommandGroupSorter> > > (this=0x7f115c4fb1b8) at /usr/include/c++/4.5/bits/stl_algo.h:2178
#20 sort<__gnu_cxx::__normal_iterator<Glest::Game::CommandGroupSorter*, std::vector<Glest::Game::CommandGroupSorter> > > (this=0x7f115c4fb1b8) at /usr/include/c++/4.5/bits/stl_algo.h:5214
#21 Glest::Game::World::updateAllFactionUnits (this=0x7f115c4fb1b8) at /home/user1/SCM/megaglest-trunk/source/glest_game/world/world.cpp:295
#22 0x0000000000758b27 in Glest::Game::World::update (this=0x7f115c4fb1b8) at /home/user1/SCM/megaglest-trunk/source/glest_game/world/world.cpp:443
#23 0x0000000000513462 in Glest::Game::Game::update (this=0x7f115c4fb180) at /home/user1/SCM/megaglest-trunk/source/glest_game/game/game.cpp:914
#24 0x0000000000591dc8 in Glest::Game::Program::loopWorker (this=0x24e6b20) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/program.cpp:337
#25 0x0000000000583473 in Glest::Game::glestMain (argc=<value optimized out>, argv=<value optimized out>) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/main.cpp:3211
#26 0x0000000000584540 in glestMainWrapper (argc=1, argv=0x7fffc15f3378) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/main.cpp:3298
#27 main (argc=1, argv=0x7fffc15f3378) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/main.cpp:3320
« Last Edit: 12 October 2011, 03:30:26 by softcoder »
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

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
It just happened again, again during interaction with enemy units. And also while I was drawbox-selecting (a single axe thrower this time).

Code: [Select]
Core was generated by `./megaglest'.
Program terminated with signal 11, Segmentation fault.
#0  empty (this=0x215) at /usr/include/c++/4.5/bits/stl_list.h:801
801       { return this->_M_impl._M_node._M_next == &this->_M_impl._M_node; }
#0  empty (this=0x215) at /usr/include/c++/4.5/bits/stl_list.h:801
#1  Glest::Game::Unit::getCurrCommand (this=0x215) at /home/user1/SCM/megaglest-trunk/source/glest_game/type_instances/unit.cpp:870
#2  0x00000000006c5a5b in Glest::Game::CommandGroupSorter::operator< (this=0x7fff3eaa7e90, j=...) at /home/user1/SCM/megaglest-trunk/source/glest_game/type_instances/faction.cpp:46
#3  0x000000000075b509 in __unguarded_linear_insert<__gnu_cxx::__normal_iterator<Glest::Game::CommandGroupSorter*, std::vector<Glest::Game::CommandGroupSorter> > > (__first=<value optimized out>, __last=<value optimized out>) at /usr/include/c++/4.5/bits/stl_algo.h:2064
#4  std::__unguarded_insertion_sort<__gnu_cxx::__normal_iterator<Glest::Game::CommandGroupSorter*, std::vector<Glest::Game::CommandGroupSorter> > > (__first=<value optimized out>, __last=<value optimized out>) at /usr/include/c++/4.5/bits/stl_algo.h:2147
#5  0x0000000000758478 in __final_insertion_sort<__gnu_cxx::__normal_iterator<Glest::Game::CommandGroupSorter*, std::vector<Glest::Game::CommandGroupSorter> > > (this=0x7fedc808c538) at /usr/include/c++/4.5/bits/stl_algo.h:2178
#6  sort<__gnu_cxx::__normal_iterator<Glest::Game::CommandGroupSorter*, std::vector<Glest::Game::CommandGroupSorter> > > (this=0x7fedc808c538) at /usr/include/c++/4.5/bits/stl_algo.h:5214
#7  Glest::Game::World::updateAllFactionUnits (this=0x7fedc808c538) at /home/user1/SCM/megaglest-trunk/source/glest_game/world/world.cpp:295
#8  0x0000000000758b27 in Glest::Game::World::update (this=0x7fedc808c538) at /home/user1/SCM/megaglest-trunk/source/glest_game/world/world.cpp:443
#9  0x0000000000513462 in Glest::Game::Game::update (this=0x7fedc808c500) at /home/user1/SCM/megaglest-trunk/source/glest_game/game/game.cpp:914
#10 0x0000000000591dc8 in Glest::Game::Program::loopWorker (this=0x270db20) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/program.cpp:337
#11 0x00000000005851ed in Glest::Game::ExceptionHandler::handleRuntimeError (msg=<value optimized out>) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/main.cpp:476
#12 0x000000000056e5b2 in Glest::Game::handleSIGSEGV (sig=<value optimized out>) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/main.cpp:594
#13 <signal handler called>
#14 empty (this=0x215) at /usr/include/c++/4.5/bits/stl_list.h:801
#15 Glest::Game::Unit::getCurrCommand (this=0x215) at /home/user1/SCM/megaglest-trunk/source/glest_game/type_instances/unit.cpp:870
#16 0x00000000006c5a5b in Glest::Game::CommandGroupSorter::operator< (this=0x7fff3eaacc30, j=...) at /home/user1/SCM/megaglest-trunk/source/glest_game/type_instances/faction.cpp:46
#17 0x000000000075b509 in __unguarded_linear_insert<__gnu_cxx::__normal_iterator<Glest::Game::CommandGroupSorter*, std::vector<Glest::Game::CommandGroupSorter> > > (__first=<value optimized out>, __last=<value optimized out>) at /usr/include/c++/4.5/bits/stl_algo.h:2064
#18 std::__unguarded_insertion_sort<__gnu_cxx::__normal_iterator<Glest::Game::CommandGroupSorter*, std::vector<Glest::Game::CommandGroupSorter> > > (__first=<value optimized out>, __last=<value optimized out>) at /usr/include/c++/4.5/bits/stl_algo.h:2147
#19 0x0000000000758478 in __final_insertion_sort<__gnu_cxx::__normal_iterator<Glest::Game::CommandGroupSorter*, std::vector<Glest::Game::CommandGroupSorter> > > (this=0x7fedc808c538) at /usr/include/c++/4.5/bits/stl_algo.h:2178
#20 sort<__gnu_cxx::__normal_iterator<Glest::Game::CommandGroupSorter*, std::vector<Glest::Game::CommandGroupSorter> > > (this=0x7fedc808c538) at /usr/include/c++/4.5/bits/stl_algo.h:5214
#21 Glest::Game::World::updateAllFactionUnits (this=0x7fedc808c538) at /home/user1/SCM/megaglest-trunk/source/glest_game/world/world.cpp:295
#22 0x0000000000758b27 in Glest::Game::World::update (this=0x7fedc808c538) at /home/user1/SCM/megaglest-trunk/source/glest_game/world/world.cpp:443
#23 0x0000000000513462 in Glest::Game::Game::update (this=0x7fedc808c500) at /home/user1/SCM/megaglest-trunk/source/glest_game/game/game.cpp:914
#24 0x0000000000591dc8 in Glest::Game::Program::loopWorker (this=0x270db20) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/program.cpp:337
#25 0x0000000000583473 in Glest::Game::glestMain (argc=<value optimized out>, argv=<value optimized out>) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/main.cpp:3211
#26 0x0000000000584540 in glestMainWrapper (argc=1, argv=0x7fff3eaaf948) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/main.cpp:3298
#27 main (argc=1, argv=0x7fff3eaaf948) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/main.cpp:3320
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
Try rev 2440 and let me know if it still crashes at this spot

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
I tried once with r2440, and it did not crash there, but it froze. The couple of backtraces I came up with while the process was still active look related (so I'm expanding on this thread):

Code: [Select]
[Thread debugging using libthread_db enabled]
[New Thread 0x7fde11f88700 (LWP 8852)]
[New Thread 0x7fde12789700 (LWP 8851)]
[New Thread 0x7fde14cc8700 (LWP 8363)]
[New Thread 0x7fde154c9700 (LWP 8362)]
[New Thread 0x7fde16f8a700 (LWP 8360)]
[New Thread 0x7fde1778b700 (LWP 8358)]
[New Thread 0x7fde1378b700 (LWP 8357)]
0x00000000006c6950 in Glest::Game::CommandGroupSorter::operator< (this=<value optimized out>, j=<value optimized out>) at /home/user1/SCM/megaglest-trunk/source/glest_game/type_instances/faction.cpp:77
77 }
#0  0x00000000006c6950 in Glest::Game::CommandGroupSorter::operator< (this=<value optimized out>, j=<value optimized out>) at /home/user1/SCM/megaglest-trunk/source/glest_game/type_instances/faction.cpp:77
#1  0x0000000000761017 in __unguarded_partition<__gnu_cxx::__normal_iterator<Glest::Game::CommandGroupSorter*, std::vector<Glest::Game::CommandGroupSorter> >, Glest::Game::CommandGroupSorter> (__first=..., __last=<value optimized out>, __depth_limit=9) at /usr/include/c++/4.5/bits/stl_algo.h:2208
#2  __unguarded_partition_pivot<__gnu_cxx::__normal_iterator<Glest::Game::CommandGroupSorter*, std::vector<Glest::Game::CommandGroupSorter> > > (__first=..., __last=<value optimized out>, __depth_limit=9) at /usr/include/c++/4.5/bits/stl_algo.h:2249
#3  std::__introsort_loop<__gnu_cxx::__normal_iterator<Glest::Game::CommandGroupSorter*, std::vector<Glest::Game::CommandGroupSorter> >, long> (__first=..., __last=<value optimized out>, __depth_limit=9) at /usr/include/c++/4.5/bits/stl_algo.h:2280
#4  0x000000000076105a in std::__introsort_loop<__gnu_cxx::__normal_iterator<Glest::Game::CommandGroupSorter*, std::vector<Glest::Game::CommandGroupSorter> >, long> (__first=..., __last=<value optimized out>, __depth_limit=10) at /usr/include/c++/4.5/bits/stl_algo.h:2281
#5  0x000000000076105a in std::__introsort_loop<__gnu_cxx::__normal_iterator<Glest::Game::CommandGroupSorter*, std::vector<Glest::Game::CommandGroupSorter> >, long> (__first=..., __last=<value optimized out>, __depth_limit=11) at /usr/include/c++/4.5/bits/stl_algo.h:2281
#6  0x00000000007592d7 in sort<__gnu_cxx::__normal_iterator<Glest::Game::CommandGroupSorter*, std::vector<Glest::Game::CommandGroupSorter> > > (this=0x7fde0c626288) at /usr/include/c++/4.5/bits/stl_algo.h:5212
#7  Glest::Game::World::updateAllFactionUnits (this=0x7fde0c626288) at /home/user1/SCM/megaglest-trunk/source/glest_game/world/world.cpp:295
#8  0x0000000000759a47 in Glest::Game::World::update (this=0x7fde0c626288) at /home/user1/SCM/megaglest-trunk/source/glest_game/world/world.cpp:443
#9  0x00000000005134b2 in Glest::Game::Game::update (this=0x7fde0c626250) at /home/user1/SCM/megaglest-trunk/source/glest_game/game/game.cpp:914
#10 0x0000000000591e18 in Glest::Game::Program::loopWorker (this=0x274bb20) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/program.cpp:337
#11 0x00000000005834c3 in Glest::Game::glestMain (argc=<value optimized out>, argv=<value optimized out>) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/main.cpp:3211
#12 0x0000000000584590 in glestMainWrapper (argc=1, argv=0x7fff50587f58) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/main.cpp:3298
#13 main (argc=1, argv=0x7fff50587f58) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/main.cpp:3320

[Thread debugging using libthread_db enabled]
[New Thread 0x7fde11f88700 (LWP 8852)]
[New Thread 0x7fde12789700 (LWP 8851)]
[New Thread 0x7fde14cc8700 (LWP 8363)]
[New Thread 0x7fde154c9700 (LWP 8362)]
[New Thread 0x7fde16f8a700 (LWP 8360)]
[New Thread 0x7fde1778b700 (LWP 8358)]
[New Thread 0x7fde1378b700 (LWP 8357)]
Glest::Game::CommandGroupSorter::operator< (this=0x805c405f9150, j=...) at /home/user1/SCM/megaglest-trunk/source/glest_game/type_instances/faction.cpp:37
37 bool CommandGroupSorter::operator< (const CommandGroupSorter &j) const {
#0  Glest::Game::CommandGroupSorter::operator< (this=0x805c405f9150, j=...) at /home/user1/SCM/megaglest-trunk/source/glest_game/type_instances/faction.cpp:37
#1  0x0000000000761017 in __unguarded_partition<__gnu_cxx::__normal_iterator<Glest::Game::CommandGroupSorter*, std::vector<Glest::Game::CommandGroupSorter> >, Glest::Game::CommandGroupSorter> (__first=..., __last=<value optimized out>, __depth_limit=9) at /usr/include/c++/4.5/bits/stl_algo.h:2208
#2  __unguarded_partition_pivot<__gnu_cxx::__normal_iterator<Glest::Game::CommandGroupSorter*, std::vector<Glest::Game::CommandGroupSorter> > > (__first=..., __last=<value optimized out>, __depth_limit=9) at /usr/include/c++/4.5/bits/stl_algo.h:2249
#3  std::__introsort_loop<__gnu_cxx::__normal_iterator<Glest::Game::CommandGroupSorter*, std::vector<Glest::Game::CommandGroupSorter> >, long> (__first=..., __last=<value optimized out>, __depth_limit=9) at /usr/include/c++/4.5/bits/stl_algo.h:2280
#4  0x000000000076105a in std::__introsort_loop<__gnu_cxx::__normal_iterator<Glest::Game::CommandGroupSorter*, std::vector<Glest::Game::CommandGroupSorter> >, long> (__first=..., __last=<value optimized out>, __depth_limit=10) at /usr/include/c++/4.5/bits/stl_algo.h:2281
#5  0x000000000076105a in std::__introsort_loop<__gnu_cxx::__normal_iterator<Glest::Game::CommandGroupSorter*, std::vector<Glest::Game::CommandGroupSorter> >, long> (__first=..., __last=<value optimized out>, __depth_limit=11) at /usr/include/c++/4.5/bits/stl_algo.h:2281
#6  0x00000000007592d7 in sort<__gnu_cxx::__normal_iterator<Glest::Game::CommandGroupSorter*, std::vector<Glest::Game::CommandGroupSorter> > > (this=0x7fde0c626288) at /usr/include/c++/4.5/bits/stl_algo.h:5212
#7  Glest::Game::World::updateAllFactionUnits (this=0x7fde0c626288) at /home/user1/SCM/megaglest-trunk/source/glest_game/world/world.cpp:295
#8  0x0000000000759a47 in Glest::Game::World::update (this=0x7fde0c626288) at /home/user1/SCM/megaglest-trunk/source/glest_game/world/world.cpp:443
#9  0x00000000005134b2 in Glest::Game::Game::update (this=0x7fde0c626250) at /home/user1/SCM/megaglest-trunk/source/glest_game/game/game.cpp:914
#10 0x0000000000591e18 in Glest::Game::Program::loopWorker (this=0x274bb20) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/program.cpp:337
#11 0x00000000005834c3 in Glest::Game::glestMain (argc=<value optimized out>, argv=<value optimized out>) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/main.cpp:3211
#12 0x0000000000584590 in glestMainWrapper (argc=1, argv=0x7fff50587f58) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/main.cpp:3298
#13 main (argc=1, argv=0x7fff50587f58) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/main.cpp:3320

[Thread debugging using libthread_db enabled]
[New Thread 0x7fde11f88700 (LWP 8852)]
[New Thread 0x7fde12789700 (LWP 8851)]
[New Thread 0x7fde14cc8700 (LWP 8363)]
[New Thread 0x7fde154c9700 (LWP 8362)]
[New Thread 0x7fde16f8a700 (LWP 8360)]
[New Thread 0x7fde1778b700 (LWP 8358)]
[New Thread 0x7fde1378b700 (LWP 8357)]
0x00000000006c68e3 in Glest::Game::CommandGroupSorter::operator< (this=0x805d51a2dc70, j=...) at /home/user1/SCM/megaglest-trunk/source/glest_game/type_instances/faction.cpp:39
39 if(j.unit == NULL || j.unit->isAlive() == false) {
#0  0x00000000006c68e3 in Glest::Game::CommandGroupSorter::operator< (this=0x805d51a2dc70, j=...) at /home/user1/SCM/megaglest-trunk/source/glest_game/type_instances/faction.cpp:39
#1  0x0000000000761017 in __unguarded_partition<__gnu_cxx::__normal_iterator<Glest::Game::CommandGroupSorter*, std::vector<Glest::Game::CommandGroupSorter> >, Glest::Game::CommandGroupSorter> (__first=..., __last=<value optimized out>, __depth_limit=9) at /usr/include/c++/4.5/bits/stl_algo.h:2208
#2  __unguarded_partition_pivot<__gnu_cxx::__normal_iterator<Glest::Game::CommandGroupSorter*, std::vector<Glest::Game::CommandGroupSorter> > > (__first=..., __last=<value optimized out>, __depth_limit=9) at /usr/include/c++/4.5/bits/stl_algo.h:2249
#3  std::__introsort_loop<__gnu_cxx::__normal_iterator<Glest::Game::CommandGroupSorter*, std::vector<Glest::Game::CommandGroupSorter> >, long> (__first=..., __last=<value optimized out>, __depth_limit=9) at /usr/include/c++/4.5/bits/stl_algo.h:2280
#4  0x000000000076105a in std::__introsort_loop<__gnu_cxx::__normal_iterator<Glest::Game::CommandGroupSorter*, std::vector<Glest::Game::CommandGroupSorter> >, long> (__first=..., __last=<value optimized out>, __depth_limit=10) at /usr/include/c++/4.5/bits/stl_algo.h:2281
#5  0x000000000076105a in std::__introsort_loop<__gnu_cxx::__normal_iterator<Glest::Game::CommandGroupSorter*, std::vector<Glest::Game::CommandGroupSorter> >, long> (__first=..., __last=<value optimized out>, __depth_limit=11) at /usr/include/c++/4.5/bits/stl_algo.h:2281
#6  0x00000000007592d7 in sort<__gnu_cxx::__normal_iterator<Glest::Game::CommandGroupSorter*, std::vector<Glest::Game::CommandGroupSorter> > > (this=0x7fde0c626288) at /usr/include/c++/4.5/bits/stl_algo.h:5212
#7  Glest::Game::World::updateAllFactionUnits (this=0x7fde0c626288) at /home/user1/SCM/megaglest-trunk/source/glest_game/world/world.cpp:295
#8  0x0000000000759a47 in Glest::Game::World::update (this=0x7fde0c626288) at /home/user1/SCM/megaglest-trunk/source/glest_game/world/world.cpp:443
#9  0x00000000005134b2 in Glest::Game::Game::update (this=0x7fde0c626250) at /home/user1/SCM/megaglest-trunk/source/glest_game/game/game.cpp:914
#10 0x0000000000591e18 in Glest::Game::Program::loopWorker (this=0x274bb20) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/program.cpp:337
#11 0x00000000005834c3 in Glest::Game::glestMain (argc=<value optimized out>, argv=<value optimized out>) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/main.cpp:3211
#12 0x0000000000584590 in glestMainWrapper (argc=1, argv=0x7fff50587f58) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/main.cpp:3298
#13 main (argc=1, argv=0x7fff50587f58) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/main.cpp:3320

[Thread debugging using libthread_db enabled]
[New Thread 0x7fde11f88700 (LWP 8852)]
[New Thread 0x7fde12789700 (LWP 8851)]
[New Thread 0x7fde14cc8700 (LWP 8363)]
[New Thread 0x7fde154c9700 (LWP 8362)]
[New Thread 0x7fde16f8a700 (LWP 8360)]
[New Thread 0x7fde1778b700 (LWP 8358)]
[New Thread 0x7fde1378b700 (LWP 8357)]
Glest::Game::CommandGroupSorter::operator< (this=<value optimized out>, j=...) at /home/user1/SCM/megaglest-trunk/source/glest_game/type_instances/faction.cpp:77
77 }
#0  Glest::Game::CommandGroupSorter::operator< (this=<value optimized out>, j=...) at /home/user1/SCM/megaglest-trunk/source/glest_game/type_instances/faction.cpp:77
#1  0x0000000000761017 in __unguarded_partition<__gnu_cxx::__normal_iterator<Glest::Game::CommandGroupSorter*, std::vector<Glest::Game::CommandGroupSorter> >, Glest::Game::CommandGroupSorter> (__first=..., __last=<value optimized out>, __depth_limit=9) at /usr/include/c++/4.5/bits/stl_algo.h:2208
#2  __unguarded_partition_pivot<__gnu_cxx::__normal_iterator<Glest::Game::CommandGroupSorter*, std::vector<Glest::Game::CommandGroupSorter> > > (__first=..., __last=<value optimized out>, __depth_limit=9) at /usr/include/c++/4.5/bits/stl_algo.h:2249
#3  std::__introsort_loop<__gnu_cxx::__normal_iterator<Glest::Game::CommandGroupSorter*, std::vector<Glest::Game::CommandGroupSorter> >, long> (__first=..., __last=<value optimized out>, __depth_limit=9) at /usr/include/c++/4.5/bits/stl_algo.h:2280
#4  0x000000000076105a in std::__introsort_loop<__gnu_cxx::__normal_iterator<Glest::Game::CommandGroupSorter*, std::vector<Glest::Game::CommandGroupSorter> >, long> (__first=..., __last=<value optimized out>, __depth_limit=10) at /usr/include/c++/4.5/bits/stl_algo.h:2281
#5  0x000000000076105a in std::__introsort_loop<__gnu_cxx::__normal_iterator<Glest::Game::CommandGroupSorter*, std::vector<Glest::Game::CommandGroupSorter> >, long> (__first=..., __last=<value optimized out>, __depth_limit=11) at /usr/include/c++/4.5/bits/stl_algo.h:2281
#6  0x00000000007592d7 in sort<__gnu_cxx::__normal_iterator<Glest::Game::CommandGroupSorter*, std::vector<Glest::Game::CommandGroupSorter> > > (this=0x7fde0c626288) at /usr/include/c++/4.5/bits/stl_algo.h:5212
#7  Glest::Game::World::updateAllFactionUnits (this=0x7fde0c626288) at /home/user1/SCM/megaglest-trunk/source/glest_game/world/world.cpp:295
#8  0x0000000000759a47 in Glest::Game::World::update (this=0x7fde0c626288) at /home/user1/SCM/megaglest-trunk/source/glest_game/world/world.cpp:443
#9  0x00000000005134b2 in Glest::Game::Game::update (this=0x7fde0c626250) at /home/user1/SCM/megaglest-trunk/source/glest_game/game/game.cpp:914
#10 0x0000000000591e18 in Glest::Game::Program::loopWorker (this=0x274bb20) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/program.cpp:337
#11 0x00000000005834c3 in Glest::Game::glestMain (argc=<value optimized out>, argv=<value optimized out>) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/main.cpp:3211
#12 0x0000000000584590 in glestMainWrapper (argc=1, argv=0x7fff50587f58) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/main.cpp:3298
#13 main (argc=1, argv=0x7fff50587f58) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/main.cpp:3320

When I finally killed the process by seding a SEGFAULT signal (by SSHing in, since there was no other option as I was running full screen and ALT-Enter did not work at this time), I got this backtrace:

Code: [Select]
Core was generated by `./megaglest'.
Program terminated with signal 6, Aborted.
#0  0x00007fde1dce6d05 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#0  0x00007fde1dce6d05 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fde1dceaab6 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007fde1dcdf7c5 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
#3  0x000000000080c055 in Shared::Graphics::Gl::ModelRendererGl::begin (this=0x275d7a0, renderNormals=<value optimized out>, renderTextures=true, renderColors=<value optimized out>, meshCallback=0x7fde1378b700) at /home/user1/SCM/megaglest-trunk/source/shared_lib/sources/graphics/gl/model_renderer_gl.cpp:38
#4  0x0000000000559267 in Glest::Game::Renderer::renderUnits (this=0xad8920, renderFps=<value optimized out>) at /home/user1/SCM/megaglest-trunk/source/glest_game/graphics/renderer.cpp:2994
#5  0x0000000000509189 in Glest::Game::Game::render3d (this=0x7fde0c626250) at /home/user1/SCM/megaglest-trunk/source/glest_game/game/game.cpp:1899
#6  0x0000000000516f2e in Glest::Game::Game::renderWorker (this=0x7fde0c626250) at /home/user1/SCM/megaglest-trunk/source/glest_game/game/game.cpp:1066
#7  0x00000000005917bd in Glest::Game::Program::loopWorker (this=0x274bb20) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/program.cpp:315
#8  0x000000000058523d in Glest::Game::ExceptionHandler::handleRuntimeError (msg=<value optimized out>) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/main.cpp:476
#9  0x000000000056e602 in Glest::Game::handleSIGSEGV (sig=<value optimized out>) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/main.cpp:594
#10 <signal handler called>
#11 0x00007fde20f8f4bd in nanosleep () from /lib/x86_64-linux-gnu/libpthread.so.0
#12 0x00007fde211f23eb in SDL_Delay () from /usr/lib/libSDL-1.2.so.0
#13 0x00007fde211f2422 in ?? () from /usr/lib/libSDL-1.2.so.0
#14 0x00007fde211ad875 in ?? () from /usr/lib/libSDL-1.2.so.0
#15 0x00007fde211f0049 in ?? () from /usr/lib/libSDL-1.2.so.0
#16 0x00007fde20f86d8c in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#17 0x00007fde1dd9904d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#18 0x0000000000000000 in ?? ()
[/code]

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
Ok fixed some strangel / nasty memory issues, try latest svn and see how it goes

james876

  • Guest
I tested the svn-2347 found that the problem has been some improvement, but in the fierce battle, the memory leak still exists. Fps suddenly drop from 60 to 12fps, thank you!
 BTW: I had a single game using two ultra cpu and two mega cpu.
 I and one of the mega cpu is allied.

 

anything