GNU bug report logs - #13500
24.2.92; tetris score grows after ending the game

Previous Next

Package: emacs;

Reported by: Sven Joachim <svenjoac <at> gmx.de>

Date: Sat, 19 Jan 2013 18:12:02 UTC

Severity: normal

Tags: moreinfo, unreproducible

Found in version 24.2.92

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 13500 in the body.
You can then email your comments to 13500 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to svenjoac <at> gmx.de, bug-gnu-emacs <at> gnu.org:
bug#13500; Package emacs. (Sat, 19 Jan 2013 18:12:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Sven Joachim <svenjoac <at> gmx.de>:
New bug report received and forwarded. Copy sent to svenjoac <at> gmx.de, bug-gnu-emacs <at> gnu.org. (Sat, 19 Jan 2013 18:12:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Sven Joachim <svenjoac <at> gmx.de>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.2.92; tetris score grows after ending the game
Date: Sat, 19 Jan 2013 19:10:52 +0100
> Please describe exactly what actions triggered the bug, and
> the precise symptoms of the bug.  If you can, give a recipe
> starting from `emacs -Q':

Start tetris with M-x tetris and keep pressing SPC until the playing
area is filled.  Now Emacs writes the score to
~/.emacs.d/games/tetris-scores, but not only once but several times per
second, increasing the score each time as if the game is still going on
(press C-g to stop that).

,----
| 199 sven Sven Joachim <svenjoac <at> gmx.de>  Sat Jan 19 18:54:41 2013
| 194 sven Sven Joachim <svenjoac <at> gmx.de>  Sat Jan 19 18:54:41 2013
| 188 sven Sven Joachim <svenjoac <at> gmx.de>  Sat Jan 19 18:54:41 2013
| 182 sven Sven Joachim <svenjoac <at> gmx.de>  Sat Jan 19 18:54:40 2013
| 176 sven Sven Joachim <svenjoac <at> gmx.de>  Sat Jan 19 18:54:40 2013
| 170 sven Sven Joachim <svenjoac <at> gmx.de>  Sat Jan 19 18:54:39 2013
| 164 sven Sven Joachim <svenjoac <at> gmx.de>  Sat Jan 19 18:54:39 2013
| 158 sven Sven Joachim <svenjoac <at> gmx.de>  Sat Jan 19 18:54:39 2013
| 152 sven Sven Joachim <svenjoac <at> gmx.de>  Sat Jan 19 18:54:38 2013
| 147 sven Sven Joachim <svenjoac <at> gmx.de>  Sat Jan 19 18:54:38 2013
| 141 sven Sven Joachim <svenjoac <at> gmx.de>  Sat Jan 19 18:54:37 2013
| 135 sven Sven Joachim <svenjoac <at> gmx.de>  Sat Jan 19 18:54:37 2013
| 129 sven Sven Joachim <svenjoac <at> gmx.de>  Sat Jan 19 18:54:37 2013
| 123 sven Sven Joachim <svenjoac <at> gmx.de>  Sat Jan 19 18:54:36 2013
| 118 sven Sven Joachim <svenjoac <at> gmx.de>  Sat Jan 19 18:54:36 2013
| 112 sven Sven Joachim <svenjoac <at> gmx.de>  Sat Jan 19 18:54:35 2013
| 106 sven Sven Joachim <svenjoac <at> gmx.de>  Sat Jan 19 18:54:35 2013
| 100 sven Sven Joachim <svenjoac <at> gmx.de>  Sat Jan 19 18:54:35 2013
| 94 sven Sven Joachim <svenjoac <at> gmx.de>  Sat Jan 19 18:54:34 2013
| 89 sven Sven Joachim <svenjoac <at> gmx.de>  Sat Jan 19 18:54:34 2013
| 84 sven Sven Joachim <svenjoac <at> gmx.de>  Sat Jan 19 18:54:33 2013
| 79 sven Sven Joachim <svenjoac <at> gmx.de>  Sat Jan 19 18:54:33 2013
| 73 sven Sven Joachim <svenjoac <at> gmx.de>  Sat Jan 19 18:54:33 2013
| 67 sven Sven Joachim <svenjoac <at> gmx.de>  Sat Jan 19 18:54:32 2013
`----

This is a regression from previous releases.


In GNU Emacs 24.2.92.4 (i486-pc-linux-gnu, GTK+ Version 3.4.2)
 of 2013-01-19 on turtle
Bzr revision: 111189 sdl.web <at> gmail.com-20130118183544-w2orvtivfjawazg4
Windowing system distributor `The X.Org Foundation', version 11.0.11204000
System Description:	Debian GNU/Linux

Configured using:
 `configure '--build=i486-pc-linux-gnu' '--without-gconf'
 'build_alias=i486-pc-linux-gnu''

Important settings:
  value of $LC_COLLATE: C
  value of $LANG: de_DE.UTF-8
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
M-x t e t r i s <return> <return> SPC SPC SPC SPC SPC 
SPC SPC SPC SPC SPC C-g M-x r e p o r t - e m <tab> 
<return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Buffer is read-only: #<buffer *Tetris*>
Loading vc-git...done
Quit

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils vc-git disp-table tetris gamegrid
time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd
tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment
lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer loaddefs button faces cus-face macroexp files text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process dbusbind
dynamic-setting system-font-setting font-render-setting move-toolbar gtk
x-toolkit x multi-tty emacs)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13500; Package emacs. (Sat, 19 Jan 2013 20:13:02 GMT) Full text and rfc822 format available.

Message #8 received at 13500 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Sven Joachim <svenjoac <at> gmx.de>
Cc: 13500 <at> debbugs.gnu.org
Subject: Re: bug#13500: 24.2.92; tetris score grows after ending the game
Date: Sat, 19 Jan 2013 15:11:28 -0500
Sven Joachim wrote:

> Start tetris with M-x tetris and keep pressing SPC until the playing
> area is filled.  Now Emacs writes the score to
> ~/.emacs.d/games/tetris-scores, but not only once but several times per
> second, increasing the score each time as if the game is still going on
> (press C-g to stop that).

I can't reproduce this, though I did find an (old) bug in
gamegrid-add-score-with-update-game-score.

The fact that your scores get written to ~/.emacs.d/games means that
/usr/local/libexec/emacs/24.2.92/arch/update-game-score

is not setuid. If I set it non-setuid, and do

rm- rf ~/.emacs.d/games/

then Emacs fails to write score files due to a
gamegrid-add-score-with-update-game-score bug. If I fix that bug (see
below), or mkdir ~/.emacs.d/games first, then it works fine.

What happens if you rm ~/.emacs.d/games/tetris-scores?


*** lisp/play/gamegrid.el	2013-01-01 09:11:05 +0000
--- lisp/play/gamegrid.el	2013-01-19 20:02:52 +0000
***************
*** 507,513 ****
  					gamegrid-user-score-file-directory))
  	  (t (let ((f (expand-file-name
  		       gamegrid-user-score-file-directory)))
! 	       (when (file-writable-p f)
  		 (unless (eq (car-safe (file-attributes f))
  			     t)
  		   (make-directory f))
--- 507,513 ----
  					gamegrid-user-score-file-directory))
  	  (t (let ((f (expand-file-name
  		       gamegrid-user-score-file-directory)))
! 	       (when (file-writable-p (directory-file-name f))
  		 (unless (eq (car-safe (file-attributes f))
  			     t)
  		   (make-directory f))





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13500; Package emacs. (Sat, 19 Jan 2013 21:02:02 GMT) Full text and rfc822 format available.

Message #11 received at 13500 <at> debbugs.gnu.org (full text, mbox):

From: Sven Joachim <svenjoac <at> gmx.de>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 13500 <at> debbugs.gnu.org
Subject: Re: bug#13500: 24.2.92; tetris score grows after ending the game
Date: Sat, 19 Jan 2013 22:00:16 +0100
tags 13500 + moreinfo unreproducible
thanks

On 2013-01-19 21:11 +0100, Glenn Morris wrote:

> Sven Joachim wrote:
>
>> Start tetris with M-x tetris and keep pressing SPC until the playing
>> area is filled.  Now Emacs writes the score to
>> ~/.emacs.d/games/tetris-scores, but not only once but several times per
>> second, increasing the score each time as if the game is still going on
>> (press C-g to stop that).
>
> I can't reproduce this, though I did find an (old) bug in
> gamegrid-add-score-with-update-game-score.
>
> The fact that your scores get written to ~/.emacs.d/games means that
> /usr/local/libexec/emacs/24.2.92/arch/update-game-score
>
> is not setuid.

Correct, I did not even run "make install".

> If I set it non-setuid, and do
>
> rm- rf ~/.emacs.d/games/
>
> then Emacs fails to write score files due to a
> gamegrid-add-score-with-update-game-score bug. If I fix that bug (see
> below), or mkdir ~/.emacs.d/games first, then it works fine.
>
> What happens if you rm ~/.emacs.d/games/tetris-scores?

I was not able to reproduce the bug then; but even with the file back in
place I couldn't, although it happened both in my regular session and
the "emacs -Q" instance I started specially for reporting it.  Now it
does not happen in either. :-/

There's another problem in that the file is not truncated to
gamegrid-score-file-length lines, but that has been the case for a long
time IIRC.

Cheers,
       Sven




Added tag(s) unreproducible and moreinfo. Request was from Sven Joachim <svenjoac <at> gmx.de> to control <at> debbugs.gnu.org. (Sat, 19 Jan 2013 21:02:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 13500 <at> debbugs.gnu.org and Sven Joachim <svenjoac <at> gmx.de> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 06 Feb 2014 01:43:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 06 Mar 2014 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 111 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.