-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Package: stormbaancoureur Version: 2.1.5-2.1
The game now aborts when the "EXAMINE LEADERBOARD" menu entry is selected or on level completion. This because the game lookups up a remote leaderboard at "leaderboard.stolk.org" which is no longer in DNS and the code does an assert on the lookup result. I suspect the original bug report was when the leaderboard service was removed but the DNS entry still existed. Program aborts with gethostbyname: Connection timed out stormbaancoureur: postscore.cxx:42: void postscore_put(const char*, float): Assertion `he' failed. Aborted The patch attached is a workaround, it sets the name to contact to be "localhost.", which should be more contactable. Then the game will not abort but instead will give "LEADERBOARD IS NOT AVAILABLE". A similar workaround is to add an entry for "leaderboard.stolk.org" to /etc/hosts like 127.0.2.1 leaderboard.stolk.org A proper fix would be to not abort on lookup failure. And if the remote leaderboard service isn't going to return then a reworking of code to remove it and have a local leaderboard. I've emailed upstream about it. - -- System Information: Debian Release: 5.0.3 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.26-2-686 (SMP w/2 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages stormbaancoureur depends on: ii freeglut3 2.4.0-6.1 OpenGL Utility Toolkit ii libasound2 1.0.16-2 ALSA library ii libc6 2.7-18 GNU C Library: Shared libraries ii libgcc1 1:4.3.2-1.1 GCC support library ii libgl1-mesa-glx [libgl1] 7.0.3-7 A free implementation of the OpenG ii libglu1-mesa [libglu1] 7.0.3-7 The OpenGL utility library (GLU) ii libode0debian1 2:0.9-1 Open Dynamics Engine - runtime lib ii libstdc++6 4.3.2-1.1 The GNU Standard C++ Library v3 ii plib1.8.4c2 1.8.4-10 Portability Libraries: Run-time pa ii stormbaancoureur-data 2.1.5-2.1 game data for Stormbaan Coureur stormbaancoureur recommends no packages. stormbaancoureur suggests no packages. - -- no debconf information -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQIcBAEBCAAGBQJLFBY+AAoJENdybD6q+OPvPHwQAJ0/doVnv1YAhlWHnq58IPdh PJBnoCtxZUHL0MoltX8iGnPogOQxmkRIeZDeceauPTdw6RJsF0kwdEtJ+NCYvHq4 VvHGQPZBsHgW1UKgcxXY+OaZs0IwKOruZq+1zIMCwaNYw8rov9ctULZkQ76GBNTu qQidmysXDqxm6tbwpcqAG/eSciOBHBhG3hJPBmqPIvQKzxmLTxd8ZPRuEhOjQ/z/ /tr0vgazuwGH/UQ5N4WtawykWdAlqo2U0S7Jxp+xTaM6g0kpYYku0ZrdNOC0wH+J a82q16hZ8thVAYBqyo8M0WJoONKqSRh3nQIQXwbP8c6ISMBH3sMdbCBUiXI+k+hT 6BL85Gn5f0+QXNIdzx10o6833vfeKWzvNdoibg+0wu6RAels2g+mBhyBWPPKjsQi LOHzRZ9VIzzg972pHEAyk7NW2RSuXTL5XVdz6TSpjIdGx2E7nQ+v1obFn1gLMeXS H/fYzU4syJIFVu2NIuXzgsI5olrqMp4UVD7wSQCJM3GwbYLZWFmKQ4+jIMgjQ91F mW3Dmt4Bbgkl8dBAjfFjJm4Qww6Cz6HcQyWebptfzPd7/H78j5nWr9rrOtltdW08 iws8nINBMQBMeQdyYIwtNQOY9Fb6LzvcVyt2EuL50WYEeamvOdUlWD+qrp0ZXB4t COJgKDp4R3l6Bg+seOep =7pwx -----END PGP SIGNATURE-----
Submitted By: Michael Dorrington <michael dot dorrington at gmail dot com> Date: 2009-11-30 Initial Package Version: Upstream Status: Submitted Upstream Origin: Michael Dorrington <michael dot dorrington at gmail dot com> Description: Work around for leaderboard programme abort The game tries to contact "leaderboard.stolk.org" when the "EXAMINE LEADERBOARD" menu entry is selected or on level completion. In order to contact "leaderboard.stolk.org" the game lookups up the name using gethostbyname(). Unfortunately, that name is no longer in DNS so the lookup times out and gethostbyname() returns NULL. Then an assert() is done on the return value which results in the game aborting with following gethostbyname: Connection timed out stormbaancoureur: postscore.cxx:42: void postscore_put(const char*, float): Assertion `he' failed. Aborted This patch is a workaround, it sets the name to contact to be "localhost.", which should be more contactable. Then the game will not abort but instead will give "LEADERBOARD IS NOT AVAILABLE". diff -Naur stormbaancoureur-2.1.5.orig/src-stormbaancoureur/postscore.cxx stormbaancoureur-2.1.5/src-stormbaancoureur/postscore.cxx --- stormbaancoureur-2.1.5.orig/src-stormbaancoureur/postscore.cxx 2008-04-20 15:56:48.000000000 +0000 +++ stormbaancoureur-2.1.5/src-stormbaancoureur/postscore.cxx 2009-11-30 13:26:25.000000000 +0000 @@ -21,7 +21,7 @@ #include "postscore.h" -static const char *hostname = "leaderboard.stolk.org"; +static const char *hostname = "localhost."; static const int portnr=7460; static char msg[1472];
stormbaancoureur-2.1.5-leaderboard-1.patch.sig
Description: Binary data