[apport] prboom crashed with SIGSEGV in free()

Bug #101936 reported by der_vegi
28
Affects Status Importance Assigned to Milestone
prboom (Debian)
Fix Released
Unknown
prboom (Ubuntu)
Incomplete
Medium
Unassigned

Bug Description

Binary package hint: prboom

Whenever I start prboom (with or without linux32), it looks my X-Server after a few seconds.

I'm using feisty on an amd64 machine.

ProblemType: Crash
Architecture: amd64
CrashCounter: 1
Date: Mon Apr 2 17:29:30 2007
DistroRelease: Ubuntu 7.04
ExecutablePath: /usr/games/prboom
Package: prboom 2:2.4.6+dfsg-1
PackageArchitecture: amd64
ProcCmdline: prboom --help
ProcCwd: /home/mm
ProcEnviron:
 SHELL=/bin/bash
 PATH=/home/mm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=de_DE.UTF-8
 LANGUAGE=de_DE:de:en_GB:en
Signal: 11
SourcePackage: prboom
StacktraceTop:
 ?? () from /lib/libc.so.6
 ?? () from /lib/libc.so.6
 free () from /lib/libc.so.6
 snd_pcm_munmap () from /usr/lib/libasound.so.2
 snd_pcm_hw_free () from /usr/lib/libasound.so.2
Uname: Linux tux 2.6.20-13-generic #2 SMP Sat Mar 24 23:12:02 UTC 2007 x86_64 GNU/Linux
UserGroups: adm admin audio cdrom dialout dip floppy lpadmin netdev plugdev powerdev scanner video

Revision history for this message
der_vegi (m-may) wrote :
Revision history for this message
Dan O'Huiginn (daniel-ohuiginn) wrote :

Thanks for your report!

Revision history for this message
Apport retracing service (apport) wrote : Symbolic stack trace

StacktraceTop:malloc_consolidate () from /lib/libc.so.6
_int_free () from /lib/libc.so.6
free () from /lib/libc.so.6
snd_pcm_munmap (pcm=0x7c8170) at pcm_mmap.c:517
snd_pcm_hw_free (pcm=0x2b0bac14b960) at pcm.c:842

Revision history for this message
Apport retracing service (apport) wrote : Symbolic threaded stack trace
Changed in prboom:
importance: Undecided → Medium
Revision history for this message
der_vegi (m-may) wrote :

Works in Hardy now, though without sound.

Changed in prboom:
status: New → Fix Released
Revision history for this message
der_vegi (m-may) wrote :

Ops, I was wrong. Prboom just runs, when sound is turned off via 'prboom -nosound'. Otherwise, it still locks X on Hardy. If I switch to tty, and kill the terminal, from it was started, I can return to X, but with my mouse locked to the center and the resolution of the game.

Changed in prboom:
status: Fix Released → New
Revision history for this message
TheGZeus (gzeusmants) wrote :

I'm in the same boat.

This is my favorite game...
Well, this and Chrono Trigger.

Revision history for this message
Freyr Gunnar Ólafsson (gnarlin) wrote :

I'm having the same problem with running prboom with freedoom.

Revision history for this message
Omegamormegil (omegamormegil) wrote :

It works if you install timidity, so it appears to be related to problems with midi sound. Perhaps, timidity should be a dependency?

Revision history for this message
Yfrwlf (yfrwlf) wrote :

If the user already has midi configured, installing Timidity wouldn't mess that up, right? But at the very least, wouldn't prboom start using Timidity instead of the user-configured midi? However...

Maybe it's just me, but since I've never seen hardware midi working out of the box, I'm thinking that maybe it's just far easier to make Timidity or some kind of midi emulator and sound bank be a dependency of any program which requires midi. Not only does it seem like out-of-the-box hardware midi device support is a pretty long way away from being a reality, but midi emulation doesn't take much CPU power. I have an old processor, and prboom runs wonderfully with Timidity installed (aside from a few bugs here and there that the game has).

Revision history for this message
Jon Dowland (jond) wrote :

It's a problem with MIDI playback and some hardware, not all. Timidity fixes it because that makes prboom use software MIDI playback rather than hardware. It shouldn't be a dependency because not all hardware MIDI is affected.

I think it's a bug in the SDL mixer library.

You can get around it by either touching /etc/timidity/timidity.cfg or running with -nomusic (which still gives you sound effects).

Revision history for this message
Yfrwlf (yfrwlf) wrote :

OK, well I guess I should be filling out a Soundblaster Live doesn't have working MIDI out of the box bug then. :)

To find out if it's a bug in SDL or not, if someone could find some other game that used it and the same crash would happen, that would of course help verify this. Anyone know of some other games that use the SDL mixer for MIDI playback? :)

Revision history for this message
Jon Dowland (jond) wrote :

Penguin command apparently might behave the same:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=298982

It was a while ago but in the libsdl1.2-mixer documentation it says "do not do <something>", I think if you are using it asynchronously, prboom does. When I stopped it doing that (patch not available but I recall it wasn't too complex), the crash wasn't prevented, but it did happen later on (and the backtrace became more useful). I'll see if I can remember what it was I did.

Changed in prboom:
status: Unknown → Incomplete
Revision history for this message
Don Forigua (ingforigua) wrote :

It is my terminal output, i'm using lucid

Revision history for this message
Jon Dowland (jond) wrote :

Ing. Forigua, please read the bug description more carefully. Your output does not match the behaviour in this bug. Your problem looks more like https://bugs.launchpad.net/ubuntu/+source/prboom/+bug/375498 , which has been fixed in a package version for Maverick.

Changed in prboom (Ubuntu):
status: New → Incomplete
Changed in prboom (Debian):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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