Package: xmoto
Version: 0.3.4-1
Severity: normal

With optimisation:

$ gdb --args xmoto --nogfx
GNU gdb 6.6.90.20070912-debian
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
Using host libthread_db library "/lib/i686/cmov/libthread_db.so.1".
(gdb) r
Starting program: /usr/games/xmoto --nogfx
[Thread debugging using libthread_db enabled]
[New Thread 0xb74276c0 (LWP 1113)]
[New Thread 0xb72d6b90 (LWP 1116)]
[New Thread 0xb6ad5b90 (LWP 1117)]
[Thread 0xb6ad5b90 (LWP 1117) exited]
[New Thread 0xb62d4b90 (LWP 1118)]
[Thread 0xb62d4b90 (LWP 1118) exited]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb74276c0 (LWP 1113)]
DrawLib::isNoGraphics (this=0xbfb0b29c) at drawlib/DrawLib.cpp:241
241     bool DrawLib::isNoGraphics() {
(gdb) bt
#0  DrawLib::isNoGraphics (this=0xbfb0b29c) at drawlib/DrawLib.cpp:241
#1  0x0817a932 in main (nNumArgs=-1078937228, ppcArgs=0xbfb0b29c) at 
GameInit.cpp:58

And without optimisation:

$ gdb --args xmoto --nogfx
GNU gdb 6.6.90.20070912-debian
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
Using host libthread_db library "/lib/i686/cmov/libthread_db.so.1".
(gdb) r
Starting program: /usr/games/xmoto --nogfx
[Thread debugging using libthread_db enabled]
[New Thread 0xb74296c0 (LWP 20850)]
[New Thread 0xb72d8b90 (LWP 20853)]
[New Thread 0xb6ad7b90 (LWP 20854)]
[New Thread 0xb62d6b90 (LWP 20855)]
[Thread 0xb6ad7b90 (LWP 20854) exited]
[Thread 0xb62d6b90 (LWP 20855) exited]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb74296c0 (LWP 20850)]
0x0809dc8c in DrawLib::isNoGraphics (this=0x0) at drawlib/DrawLib.cpp:242
242       return m_bNoGraphics;
(gdb) bt
#0  0x0809dc8c in DrawLib::isNoGraphics (this=0x0) at drawlib/DrawLib.cpp:242
#1  0x0816c3eb in GameApp::run (this=0xbffae74c, nNumArgs=2, 
ppcArgs=0xbffaef64) at GameInit.cpp:194
#2  0x0816c77b in main (nNumArgs=2, ppcArgs=0xbffaef64) at GameInit.cpp:58
frame 1
#1  0x0816c3eb in GameApp::run (this=0xbffae74c, nNumArgs=2, 
ppcArgs=0xbffaef64) at GameInit.cpp:194
194           if(!drawLib->isNoGraphics()) {
(gdb) l
189         /* Now perform user init */
190         userInit(&v_xmArgs);
191
192         /* Enter the main loop */
193         while(!m_bQuit) {
194           if(!drawLib->isNoGraphics()) {
195             /* Handle SDL events */            
196             SDL_PumpEvents();
197             
198             SDL_Event Event;
(gdb) p drawLib
$1 = (class DrawLib *) 0x0

It looks fairly obvious what the problem is - using drawLib without it
being initialised properly. Similar segfaults occur at other locations,
but once those are fixed, there is a stack corruption issue. I'd suggest
that you contact upstream to ask that they fix this.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-3-686 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages xmoto depends on:
ii  libbz2-1.0              1.0.3-7          high-quality block-sorting file co
ii  libc6                   2.6.1-6          GNU C Library: Shared libraries
ii  libcurl3-gnutls         7.17.0-1         Multi-protocol file transfer libra
ii  libgcc1                 1:4.2.2-3        GCC support library
ii  libgl1-mesa-glx [libgl1 7.0.1-2          A free implementation of the OpenG
ii  libglu1-mesa [libglu1]  7.0.1-2          The OpenGL utility library (GLU)
ii  libjpeg62               6b-14            The Independent JPEG Group's JPEG 
ii  liblua5.1-0             5.1.2-4          Simple, extensible, embeddable pro
ii  libode0debian1          1:0.8.dfsg-3     Open Dynamics Engine - runtime lib
ii  libpng12-0              1.2.15~beta5-3   PNG library - runtime
ii  libsdl-mixer1.2         1.2.8-1          mixer library for Simple DirectMed
ii  libsdl-ttf2.0-0         2.0.9-1          ttf library for Simple DirectMedia
ii  libsdl1.2debian         1.2.12-1         Simple DirectMedia Layer
ii  libsqlite3-0            3.4.2-2          SQLite 3 shared library
ii  libstdc++6              4.2.2-3          The GNU Standard C++ Library v3
ii  xmoto-data              0.3.4-1          2D motocross platform game
ii  zlib1g                  1:1.2.3.3.dfsg-7 compression library - runtime

-- 
bye,
pabs

http://wiki.debian.org/PaulWise

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to