Author Topic: [fixed] r2646: segfault at exit  (Read 766 times)

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
[fixed] r2646: segfault at exit
« on: 13 October 2011, 23:48:53 »
Code: [Select]
$ ./dev_rungame
v3.5.3-dev-GNUC: 40502 [64bit]-Oct 14 2011 01:29:28, SVN: [Rev: 2646], [STREFLOP]
[2011-10-14 01:44:51] *ERROR* In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/menu/menu_state_custom_game.cpp::updateNetworkSlots 3233] Error detected:
Error binding socket sock = 12, err = -1, error = (Error: 98 - [Address already in use])

[2011-10-14 01:44:51] *ERROR* In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/menu/menu_state_custom_game.cpp::updateNetworkSlots 3233] Error detected:
Error binding socket sock = 12, err = -1, error = (Error: 98 - [Address already in use])

[2011-10-14 01:44:51] *ERROR* In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/menu/menu_state_custom_game.cpp::updateNetworkSlots 3233] Error detected:
Error binding socket sock = 12, 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: 632] 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: 632] Error detected: signal 11:
]

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

Segmentation fault detected, analyzing...

warning: Can't read pathname for load map: Eingabe-/Ausgabefehler.
[New Thread 27296]
[New Thread 27413]
527    ../sysdeps/x86_64/memcpy.S: Datei oder Verzeichnis nicht gefunden.
Core was generated by `./megaglest'.
Program terminated with signal 11, Segmentation fault.
#0  memcpy () at ../sysdeps/x86_64/memcpy.S:527
    in ../sysdeps/x86_64/memcpy.S
#0  memcpy () at ../sysdeps/x86_64/memcpy.S:527
#1  0x00007fb5c1564c46 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
#2  0x00007fb5c15653ac 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
#3  0x00000000007f8da3 in Shared::PlatformCommon::BaseThread::getExecutingTask (this=0x12e39b0) at /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/common/base_thread.cpp:157
#4  0x00000000007eb468 in Shared::PlatformCommon::LogFileThread::canShutdown (this=0x12e39b0, deleteSelfIfShutdownDelayed=false) at /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/common/simple_threads.cpp:517
#5  0x0000000000801a59 in Shared::Util::SystemFlags::Close () at /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/util/util.cpp:322
#6  0x000000000059b894 in Glest::Game::cleanupProcessObjects () at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp:155
#7  0x00000000005aac3b in Glest::Game::ExceptionHandler::handleRuntimeError (msg=<value optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp:570
#8  0x000000000059c192 in Glest::Game::handleSIGSEGV (sig=<value optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp:635
#9  <signal handler called>
#10 memcpy () at ../sysdeps/x86_64/memcpy.S:527
#11 0x00007fb5c1564c46 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
#12 0x00007fb5c15653ac 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
#13 0x00000000007f8da3 in Shared::PlatformCommon::BaseThread::getExecutingTask (this=0x12e39b0) at /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/common/base_thread.cpp:157
#14 0x00000000007eb468 in Shared::PlatformCommon::LogFileThread::canShutdown (this=0x12e39b0, deleteSelfIfShutdownDelayed=false) at /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/common/simple_threads.cpp:517
#15 0x0000000000801a59 in Shared::Util::SystemFlags::Close () at /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/util/util.cpp:322
#16 0x0000000000801e89 in Shared::Util::SystemFlags::~SystemFlags (this=<value optimized out>, __in_chrg=<value optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/util/util.cpp:303
#17 0x00007fb5c0cd1961 in __run_exit_handlers (status=0) at exit.c:78
#18 exit (status=0) at exit.c:100
#19 0x00007fb5c0cb6f06 in __libc_start_main (main=0x5a7460 <main(int, char**)>, argc=1, ubp_av=0x7fff360b8d28, init=<value optimized out>, fini=<value optimized out>, rtld_fini=<value optimized out>, stack_end=0x7fff360b8d18) at libc-start.c:258
#20 0x00000000004a2009 in _start ()

I'm not sure what exaclty happpened there, but the game froze and ultimately segfaulted when I quit it after I had tried to host but the post was (factually) blocked so it could not bind.
« Last Edit: 18 October 2011, 23:47:40 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
Re: r2646: segfault at exit
« Reply #1 on: 14 October 2011, 00:44:16 »
And another... this time it happened after I disconnected off a dedicated server and, again, clicked on the main menus' "exit" button.

Code: [Select]
$ ./dev_rungame
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
v3.5.3-dev-GNUC: 40502 [64bit]-Oct 14 2011 01:29:28, SVN: [Rev: 2646], [STREFLOP]
running threads = 1

Segmentation fault detected, analyzing...

[New Thread 3326]
[New Thread 3579]

warning: Can't read pathname for load map: Eingabe-/Ausgabefehler.
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  0x00007ffa5f1e4d05 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
    in ../nptl/sysdeps/unix/sysv/linux/raise.c
#0  0x00007ffa5f1e4d05 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x00007ffa5f1e8ab6 in abort () at abort.c:92
#2  0x00007ffa5fa9b6dd in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3  0x00007ffa5fa99926 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4  0x00007ffa5fa99953 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5  0x00007ffa5fa99a5e in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6  0x00007ffa5fa99e6d in operator new(unsigned long) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#7  0x00007ffa5fa7ce6d 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  0x00007ffa5fa7dbfb 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  0x00007ffa5fa7e3ac 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 0x00000000007f8da3 in Shared::PlatformCommon::BaseThread::getExecutingTask (this=0x2e64ad0) at /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/common/base_thread.cpp:157
#11 0x00000000007eb468 in Shared::PlatformCommon::LogFileThread::canShutdown (this=0x2e64ad0, deleteSelfIfShutdownDelayed=false) at /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/common/simple_threads.cpp:517
#12 0x0000000000801a59 in Shared::Util::SystemFlags::Close () at /home/user1/SCM/megaglest-trunk/source/shared_lib/sources/util/util.cpp:322
#13 0x0000000000801e89 in Shared::Util::SystemFlags::~SystemFlags (this=<value optimized out>, __in_chrg=<value optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/util/util.cpp:303
#14 0x00007ffa5f1ea961 in __run_exit_handlers (status=0) at exit.c:78
#15 exit (status=0) at exit.c:100
#16 0x00007ffa5f1cff06 in __libc_start_main (main=0x5a7460 <main(int, char**)>, argc=1, ubp_av=0x7fff432b7708, init=<value optimized out>, fini=<value optimized out>, rtld_fini=<value optimized out>, stack_end=0x7fff432b76f8) at libc-start.c:258
#17 0x00000000004a2009 in _start ()
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 · · ·