Red Hat Bugzilla – Bug 227984
gweled creates enormous music.raw file
Last modified: 2008-08-02 19:40:33 EDT
Description of problem:
Running gweled generates a music.raw file which keeps growing at a rapid rate
eating up disk space.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. run gweled
2. look at size of music.raw file in current directory
$ ls -l music.raw
-rw------- 1 jburgess jburgess 1744785408 Feb 9 00:35 music.raw
The problem and fix:
"Gweled registers all drivers including DISK WRITER drivers, I have
removed RegisterAll and manually register all drivers which makes sense
(AudioFile, ESD, ALSA, OSS and NoSound).... Disable disk writer driver in MikMod
I don't see the problem locally -- that's odd, but well, software is odd sometimes.
I contacted upstream about the issue. I'll probably apply the debian patch to my
package in case upstream has no plans for a new release in the near future.
Looks like it falls back to the disk writer after other options fail.
access("/dev/sound/dsp", F_OK) = -1 ENOENT (No such file or directory)
access("/dev/dsp0", F_OK) = -1 ENOENT (No such file or directory)
open("/dev/dsp", O_WRONLY) = -1 EBUSY (Device or resource busy)
stat("music.raw", 0x7fff5b8c6bd0) = -1 ENOENT (No such file or directory)
open("music.raw", O_RDWR|O_CREAT|O_TRUNC, 0600) = 16
I'm using KDE so artsd has the alsa sound devices open already:
[root@shark ~]# lsof -c artsd | grep /dev
artsd 18024 jburgess mem CHR 116,8 8023
artsd 18024 jburgess 0r CHR 1,3 1883 /dev/null
artsd 18024 jburgess 9r CHR 116,2 6927
artsd 18024 jburgess 10u CHR 116,8 8023
Looking at the documented driver support in MikMod suggests that it doesn't
support artsd (but does support alsa, oss etc). If I kill artsd then the sound
in gweled works and no music.raw file is created.
No answer from upstream; I applied to patches from debian to the devel and FC-6
branch and requested a build.