Bug#597851: cultivation: Segmentation fault when restarting the game

Nicolas Pelletier nicolas.pelletier3 at gmail.com
Thu Sep 23 15:00:40 UTC 2010


Package: cultivation
Version: 8.20070809.dfsg1-3
Severity: normal

I can consistently produce a segmentation fault with the following sequence:

1. Play a game for a while, and starve your gardener to death
2. Click on the "restart" button
3. Boom ! Segmentation fault

This might be related, but when my gardener starves, the music has not played for a while.

Here is what gdb has to say:

Core was generated by `cultivation'.
Program terminated with signal 11, Segmentation fault.
#0  0x0000000000425b51 in World::getAllGardenerPositions(int*) ()
(gdb) info threads
  2 Thread 30115  0x00007f5c1d4a5b62 in __random () at random.c:296
* 1 Thread 30130  0x0000000000425b51 in World::getAllGardenerPositions(int*) ()

(gdb) thread apply all backtrace

Thread 2 (Thread 30115):
#0  0x00007f5c1d4a5b62 in __random () at random.c:296
#1  0x00007f5c1d4a61f9 in rand () at rand.c:28
#2  0x0000000000423e49 in StdRandomSource::getRandomDouble() ()
#3  0x0000000000453eea in SoundEffectsBank::SoundEffectsBank(SoundPlayer*) ()
#4  0x000000000041a736 in GameSceneHandler::GameSceneHandler(ScreenGL*) ()
#5  0x000000000042064f in GameSceneHandler::fireRedraw() ()
#6  0x00000000004559fb in glutDisplay() ()
#7  0x00007f5c1e96d808 in ?? () from /usr/lib/libglut.so.3
#8  0x00007f5c1e971339 in fgEnumWindows () from /usr/lib/libglut.so.3
#9  0x00007f5c1e96dca1 in glutMainLoopEvent () from /usr/lib/libglut.so.3
#10 0x00007f5c1e96e5a7 in glutMainLoop () from /usr/lib/libglut.so.3
#11 0x0000000000422084 in main ()

Thread 1 (Thread 30130):
#0  0x0000000000425b51 in World::getAllGardenerPositions(int*) ()
#1  0x00000000004508e8 in MusicPlayer::getMoreMusic(unsigned long) ()
#2  0x0000000000451d30 in SoundPlayer::getSamples(void*, unsigned long) ()
#3  0x000000000045201c in ?? ()
#4  0x00007f5c1e19acb2 in Pa_CallConvertInt16 () from /usr/lib/libportaudio.so.0
#5  0x00007f5c1e19c7cd in ?? () from /usr/lib/libportaudio.so.0
#6  0x00007f5c1df828ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#7  0x00007f5c1d53e02d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()
(gdb) thread 1
[Switching to thread 1 (Thread 30130)]#0  0x0000000000425b51 in World::getAllGardenerPositions(int*) ()
(gdb) info locals 
No symbol table info available.
(gdb) info frame 
Stack level 0, frame at 0x7f5c1a534c60:
 rip = 0x425b51 in World::getAllGardenerPositions(int*); saved rip 0x4508e8
 called by frame at 0x7f5c1a534d80
 Arglist at 0x7f5c1a534c18, args: 
 Locals at 0x7f5c1a534c18, Previous frame's sp is 0x7f5c1a534c60
 Saved registers:
  rbx at 0x7f5c1a534c28, rbp at 0x7f5c1a534c30, r12 at 0x7f5c1a534c38, r13 at 0x7f5c1a534c40,
  r14 at 0x7f5c1a534c48, r15 at 0x7f5c1a534c50, rip at 0x7f5c1a534c58
(gdb) x 0x7f5c1a534c18
0x7f5c1a534c18:	0x1d4722a0


-- System Information:
Debian Release: squeeze/sid
  APT prefers proposed-updates
  APT policy: (500, 'proposed-updates'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to ja_JP.utf8)
Shell: /bin/sh linked to /bin/bash

Versions of packages cultivation depends on:
ii  freeglut3                     2.6.0-1    OpenGL Utility Toolkit
ii  libc6                         2.11.2-5   Embedded GNU C Library: Shared lib
ii  libgcc1                       1:4.4.4-8  GCC support library
ii  libgl1-mesa-glx [libgl1]      7.7.1-4    A free implementation of the OpenG
ii  libglu1-mesa [libglu1]        7.7.1-4    The OpenGL utility library (GLU)
ii  libportaudio0                 18.1-7.1   Portable audio I/O - shared librar
ii  libstdc++6                    4.4.4-8    The GNU Standard C++ Library v3
ii  libx11-6                      2:1.3.3-3  X11 client-side library

cultivation recommends no packages.

cultivation suggests no packages.

-- no debconf information





More information about the Pkg-games-devel mailing list