Author Topic: [fixed] r2659 crashes at exit, insufficient error report  (Read 569 times)

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
[fixed] r2659 crashes at exit, insufficient error report
« on: 18 October 2011, 00:30:51 »
On r2659, I navigated to the server list, remained there for 5 seconds,then left this menu to return to the main menu and exit by clicking on the Exit button. The game froze for some seconds, then printed this on the terminal window:

Standard output/error:

Code: [Select]
tomreyn@debby2011:~/SCM/megaglest-trunk/mk/linux$ ./dev_rungame
v3.5.3-dev-GNUC: 40502 [64bit]-Oct 18 2011 01:17:00, SVN: [Rev: 2659], [STREFLOP]
[2011-10-18 02:15:30] *ERROR* In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/menu/menu_state_custom_game.cpp::updateNetworkSlots 3313] Error detected:
Error binding socket sock = 13, err = -1, error = (Error: 98 - [Address already in use])

[2011-10-18 02:15:30] *ERROR* In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/menu/menu_state_custom_game.cpp::updateNetworkSlots 3313] Error detected:
Error binding socket sock = 13, err = -1, error = (Error: 98 - [Address already in use])

[2011-10-18 02:15:30] *ERROR* In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/menu/menu_state_custom_game.cpp::updateNetworkSlots 3313] Error detected:
Error binding socket sock = 13, err = -1, error = (Error: 98 - [Address already in use])

running threads = 2
In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleSIGSEGV Line: 633] Error detected: signal 11:
Error saved to logfile [error.log]
******************************************************
    #2 An error occurred and  will close.
Error msg = [In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleSIGSEGV Line: 633] Error detected: signal 11:
]

Please report this bug to
******************************************************

Yes, exactly like this.

The error.txt file is indeed created in the current working directory and contains exactly this:

error.txt:
Code: [Select]
[2011-10-18 02:15:53] Runtime Error information:
======================================================
In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleSIGSEGV Line: 633] Error detected: signal 11:


Further testing shows this only happens when you made the game do any kind of network connection. If you just start the game, then exit, it will do so properly - no issues there.

Note that this are two issues really:
(1) The game crashes on exit but should not.
(2) The segmentation fault reporting does not work properly.

The place to report bugs should be changed (everywhere) to http://bugs.megaglest.org since I don't think we want to do e-mail support anymore.
« Last Edit: 18 October 2011, 02:37:59 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 · · ·

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
[fixed] r2659 crashes at exit #2
« Reply #1 on: 18 October 2011, 00:37:51 »
Since this may be a different error, I'm posting a seperate bug report... Again, all I did was to go to Internet game -> custom game (i.e. host a network game with master server announcement), leave this menu immediately and exit the game. But this time I got a different output:

Code: [Select]
tomreyn@mybox $ ./dev_rungame
v3.5.3-dev-GNUC: 40502 [64bit]-Oct 18 2011 01:17:00, SVN: [Rev: 2659], [STREFLOP]
running threads = 0
tomreyn@mybox $ ./dev_rungame
terminate called after throwing an instance of 'std::bad_alloc'
terminate called recursively
  what():  v3.5.3-dev-GNUC: 40502 [64bit]-Oct 18 2011 01:17:00, SVN: [Rev: 2659], [STREFLOP]
running threads = 1

Segmentation fault detected, analyzing...

warning: Can't read pathname for load map: Eingabe-/Ausgabefehler.[New Thread 25342]
[New Thread 25240]

64    ../nptl/sysdeps/unix/sysv/linux/raise.c: Datei oder Verzeichnis nicht gefunden.
Core was generated by `./megaglest'.
Program terminated with signal 6, Aborted.
#0  0x00007f1dac052d05 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
    in ../nptl/sysdeps/unix/sysv/linux/raise.c
#0  0x00007f1dac052d05 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x00007f1dac056ab6 in abort () at abort.c:92
#2  0x00007f1dac9096b5 in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3  0x00007f1dac907926 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4  0x00007f1dac907953 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5  0x00007f1dac907a5e in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6  0x00007f1dac907e6d in operator new(unsigned long) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#7  0x00007f1dac8eae6d in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#8  0x00007f1dac8ebbfb in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_M_clone(std::allocator<char> const&, unsigned long) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#9  0x00007f1dac8ec3ac in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#10 0x00000000007f5893 in Shared::PlatformCommon::BaseThread::getDeleteSelfOnExecutionDone (this=0x1752bd0) at /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/common/base_thread.cpp:167
#11 0x00000000007f3147 in Shared::PlatformCommon::LogFileThread::execute (this=0x1752bd0) at /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/common/simple_threads.cpp:497
#12 0x0000000000824d0f in Shared::Platform::Thread::beginExecution (data=<value optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/sdl/thread.cpp:79
#13 0x00007f1daf978875 in ?? () from /usr/lib/libSDL-1.2.so.0
#14 0x00007f1daf9bb049 in ?? () from /usr/lib/libSDL-1.2.so.0
#15 0x00007f1daf751d8c in start_thread (arg=0x7f1da5af7700) at pthread_create.c:304
#16 0x00007f1dac10504d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#17 0x0000000000000000 in ?? ()

Edit: Turns out it's actually the same root cause, so I merged these threads.
« Last Edit: 18 October 2011, 02:43:14 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 · · ·

 

anything