unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#13500: 24.2.92; tetris score grows after ending the game
@ 2013-01-19 18:10 Sven Joachim
  2013-01-19 20:11 ` Glenn Morris
  0 siblings, 1 reply; 3+ messages in thread
From: Sven Joachim @ 2013-01-19 18:10 UTC (permalink / raw)
  To: 13500; +Cc: Sven Joachim

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





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#13500: 24.2.92; tetris score grows after ending the game
  2013-01-19 18:10 bug#13500: 24.2.92; tetris score grows after ending the game Sven Joachim
@ 2013-01-19 20:11 ` Glenn Morris
  2013-01-19 21:00   ` Sven Joachim
  0 siblings, 1 reply; 3+ messages in thread
From: Glenn Morris @ 2013-01-19 20:11 UTC (permalink / raw)
  To: Sven Joachim; +Cc: 13500

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))






^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#13500: 24.2.92; tetris score grows after ending the game
  2013-01-19 20:11 ` Glenn Morris
@ 2013-01-19 21:00   ` Sven Joachim
  0 siblings, 0 replies; 3+ messages in thread
From: Sven Joachim @ 2013-01-19 21:00 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 13500

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





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-01-19 21:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-19 18:10 bug#13500: 24.2.92; tetris score grows after ending the game Sven Joachim
2013-01-19 20:11 ` Glenn Morris
2013-01-19 21:00   ` Sven Joachim

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).