Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 266885 - games-puzzle/gweled creates growing file in $HOME
Summary: games-puzzle/gweled creates growing file in $HOME
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
: 279828 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-04-20 19:51 UTC by Dominik Kozaczko
Modified: 2010-03-02 20:47 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dominik Kozaczko 2009-04-20 19:51:19 UTC
I played gweled and encountered a strange thing. The game creates file music.raw in $HOME. The file grows infinitely using all the space left on drive.

I found that gweled does this using lsof on the file.

I touched music.raw and then made chmod -rw music.raw
Then the game can't initialize. So the ability to create and write to that file is crucial for the game to run.

Reproducible: Always

Steps to Reproduce:
1. Run gweled
2. Wait
3. Loook for the size of $HOME/music.raw




 $ emerge --info
Portage 2.2_rc31 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.29-gentoo x86_64)
=================================================================
System uname: Linux-2.6.29-gentoo-x86_64-AMD_Phenom-tm-_9650_Quad-Core_Processor-with-glibc2.2.5
Timestamp of tree: Mon, 20 Apr 2009 16:30:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.5.4-r2
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -msse3 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb /var/spool/torque"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=k8 -msse3 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.po.opole.pl http://distfiles.gentoo.org"
LANG="pl_PL.UTF-8"
LC_ALL="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="pl en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/cwiid /usr/portage/local/layman/sunrise /usr/portage/local/layman/voip /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X acl acpi alsa amd64 avahi berkdb bzip2 cli cracklib crypt cups dbus dri dvd flac fortran gdbm gif gpm gtk hal iconv ipv6 isdnlog java jpeg jpeg2k libnotify midi mmx mp3 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pcre perl png pppd python readline reflection sdl session smp spell spl sse sse2 sse3 ssl startup-notification svg sysfs tcpd threads unicode usb vorbis xinerama xorg xprint zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse joystick evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl en" USERLAND="GNU" VIDEO_CARDS="radeon vesa mach64 radeonhd"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Tristan Heaven (RETIRED) gentoo-dev 2009-08-01 11:20:15 UTC
*** Bug 279828 has been marked as a duplicate of this bug. ***
Comment 2 Dominik Kozaczko 2009-08-01 12:45:31 UTC
A temporary solution to this problem is symlinking $HOME/music.raw to /dev/null :)
Comment 3 Patrick Lerner 2009-08-01 12:50:49 UTC
(In reply to comment #2)
> A temporary solution to this problem is symlinking $HOME/music.raw to /dev/null
> :)

I don't like having too many files in ~. I'm quite tidy when it comes to files on my computer. A better "hacky" workaround would have been a script symlinking it, then executing gweled and deleting the link after the game ends.
Anyway, doesn't really matter because the real solution is just a tiny little patch.
Comment 4 Tristan Heaven (RETIRED) gentoo-dev 2009-08-11 00:48:08 UTC
Shouldn't MikMod_RegisterAllDrivers() be registering alsa/oss with a higher priority than the file output?
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2009-08-11 00:54:59 UTC
It does.  It falls back to the disk writer when the network and hardware drivers fail.
Comment 6 Patrick Lerner 2009-08-11 03:45:19 UTC
(In reply to comment #4)
> Shouldn't MikMod_RegisterAllDrivers() be registering alsa/oss with a higher
> priority than the file output?
> 

Maybe a running pulseadudio server fracked it up by blocking the audio hardware. That's probably what it is in my case. Imho it should never fall back to file output in an application like that.
Comment 7 Denilson Sá Maia 2009-11-20 23:01:46 UTC
(In reply to comment #1)
> *** Bug 279828 has been marked as a duplicate of this bug. ***

This duplicate bug has a patch to gweled. Haven't tested it, not sure if it works.

There is also the bug 97507, which claims to have fixed libmikmod with 3.2.0_beta, but the latest comment (#12) says it is messed again.

Anyway, the current libmikmod seems broken.
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2010-03-01 23:03:08 UTC
(In reply to comment #7)
> (In reply to comment #1)
> > *** Bug 279828 has been marked as a duplicate of this bug. ***
> 
> This duplicate bug has a patch to gweled. Haven't tested it, not sure if it
> works.
> 
> There is also the bug 97507, which claims to have fixed libmikmod with
> 3.2.0_beta, but the latest comment (#12) says it is messed again.
> 
> Anyway, the current libmikmod seems broken.
> 

The alsa output plug-in doesn't work / do anything useful in current state. 

With that said, 3.2.0_beta2-r2 has USE="raw" to enable/disable the raw file write plug-in now.
Comment 9 Mr. Bones. (RETIRED) gentoo-dev 2010-03-02 20:47:28 UTC
I'm going to close this bug out.  It's not really a bug so much as unexpected, probably-not-desired behavior.  With the addition of the raw use flag to libmikmod though it's not an issue.

Basically, if your sound setup isn't correct there won't be any sound, but unless you specifically asked for the raw driver (in which case, you would be know what the file output was about) it won't fill up your drive with sound output.