Author Topic: [fixed] crash when entering custom game menu ( rev 4460)  (Read 1106 times)

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Its not reproducable, but as we already had trouble with this I post the stacktrace

Code: [Select]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `./megaglest'.
Program terminated with signal 6, Aborted.
#0  0x00007fd03eb0a425 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#0  0x00007fd03eb0a425 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fd03eb0db8b in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007fd03f45c69d in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3  0x00007fd03f45a846 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4  0x00007fd03f45a873 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5  0x00007fd03f45b28f in __cxa_pure_virtual () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6  0x0000000000ab626f in Shared::Platform::Thread::beginExecution (data=<optimized out>) at /home/tscharn/glest/megaglest/source/shared_lib/sources/platform/sdl/thread.cpp:183
#7  0x00007fd04268dfd5 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#8  0x00007fd0426d1999 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#9  0x00007fd042465e9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#10 0x00007fd03ebc7ccd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#11 0x0000000000000000 in ?? ()

Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: crash when entering custom game menu ( rev 4460)
« Reply #1 on: 17 June 2013, 23:22:48 »
as this looks like the same, this is what happend to me when entering
lobby->custom game-> crash

Code: [Select]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `./megaglest'.
Program terminated with signal 6, Aborted.
#0  0x00007fd03eb0a425 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#0  0x00007fd03eb0a425 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fd03eb0db8b in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007fd03f45c69d in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3  0x00007fd03f45a846 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4  0x00007fd03f45a873 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5  0x00007fd03f45b28f in __cxa_pure_virtual () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6  0x0000000000ab626f in __exchange_and_add_single (__val=-1, __mem=0xfffffffffffffff8) at /usr/include/c++/4.6/ext/atomicity.h:67
#7  __exchange_and_add_dispatch (__val=-1, __mem=0xfffffffffffffff8) at /usr/include/c++/4.6/ext/atomicity.h:83
#8  _M_dispose (__a=..., this=0x244f) at /usr/include/c++/4.6/bits/basic_string.h:240
#9  ~basic_string (this=0x7fcff3ffee50, __in_chrg=<optimized out>) at /usr/include/c++/4.6/bits/basic_string.h:534
#10 Lock (this=0x7fcff3ffee20) at /home/tscharn/glest/megaglest/source/shared_lib/include/platform/sdl/thread.h:165
#11 MutexSafeWrapper (ownerId=..., mutex=<optimized out>, this=0x7fcff3ffee20) at /home/tscharn/glest/megaglest/source/shared_lib/include/platform/sdl/thread.h:136
#12 addThread (thread=0x0, this=0x7fcffc000d10) at /home/tscharn/glest/megaglest/source/shared_lib/sources/platform/sdl/thread.cpp:70
#13 Shared::Platform::Thread::queueAutoCleanThread (this=0xab6260) at /home/tscharn/glest/megaglest/source/shared_lib/sources/platform/sdl/thread.cpp:202
#14 0x0000000000000000 in ?? ()
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: crash when entering custom game menu ( rev 4460)
« Reply #2 on: 18 June 2013, 20:55:59 »
I just ran into this on r4460, supposedly the same:
Code: [Select]
$ ./megaglest --starthost
megaglest v3.8-dev
Compiled using: GNUC: 40703 [64bit] on: Jun 16 2013 18:04:28 platform: Linux-X64 endianness: little
SVN: [Rev: 4460] - using STREFLOP [SSE] - [no-denormals]
pure virtual method called
terminate called without an active exception
radeon: Acquired access to Hyper-Z.

======= In MinidumpCallback...

***ERROR details captured:
Crash minidump folder: /home/tomreyn/.megaglest/
file: /home/tomreyn/.megaglest//05bb219c-3faf-2136-328b9929-5b9a5303.dmp
Succeeded: 1
******************************************************
    An unhandled error was detected.

A crash dump file has been created in the folder:
/home/tomreyn/.megaglest/
Crash dump filename is: /home/tomreyn/.megaglest//05bb219c-3faf-2136-328b9929-5b9a5303.dmp
******************************************************

Segmentation fault detected, analyzing...

warning: Can't read pathname for load map: Eingabe-/Ausgabefehler.[New LWP 18649]
[New LWP 18632]
[New LWP 18634]
[New LWP 18639]
[New LWP 18636]
[New LWP 18640]
[New LWP 18641]
[New LWP 18644]
[New LWP 18637]
[New LWP 18654]
[New LWP 18643]
[New LWP 18646]
[New LWP 18648]
[New LWP 18645]
[New LWP 18642]
[New LWP 18647]
[New LWP 18630]
[New LWP 18653]

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7fffaabfe000
56    ../nptl/sysdeps/unix/sysv/linux/raise.c: File or directory not found.
Core was generated by `./megaglest --starthost'.
Program terminated with signal 6, Aborted.
#0  0x00007ff0bb491037 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#0  0x00007ff0bb491037 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00007ff0bb494698 in __GI_abort () at abort.c:90
#2  0x00007ff0bbd9de8d in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3  0x00007ff0bbd9bf76 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4  0x00007ff0bbd9bfa3 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5  0x00007ff0bbd9cacf in __cxa_pure_virtual () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6  0x0000000000a2e0ba in Shared::Platform::Thread::beginExecution (data=0x7ff080000a90) at /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/sdl/thread.cpp:183
#7  0x00007ff0bf23b196 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#8  0x00007ff0bf27be49 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#9  0x00007ff0bf012f8e in start_thread (arg=0x7ff07b7fe700) at pthread_create.c:311
#10 0x00007ff0bb553e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

It doesn't happen every time I start with --starthost, but ~ 50%.
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
Re: crash when entering custom game menu ( rev 4460)
« Reply #3 on: 18 June 2013, 22:26:31 »
Try rev 4463

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: crash when entering custom game menu ( rev 4460)
« Reply #4 on: 21 June 2013, 10:20:59 »
For me, this is still happening on r4476 just by starting a couple times (took me two tries) with --starthost:

Code: [Select]
Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7fff004ca000
56    ../nptl/sysdeps/unix/sysv/linux/raise.c: File or directory not found.
Core was generated by `./megaglest --starthost'.
Program terminated with signal 6, Aborted.
#0  0x00007fc70ade4037 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#0  0x00007fc70ade4037 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00007fc70ade7698 in __GI_abort () at abort.c:90
#2  0x00007fc70b6f0e8d in __gnu_cxx::__verbose_terminate_handler () at ../../../../src/libstdc++-v3/libsupc++/vterminate.cc:95
#3  0x00007fc70b6eef76 in __cxxabiv1::__terminate (handler=<optimized out>) at ../../../../src/libstdc++-v3/libsupc++/eh_terminate.cc:40
#4  0x00007fc70b6eefa3 in std::terminate () at ../../../../src/libstdc++-v3/libsupc++/eh_terminate.cc:50
#5  0x00007fc70b6efacf in __cxxabiv1::__cxa_pure_virtual () at ../../../../src/libstdc++-v3/libsupc++/pure.cc:50
#6  0x0000000000a320b2 in Shared::Platform::Thread::beginExecution (data=data@entry=0x7fc6c80009c0) at /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/sdl/thread.cpp:196
#7  0x00007fc70eb8e196 in SDL_RunThread (data=0x7fc6c8001ab0) at ../../src/thread/SDL_thread.c:204
#8  0x00007fc70ebcee49 in RunThread (data=<optimized out>) at ../../src/thread/pthread/SDL_systhread.c:47
#9  0x00007fc70e965f8e in start_thread (arg=0x7fc6d27fc700) at pthread_create.c:311
#10 0x00007fc70aea6e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113
« Last Edit: 21 June 2013, 10:51:12 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 · · ·

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: crash when entering custom game menu ( rev 4460)
« Reply #5 on: 21 June 2013, 22:59:52 »
should be fixed by 4491

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: crash when entering custom game menu ( rev 4460)
« Reply #6 on: 22 June 2013, 00:25:02 »
I'm still able to reproduce this but clicking the window decorator's X icon while MG is still starting up. This may or may not be acceptable behavior, not sure.

Code: [Select]
megaglest v3.8-dev
Compiled using: GNUC: 40703 [64bit] on: Jun 22 2013 01:13:17 platform: Linux-X64 endianness: little
SVN: [Rev: 4491M] - using STREFLOP [SSE] - [no-denormals]
[2013-06-22 01:16:53] *ERROR* In [/home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/common/simple_threads.cpp::execute Line: 518] Error [In [thread.cpp::p Line: 442] mutex == NULL refCount = 0 owner [/home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/common/simple_threads.cpp_363] deleteownerId [/home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/common/simple_threads.cpp_363]
Stack Trace:
./megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::string const&, bool)address [0xa32b82] line: 237
./megaglest:Shared::Platform::Mutex::p()address [0xa3319a] line: 443
./megaglest:Shared::PlatformCommon::SimpleTaskThread::execute()address [0x9e548b] line: 491
./megaglest:Shared::Platform::Thread::beginExecution(void*)address [0xa37aba] line: 240
/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0:()address [0x7f67b1505196] line: 0
/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0:()address [0x7f67b1545e49] line: 0
/lib/x86_64-linux-gnu/libpthread.so.0:()address [0x7f67b12dcf8e] line: 0
/lib/x86_64-linux-gnu/libc.so.6:clone()address [0x7f67ad81de1d] line: 0
]
terminate called after throwing an instance of 'Shared::Platform::megaglest_runtime_error'
  what():  In [thread.cpp::p Line: 442] mutex == NULL refCount = 0 owner [/home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/common/simple_threads.cpp_363] deleteownerId [/home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/common/simple_threads.cpp_363]
Stack Trace:
./megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::string const&, bool)address [0xa32b82] line: 237
./megaglest:Shared::Platform::Mutex::p()address [0xa3319a] line: 443
./megaglest:Shared::PlatformCommon::SimpleTaskThread::execute()address [0x9e548b] line: 491
./megaglest:Shared::Platform::Thread::beginExecution(void*)address [0xa37aba] line: 240
/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0:()address [0x7f67b1505196] line: 0
/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0:()address [0x7f67b1545e49] line: 0
/lib/x86_64-linux-gnu/libpthread.so.0:()address [0x7f67b12dcf8e] line: 0
/lib/x86_64-linux-gnu/libc.so.6:clone()address [0x7f67ad81de1d] line: 0

Stack Trace:
./megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::string const&, bool)address [0xa32b82] line: 237
./megaglest:Shared::PlatformCommon::SimpleTaskThread::execute()address [0x9e609c] line: 524
./megaglest:Shared::Platform::Thread::beginExecution(void*)address [0xa37aba] line: 240
/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0:()address [0x7f67b1505196] line: 0
/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0:()address [0x7f67b1545e49] line: 0
/lib/x86_64-linux-gnu/libpthread.so.0:()address [0x7f67b12dcf8e] line: 0
/lib/x86_64-linux-gnu/libc.so.6:clone()address [0x7f67ad81de1d] line: 0

======= In MinidumpCallback...

***ERROR details captured:
Crash minidump folder: /home/tomreyn/.megaglest/
file: /home/tomreyn/.megaglest//44140a4d-2773-783f-20d0b10d-69047052.dmp
Succeeded: 1
******************************************************
    An unhandled error was detected.

A crash dump file has been created in the folder:
/home/tomreyn/.megaglest/
Crash dump filename is: /home/tomreyn/.megaglest//44140a4d-2773-783f-20d0b10d-69047052.dmp
******************************************************

Segmentation fault detected, analyzing...

warning: [New LWP 18872]
[New LWP 18853]
[New LWP 18857]
[New LWP 18862]
[New LWP 18860]
[New LWP 18870]
[New LWP 18864]
[New LWP 18866]
[New LWP 18865]
[New LWP 18861]
[New LWP 18869]
[New LWP 18858]
[New LWP 18863]
[New LWP 18855]
[New LWP 18851]
Can't read pathname for load map: Eingabe-/Ausgabefehler.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7fffc4ffe000
Core was generated by `./megaglest --starthost'.
Program terminated with signal 6, Aborted.
#0  0x00007f67ad75b037 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56    ../nptl/sysdeps/unix/sysv/linux/raise.c: Datei oder Verzeichnis nicht gefunden.
#0  0x00007f67ad75b037 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00007f67ad75e698 in __GI_abort () at abort.c:90
#2  0x00007f67ae067e8d in __gnu_cxx::__verbose_terminate_handler () at ../../../../src/libstdc++-v3/libsupc++/vterminate.cc:95
#3  0x00007f67ae065f76 in __cxxabiv1::__terminate (handler=<optimized out>) at ../../../../src/libstdc++-v3/libsupc++/eh_terminate.cc:40
#4  0x00007f67ae065fa3 in std::terminate () at ../../../../src/libstdc++-v3/libsupc++/eh_terminate.cc:50
#5  0x00007f67ae0661de in __cxxabiv1::__cxa_throw (obj=0x7f67700277a0, tinfo=<optimized out>, dest=<optimized out>) at ../../../../src/libstdc++-v3/libsupc++/eh_throw.cc:83
#6  0x00000000009e60bb in Shared::PlatformCommon::SimpleTaskThread::execute (this=0x2803aa0) at /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/common/simple_threads.cpp:524
#7  0x0000000000a37aba in Shared::Platform::Thread::beginExecution (data=data@entry=0x2803aa0) at /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/sdl/thread.cpp:238
#8  0x00007f67b1505196 in SDL_RunThread (data=0x188f5f0) at ../../src/thread/SDL_thread.c:204
#9  0x00007f67b1545e49 in RunThread (data=<optimized out>) at ../../src/thread/pthread/SDL_systhread.c:47
#10 0x00007f67b12dcf8e in start_thread (arg=0x7f6788ff8700) at pthread_create.c:311
#11 0x00007f67ad81de1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.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 · · ·

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: crash when entering custom game menu ( rev 4460)
« Reply #7 on: 22 June 2013, 03:37:21 »
Tightened up the code in 4492. Launch and press Alt-F4 quickly to force close the window (even faster than clicking) and no longer crashes.

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: crash when entering custom game menu ( rev 4460)
« Reply #8 on: 22 June 2013, 09:26:31 »
Looks very good to me - [fixed]. :)
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