Network games crash immediate when -D_GLIBCXX_ASSERTIONS is added to the build
This is obviously primarily a bug in the upstream, but I wanted to post here in case someone thought adjusting how it was built by the PKGBUILD would be desirable.
Description:
After a network game starts (tested by joining and starting games from the lobby), after the loading screen finishes, the game crashes. Console output:
$ megaglest megaglest v3.13.0 Compiled using: GNUC: 140201 [64bit] platform: Linux-X64 endianness: little GIT: [Rev: 5604.3a5d459] - using STREFLOP [SSE] - [no-denormals] Game unique identifier is: 06e55166-ee27-11ef-affe-fd95e2b16f6a /usr/include/c++/14.2.1/bits/stl_vector.h:1130: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator [with _Tp = Glest::Game::NetworkCommand; _Alloc = std::allocatorGlest::Game::NetworkCommand; reference = Glest::Game::NetworkCommand&; size_type = long unsigned int]: Assertion '__n < this->size()' failed.
Additional info:
- package version(s): 3.13.0
- https://github.com/MegaGlest/megaglest-source/issues/309
Steps to reproduce:
- Enter lobby, host a game, join a game
- Host starts game
- After loading screen, the game crashes