Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when trying to create multiplayer game #184

Open
LawrenceJGD opened this issue May 15, 2022 · 1 comment
Open

Crash when trying to create multiplayer game #184

LawrenceJGD opened this issue May 15, 2022 · 1 comment

Comments

@LawrenceJGD
Copy link

LawrenceJGD commented May 15, 2022

When I press Multiplayer Game in the main menu, and then Create Game Wyrmsun crashes, here's the log when I run the game from GDB:

$ printf 'run -d /usr/share/wyrmsun\\ngenerate-core-file\\quit' | gdb -command=/dev/stdin wyrmgus
GNU gdb (GDB) 11.2
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from wyrmgus...
(No debugging symbols found in wyrmgus)
/dev/stdin: Argumento inválido.
(gdb) Starting program: /usr/bin/wyrmgus -d /usr/share/wyrmsun
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7ffff1aa2640 (LWP 10415)]
[New Thread 0x7fffeb736640 (LWP 10416)]
[New Thread 0x7fffeaf35640 (LWP 10417)]
[New Thread 0x7fffe9ecb640 (LWP 10419)]
[New Thread 0x7fffe96ca640 (LWP 10420)]
[New Thread 0x7fffdbfff640 (LWP 10421)]
[New Thread 0x7fffdb7fe640 (LWP 10422)]
[New Thread 0x7fffd9f24640 (LWP 10423)]
[2022.05.15 16:33:04] Cannot open file "/usr/share/wyrmsun//wyr/preferences.lua" for writing.
Wyrmsun v5.3.5, Copyright (c) 1998-2022 by The Stratagus Project
  written by Lutz Sammer, Fabrice Rossi, Vladi Shabanski, Patrice Fortier,
  Jon Gabrielson, Andreas Arens, Nehal Mistry, Jimmy Salmon, Pali Rohar,
  cybermind, Andrettin and others.
	https://github.com/Andrettin/Wyrmgus
Compile options ZLIB OPENGL LINUX X11 

Stratagus may be copied only under the terms of the GNU General Public License
which may be found in the Stratagus source kit.

DISCLAIMER:
This software is provided as-is.  The author(s) can not be held liable for any
damage that might arise from the use of this software.
Use it at your own risk.

[New Thread 0x7fffd9723640 (LWP 10430)]
[New Thread 0x7fffd8f22640 (LWP 10431)]
[New Thread 0x7fffd8ee1640 (LWP 10432)]
[New Thread 0x7fffb3fff640 (LWP 10433)]
[2022.05.15 16:33:20] Cannot open file "/usr/share/wyrmsun//wyr/preferences.lua" for writing.
[2022.05.15 16:33:22] Cannot open file "/usr/share/wyrmsun//wyr/preferences.lua" for writing.
[2022.05.15 16:33:22] Cannot open file "/usr/share/wyrmsun//wyr/preferences.lua" for writing.
[New Thread 0x7fffb37fe640 (LWP 10439)]
[New Thread 0x7fffb2ffd640 (LWP 10440)]
[2022.05.15 16:33:23] Cannot open file "/usr/share/wyrmsun//wyr/preferences.lua" for writing.
[New Thread 0x7fffb27fc640 (LWP 10441)]
terminate called after throwing an instance of 'std::_Nested_exception<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >'

Thread 5 "wyrmgus" received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffe9ecb640 (LWP 10419)]
0x00007ffff5b9f34c in __pthread_kill_implementation () from /usr/lib/libc.so.6
(gdb) warning: target file /proc/10411/cmdline contained unexpected null characters
warning: Memory read failed for corefile section, 4096 bytes at 0xffffffffff600000.
Saved corefile \quit
(gdb) quit
A debugging session is active.

	Inferior 1 [process 10411] will be killed.

Quit anyway? (y or n) [answered Y; input not from terminal]

And this is the backtrace:

#0  0x00007ffff5b9f34c in __pthread_kill_implementation () at /usr/lib/libc.so.6
#1  0x00007ffff5b524b8 in raise () at /usr/lib/libc.so.6
#2  0x00007ffff5b3c534 in abort () at /usr/lib/libc.so.6
#3  0x00007ffff5dce7ee in __gnu_cxx::__verbose_terminate_handler() ()
    at /usr/src/debug/gcc/libstdc++-v3/libsupc++/vterminate.cc:95
#4  0x00007ffff5ddac4c in __cxxabiv1::__terminate(void (*)()) (handler=<optimized out>)
    at /usr/src/debug/gcc/libstdc++-v3/libsupc++/eh_terminate.cc:48
#5  0x00007ffff5ddacb9 in std::terminate() () at /usr/src/debug/gcc/libstdc++-v3/libsupc++/eh_terminate.cc:58
#6  0x00007ffff5ddaf5e in __cxxabiv1::__cxa_throw(void*, std::type_info*, void (*)(void*))
    (obj=<optimized out>, tinfo=0x555555dbe250, dest=0x5555558cbe60)
    at /usr/src/debug/gcc/libstdc++-v3/libsupc++/eh_throw.cc:95
#7  0x00005555555d0898 in  ()
#8  0x000055555588eaa2 in  ()
#9  0x000055555587ef4b in  ()
#10 0x0000555555a59089 in  ()
#11 0x0000555555baf276 in  ()
#12 0x00007ffff6274188 in  () at /usr/lib/liblua5.1.so.5.1
#13 0x00007ffff627effd in  () at /usr/lib/liblua5.1.so.5.1
#14 0x00007ffff6274715 in  () at /usr/lib/liblua5.1.so.5.1
#15 0x00007ffff6273a3c in  () at /usr/lib/liblua5.1.so.5.1
#16 0x00007ffff62748bd in  () at /usr/lib/liblua5.1.so.5.1
#17 0x00007ffff62704f8 in lua_pcall () at /usr/lib/liblua5.1.so.5.1
#18 0x000055555588e942 in  ()
#19 0x00005555558914f8 in  ()
#20 0x00005555558b89f8 in  ()
#21 0x000055555563e6c2 in  ()
#22 0x00007ffff5e0a4d4 in std::execute_native_thread_routine(void*) (__p=0x555556a98de0)
    at /usr/src/debug/gcc/libstdc++-v3/src/c++11/thread.cc:82
#23 0x00007ffff5b9d5c2 in start_thread () at /usr/lib/libc.so.6
#24 0x00007ffff5c22584 in clone () at /usr/lib/libc.so.6

Here's a link to the core dump generated by GDB and compressed with ZStandard, GitHub doesn't have support for uploading .zst files, so I uploaded it to Google Drive.

This happens in Arch Linux and Manjaro.

Edit: Added the backtrace.

@Andrettin
Copy link
Owner

Thank you! I managed to reproduce the issue, and am looking into a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants