cube crashes

Bug #21190 reported by Richard Kleeman
4
Affects Status Importance Assigned to Milestone
Ubuntu
Invalid
Medium
Martin Pitt

Bug Description

Ran the game cube in a standard breezy. It crashes after some time with many
messages of the type:

write /dev/sequencer: Bad file descriptor

followed by:

Fatal signal: Segmentation Fault (SDL Parachute Deployed)

These problems do not occur if the program is run through aoss or if the esd
process is killed.

I have an Audigy 2 soundcard and nvdia 3d drivers installed....

Revision history for this message
Martin Pitt (pitti) wrote :

Can you please generate a backtrace as described on
https://wiki.ubuntu.com/DebuggingProgramCrash?

I did not see a similar report for esd, I assume the crash is somewhere in cube
itself or in SDL.

Revision history for this message
Richard Kleeman (kleeman) wrote :

Created an attachment (id=4052)
strace for cube

cube is not compiled with debug symbols. I tried running the program through
gdb and also through strace and the
program no longer crashed. Confirmed the original crash with updated system
(9/24/05). strace produces large output file which I have attached. Command
used was:
strace -o cube.txt ./cube_unix -w1600 -h1200

Revision history for this message
Martin Pitt (pitti) wrote :

(In reply to comment #2)
> Created an attachment (id=4052) [edit]
> strace for cube
>
> cube is not compiled with debug symbols. I tried running the program through
> gdb and also through strace and the
> program no longer crashed.

Ah, classic Heisenbug then. However, can you please try to build a
debugging-enabled version of cube and try again to run it under gdb?

Revision history for this message
Richard Kleeman (kleeman) wrote :

Martin,
Dowloaded the source but it is in a fairly basic state: only Makefiles. I tried
hand editing the Makefile to get it to work but got stuck
with this error which looks like some kind of basic c++ error. Fortran is my
forte ;-)

g++ -Wall -O3 -fsigned-char -fomit-frame-pointer -I../enet/include
-I/usr/include/GL `sdl-config --cflags` -c -o client.o client.cpp
tools.h: In constructor ‘vector<T>::vector()’:
tools.h:159: error: there are no arguments to ‘gp’ that depend on a template
parameter, so a declaration of ‘gp’ must be available
tools.h:159: error: (if you use ‘-fpermissive’, G++ will accept your code, but
allowing the use of an undeclared name is deprecated)
tools.h: In constructor ‘hashtable<T>::hashtable()’:
tools.h:234: error: there are no arguments to ‘gp’ that depend on a template
parameter, so a declaration of ‘gp’ must be available
client.cpp: In function ‘void gets2c()’:
client.cpp:289: warning: enumeration value ‘ENET_EVENT_TYPE_NONE’ not handled in
switch
make: *** [client.o] Error 1

Not sure this is worth the effort. Might be better to take this up with the cube
developer directly?

Revision history for this message
Martin Pitt (pitti) wrote :

(In reply to comment #4)

> Not sure this is worth the effort. Might be better to take this up with the cube
> developer directly?

Yes, that would be easier. Since cube is in universe and we have a lot of things
to do to fix main until Breezy releases, I'm afraid I can't be of much help
about this anyway. You can also try to file a Debian bug, the Debian maintainers
are often pretty clueful about the upstream code, too.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.