Package: netris Version: 0.52-3 Severity: important
Netris segfaults immediately when invoked as 'netris'. Segfaults once a connection is made for -c and -w. Debugging shows the problem is in curses.c:RefreshWindow. This happens on amd64, but not i386. There's a patch below - I've got only a vague notion as to why it works. Basic testing done on the vanilla source, -3 and -5 packages on amd64 and the -3 on i386. Brian --- curses.c.orig 2005-12-30 10:17:21.000000000 +0000 +++ curses.c 2005-12-30 10:23:47.000000000 +0000 @@ -20,6 +20,7 @@ */ #include "netris.h" +#include <time.h> #include <sys/types.h> #include <unistd.h> #include <curses.h> @@ -341,9 +342,10 @@ { static char timeStr[2][32]; time_t theTime; + struct tm tmp; time(&theTime); - strftime(timeStr[0], 30, "%I:%M %p", localtime(&theTime)); + strftime(timeStr[0], 30, "%I:%M %p", localtime_r(&theTime,&tmp)); /* Just in case the local curses library sucks */ if (strcmp(timeStr[0], timeStr[1])) { -- System Information: Debian Release: 3.1 Architecture: amd64 (x86_64) Kernel: Linux 2.6.14.3 Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) Versions of packages netris depends on: ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an ii libncurses5 5.4-4 Shared libraries for terminal hand -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]