MegaGlest Forum

MegaGlest => Bug reports => Topic started by: tomreyn on 12 August 2011, 12:51:19

Title: 3.5.2 (playdeb) Segfault
Post by: tomreyn on 12 August 2011, 12:51:19
A friend of mine was trying MG for the first time today, using the playdeb packages on Debian Sid. And ran into a segmentation fault by the time he clicked on "Exit game":

Quote

micah@algae:~$ megaglest
v3.5.2-GNUC: 40403 [64bit]-Jul 11 2011 17:03:40, SVN: [$Rev: 2287 $], [STREFLOP]
AL lib: pulseaudio.c:612: Context did not connect: Connection refused
In [/build/build-megaglest_3.5.2.4-1~getdeb1~lucid-amd64-JuC9lq/megaglest-3.5.2.4/source/glest_game/main/main.cpp::handleSIGSEGV Line: 582] Error detected: signal 11:
[2011-08-12 14:17:17] *ERROR* In [/build/build-megaglest_3.5.2.4-1~getdeb1~lucid-amd64-JuC9lq/megaglest-3.5.2.4/source/glest_game/main/main.cpp::handleRuntimeError Line: 358] [In [/build/build-megaglest_3.5.2.4-1~getdeb1~lucid-amd64-JuC9lq/megaglest-3.5.2.4/source/glest_game/main/main.cpp::handleSIGSEGV Line: 582] Error detected: signal 11:
] gameInitialized = 1, program = 0x29c1a70
[2011-08-12 14:17:18] *ERROR* In [/build/build-megaglest_3.5.2.4-1~getdeb1~lucid-amd64-JuC9lq/megaglest-3.5.2.4/source/glest_game/main/main.cpp::handleRuntimeError Line: 449] [In [/build/build-megaglest_3.5.2.4-1~getdeb1~lucid-amd64-JuC9lq/megaglest-3.5.2.4/source/glest_game/main/main.cpp::handleSIGSEGV Line: 582] Error detected: signal 11:

Stack Trace:
megaglest.real:Glest::Game::handleSIGSEGV(int) address [0x556922] line: 0
/lib/x86_64-linux-gnu/libc.so.6:() address [0x7fb0e0fb7480] line: 0
/lib/x86_64-linux-gnu/libc.so.6:() address [0x7fb0e100ec34] line: 0
/usr/lib/libminiupnpc.so.5:parseURL() address [0x7fb0e1cb691a] line: 0
/usr/lib/libminiupnpc.so.5:() address [0x7fb0e1cb7743] line: 0
/usr/lib/libminiupnpc.so.5:UPNP_DeletePortMapping() address [0x7fb0e1cb9553] line: 0
megaglest.real:Shared::Platform::UPNP_Tools::upnp_rem_redirect(int) address [0x7dad05] line: 0
megaglest.real:Shared::PlatformCommon::FTPServerThread::~FTPServerThread() address [0x7ed0e4] line: 0
megaglest.real:Glest::Game::ServerInterface::~ServerInterface() address [0x6a8a15] line: 0
megaglest.real:Glest::Game::NetworkManager::end() address [0x67db57] line: 0
megaglest.real:Glest::Game::Game::quitGame() address [0x4e5416] line: 0
megaglest.real:Glest::Game::Game::quitAndToggleState() address [0x4e5599] line: 0
megaglest.real:Glest::Game::Program::loopWorker() address [0x56eade] line: 0
megaglest.real:Glest::Game::glestMain(int, char**) address [0x56905e] line: 0
]
Segmentation fault

Title: Re: 3.5.2 (playdeb) Segfault
Post by: softcoder on 12 August 2011, 20:03:54
This seems to be the same bug already reported (and fixed in our install packages). The playdeb packages have the bug that was fixed in the latest source tarball (which was discovered by svenstaro in Arch Linux and fixed in that distro's package)
Title: Re: 3.5.2 (playdeb) Segfault
Post by: tomreyn on 15 August 2011, 14:56:16
According to http://sourceforge.net/projects/megaglest/files/current_release/ (http://sourceforge.net/projects/megaglest/files/current_release/) our latest source tarball is version 3.5.2.4 (last modified 2011-07-09).
According to http://www.playdeb.net/updates/ubuntu/11.04/?q=megaglest (http://www.playdeb.net/updates/ubuntu/11.04/?q=megaglest) the latest playdeb.net Natty build is version 3.5.2.4-1~getdeb1 and according to http://www.playdeb.net/updates/ubuntu/10.04/?q=megaglest (http://www.playdeb.net/updates/ubuntu/10.04/?q=megaglest) their latest Lucid build is version 3.5.2.4-1~getdeb1~lucid (both last updated on 2011-07-11).
According to https://www.archlinux.org/packages/community/x86_64/megaglest/ (https://www.archlinux.org/packages/community/x86_64/megaglest/) the latest Arch Linux x86_64 build is version 3.5.2.4-1 and according to https://www.archlinux.org/packages/community/i686/megaglest/ (https://www.archlinux.org/packages/community/i686/megaglest/) their latest i686 build is also version 3.5.2.4-1.

Based on these version numbers and dates it would seem that playdeb would have built from a source version which should already have had the fix.

Update (2011-09-16): In fact I think what happened is that the 3.5.2.4 source tarballs we released are of a revision which still has this issue, while our installers are built of a later revision (>= r2305).
Title: Re: 3.5.2 (playdeb) Segfault
Post by: tomreyn on 17 August 2011, 15:45:54
This issue is now being tracked on the playdeb/getdeb bug tracker (https://bugs.launchpad.net/getdeb.net/+bug/826797), and they would like to know which patch fixes this issue.
Title: Re: 3.5.2 (playdeb) Segfault
Post by: david on 2 October 2011, 12:16:05
Hi,

I've got the same bug when i want to start a new single player game.

here is the complete output if it can help:

Code: [Select]
megaglest
v3.5.2-GNUC: 40502 [64bit]-Jul 11 2011 20:15:02, SVN: [$Rev: 2287 $], [STREFLOP]
In [/build/build-megaglest_3.5.2.4-1~getdeb1-amd64-byD4lN/megaglest-3.5.2.4/source/glest_game/main/main.cpp::handleSIGSEGV Line: 582] Error detected: signal 11:
[2011-10-02 13:40:36] *ERROR* In [/build/build-megaglest_3.5.2.4-1~getdeb1-amd64-byD4lN/megaglest-3.5.2.4/source/glest_game/main/main.cpp::handleRuntimeError Line: 358] [In [/build/build-megaglest_3.5.2.4-1~getdeb1-amd64-byD4lN/megaglest-3.5.2.4/source/glest_game/main/main.cpp::handleSIGSEGV Line: 582] Error detected: signal 11:
] gameInitialized = 1, program = 0x2aa6ae0
[2011-10-02 13:40:36] *ERROR* In [/build/build-megaglest_3.5.2.4-1~getdeb1-amd64-byD4lN/megaglest-3.5.2.4/source/glest_game/main/main.cpp::handleRuntimeError Line: 449] [In [/build/build-megaglest_3.5.2.4-1~getdeb1-amd64-byD4lN/megaglest-3.5.2.4/source/glest_game/main/main.cpp::handleSIGSEGV Line: 582] Error detected: signal 11:

Stack Trace:
megaglest.real:Glest::Game::handleSIGSEGV(int) address [0x55fb22] line: 0
/lib/x86_64-linux-gnu/libc.so.6:() address [0x7f7ab4142d80] line: 0
/lib/x86_64-linux-gnu/libc.so.6:() address [0x7f7ab42360f8] line: 0
/usr/lib/libminiupnpc.so.5:parseURL() address [0x7f7ab4e5157a] line: 0
/usr/lib/libminiupnpc.so.5:() address [0x7f7ab4e524aa] line: 0
/usr/lib/libminiupnpc.so.5:UPNP_DeletePortMapping() address [0x7f7ab4e54375] line: 0
megaglest.real:Shared::Platform::UPNP_Tools::upnp_rem_redirect(int) address [0x7cd634] line: 0
megaglest.real:Shared::PlatformCommon::FTPServerThread::~FTPServerThread() address [0x7d2ff4] line: 0
megaglest.real:Shared::PlatformCommon::FTPServerThread::~FTPServerThread() address [0x7d3249] line: 0
megaglest.real:Glest::Game::ServerInterface::launchGame(Glest::Game::GameSettings const*) address [0x6739ac] line: 0
megaglest.real:Glest::Game::MenuStateCustomGame::PlayNow() address [0x6394f0] line: 0
megaglest.real:Glest::Game::MenuStateCustomGame::mouseClick(int, int, Shared::Platform::MouseButton) address [0x63a566] line: 0
megaglest.real:Glest::Game::MainWindow::eventMouseDown(int, int, Shared::Platform::MouseButton) address [0x55f4f5] line: 0
megaglest.real:Shared::Platform::Window::handleMouseDown(SDL_Event) address [0x7b0e61] line: 0
]
Erreur de segmentation

Edit by Omega: Inserted [code] tags