Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21410 - alsa-driver-0.9.3c access violation
Summary: alsa-driver-0.9.3c access violation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Arcady Genkin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-21 06:11 UTC by Simonics Zsolt
Modified: 2003-05-24 22:38 UTC (History)
1 user (show)

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


Attachments
alsa-driver-0.9c sandbox violation log (sandbox-alsa-driver-0.9.3c-10477.log,2.34 KB, text/plain)
2003-05-21 06:16 UTC, Simonics Zsolt
Details
The patch (alsa-driver-install.patch,1.51 KB, patch)
2003-05-23 14:08 UTC, Arcady Genkin (RETIRED)
Details | Diff
The patch (alsa-driver-install.patch,1.51 KB, patch)
2003-05-23 14:08 UTC, Arcady Genkin (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Simonics Zsolt 2003-05-21 06:11:24 UTC
Summary says everything, log attached.

emerge info:
Portage 2.0.48 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.20-pfeifer-r1_pre10 i686 AMD Athlon(tm) XP 1600+
GENTOO_MIRRORS="http://gentoo.linux.no"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/cvs/share/config
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/portage.local"
USE="x86 oss apm gif jpeg kde libg++ mikmod mmx ncurses pdflib png quicktime
spell xml2 xmms xv zlib alsa gdbm berkdb slang readline tcltk guile X sdl gpm
tcpd pam libwww ssl perl python imlib gtk qt motif opengl mozilla aavm nls ipv6
oggvorbis -gnome crypt mysql cdr apache2 -java -svga -directfb -esd -ldap -cups
-arts encode truetype dvd mpeg avi 3dnow sse"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=athlon-xp -O2 -pipe"
CXXFLAGS="-mcpu=athlon-xp -O2 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache userpriv usersandbox"

Reproducible: Always
Steps to Reproduce:
1. emerge alsa-driver
2.
3.
Comment 1 Simonics Zsolt 2003-05-21 06:16:20 UTC
Created attachment 12243 [details]
alsa-driver-0.9c sandbox violation log

small detail from the console output:

...
  install -m 755 -g root -o root utils/alsasound
/var/tmp/portage/alsa-driver-0.9.3c/image//etc/init.d/alsasound; \
fi
The ALSA devices were removed from /proc/asound/dev directory.
Creating static device entries in /dev/snd.
ACCESS DENIED  unlink:	  /dev/mixer
rm: cannot remove `/dev/mixer': Permission denied
ACCESS DENIED  unlink:	  /dev/mixer0
rm: cannot remove `/dev/mixer0': Permission denied
...
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2003-05-21 13:02:22 UTC
try again without USERPRIV
Comment 3 Simonics Zsolt 2003-05-21 13:39:34 UTC
Removed userpriv and usersandbox from FEATURES, but the problem remains exactly the same. Maybe the alsa Makefile ignores DESTDIR when install invoked?
Comment 4 Arcady Genkin (RETIRED) gentoo-dev 2003-05-23 14:07:10 UTC
Strange, I cannot replicate it.  However, this may be related to this:

http://www.mail-archive.com/alsa-devel@lists.sourceforge.net/msg08006.html

I'll attach the patch, mentioned in the message.  Won't be able to get to it until a few days later, though.
Comment 5 Arcady Genkin (RETIRED) gentoo-dev 2003-05-23 14:08:38 UTC
Created attachment 12338 [details, diff]
The patch

Tom Burkart's patch.
Comment 6 Arcady Genkin (RETIRED) gentoo-dev 2003-05-23 14:08:51 UTC
Created attachment 12339 [details, diff]
The patch
Comment 7 Arcady Genkin (RETIRED) gentoo-dev 2003-05-23 14:09:44 UTC
Comment on attachment 12339 [details, diff]
The patch

Duplicate
Comment 8 Arcady Genkin (RETIRED) gentoo-dev 2003-05-23 14:11:56 UTC
On a second look, the patch is about installing the init script, but the access violations are caused by trying to create device entries in /dev, so the patch is not likely to be relevant to this issue.
Comment 9 Arcady Genkin (RETIRED) gentoo-dev 2003-05-24 12:25:21 UTC
Should be fixed in 0.9.3c-r1.
Comment 10 Simonics Zsolt 2003-05-24 13:21:20 UTC
Ok, -r1 installed, but

root:~# alsactl restore
alsactl: set_controls:982: snd_ctl_open error: No such file or directory
root:~# alsamixer 

alsamixer: function snd_ctl_open failed for default: No such file or directory

strace alsamixer shows:
...
open("/dev/snd/controlC0", O_RDWR)      = -1 ENOENT (No such file or directory)
open("/dev/snd/controlC0", O_RDONLY)    = -1 ENOENT (No such file or directory)

I can fix it with untar alsa-driver archive, and run the snddevices script in it.
That make the neccessary devices and symlinks.
Comment 11 Arcady Genkin (RETIRED) gentoo-dev 2003-05-24 14:52:30 UTC
Are you using devfs?
Comment 12 Simonics Zsolt 2003-05-24 15:09:37 UTC
No, i don't. Always have problems with devfs.
Comment 13 Arcady Genkin (RETIRED) gentoo-dev 2003-05-24 15:16:50 UTC
Aha, that explains it.  Previously you had a symlink /dev/snd -> /proc/asound/dev.   With 0.9.3c they have removed /proc/asound/dev, so you, indeed, need to create the  entries in /dev with the snddevices script.  Perhaps the ebuild should be installing it somewhere for those not using devfs.  Will get to this later.
Comment 14 Simonics Zsolt 2003-05-24 15:24:50 UTC
Thank you for the explanation.
Comment 15 Arcady Genkin (RETIRED) gentoo-dev 2003-05-24 22:38:17 UTC
The revised 0.9.3c-r1 now installs /usr/sbin/snddevices and prints a message, telling the people who are not using devfs to run the script.

Thanks for your feedback.