Package: release.debian.org Severity: normal Tags: wheezy User: release.debian....@packages.debian.org Usertags: pu
Hello folks, The current gnubg in stable segfaults during "end game" when run with the -t flag. I got a request from one user to fix this in stable, at: http://bugs.debian.org/754764 Upstream provided the relevant patch, which is quite straightforward (attached). May I upload this to stable for stable-proposed-updates? The severity of the bug is rather borderline, but the fix is small and unlikely to introduce any additional issues. Thanks! -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (990, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 3.14-2-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
--- a/gtkwindows.c +++ b/gtkwindows.c @@ -391,7 +391,7 @@ extern int GTKShowWarning(warningType warning, GtkWidget *pwParent) { - if (warnings[warning].warningEnabled) + if (fX && warnings[warning].warningEnabled) { char *buf; GtkWidget *pwDialog, *pwMsg, *pwv, *label; --- a/play.c +++ b/play.c @@ -3287,7 +3287,9 @@ int fDisplay_store = fDisplay; int fQuiet_store = fQuiet; #if USE_BOARD3D - BoardData *bd = BOARD(pwBoard)->board_data; + BoardData *bd; + if (fX && pwBoard) + bd = BOARD(pwBoard)->board_data; #endif const evalcontext ec_quick = { FALSE, 0, FALSE, TRUE, 0.0 }; int manual_dice = (rngCurrent == RNG_MANUAL); @@ -3326,7 +3328,8 @@ } #if USE_BOARD3D - SuspendDiceRolling(bd->rd); + if (fX) + SuspendDiceRolling(bd->rd); #endif fAutoGame = FALSE; @@ -3373,7 +3376,8 @@ } #if USE_BOARD3D - ResumeDiceRolling(bd->rd); + if (fX) + ResumeDiceRolling(bd->rd); #endif if (!automaticTask)