Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 2853 - amixer sef faults
Summary: amixer sef faults
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Arcady Genkin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-19 15:47 UTC by Chuck Haines
Modified: 2003-02-04 19:42 UTC (History)
1 user (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 Chuck Haines 2002-05-19 15:47:45 UTC
I have installed alsa 0.9_rc1 along with alsa-tools,alsa-utils and alsa lib and
it seemed to install fine.  I configured it for my card (a so9und blaster live)
like the doc files instructed.  Alsa starts fine (ie alsasound starts) with no
errors upon boot.  When I type lsmod I see the following:
Module                  Size  Used by    Tainted: P  
snd-seq-midi            3296   0  (autoclean) (unused)
snd-emu10k1-synth       3840   0  (autoclean) (unused)
snd-emux-synth         23936   0  (autoclean) [snd-emu10k1-synth]
snd-seq-midi-emul       4560   0  (autoclean) [snd-emux-synth]
snd-seq-virmidi         2680   0  (autoclean) [snd-emux-synth]
snd-seq-oss            23168   0  (unused)
snd-seq-midi-event      3112   0  [snd-seq-midi snd-seq-virmidi snd-seq-oss]
snd-seq                37484   2  [snd-seq-midi snd-emux-synth snd-seq-midi-emul
snd-seq-virmidi snd-seq-oss snd-seq-midi-event]
snd-mixer-oss           9184   0  (unused)
snd-pcm-oss            36068   0  (unused)
snd-emu10k1            56228   0  [snd-emu10k1-synth]
snd-ac97-codec         22852   0  [snd-emu10k1]
snd-rawmidi            12864   0  [snd-seq-midi snd-seq-virmidi snd-emu10k1]
snd-pcm                47936   0  [snd-pcm-oss snd-emu10k1]
snd-timer              10464   0  [snd-seq snd-pcm]
snd-hwdep               3712   0  [snd-emu10k1]
snd-util-mem            1248   0  [snd-emux-synth snd-emu10k1]
snd-seq-device          3936   0  [snd-seq-midi snd-emu10k1-synth snd-emux-synth
snd-seq-oss snd-seq snd-emu10k1 snd-rawmidi]
snd                    25448   0  [snd-seq-midi snd-emux-synth snd-seq-virmidi
snd-seq-oss snd-seq-midi-event snd-seq snd-mixer-oss snd-pcm-oss snd-emu10k1
snd-ac97-codec snd-rawmidi snd-pcm snd-timer snd-hwdep snd-util-mem snd-seq-device]
NVdriver              946048  18 

indictating that the sound modules loaded correctly.  However when I try to run
amixer to unmute my speakers it seg faults as both root and as a normal user. 
My permissions for /dev/snd are as follows:
drwxr-xr-x    1 root     root            0 Dec 31  1969 .
drwxr-xr-x    1 root     root            0 Dec 31  1969 ..
crw-------    1 crypto   audio    116,   0 Dec 31  1969 controlC0
crw-------    1 crypto   audio    116,  32 Dec 31  1969 controlC1
crw-------    1 crypto   audio    116,  64 Dec 31  1969 controlC2
crw-------    1 crypto   audio    116,  96 Dec 31  1969 controlC3
crw-------    1 crypto   audio    116, 128 Dec 31  1969 controlC4
crw-------    1 crypto   audio    116, 160 Dec 31  1969 controlC5
crw-------    1 crypto   audio    116, 192 Dec 31  1969 controlC6
crw-------    1 crypto   audio    116, 224 Dec 31  1969 controlC7
crw-------    1 crypto   audio    116,   4 Dec 31  1969 hwC0D0
crw-------    1 crypto   audio    116,   8 Dec 31  1969 midiC0D0
crw-------    1 crypto   audio    116,   9 Dec 31  1969 midiC0D1
crw-------    1 crypto   audio    116,  10 Dec 31  1969 midiC0D2
crw-------    1 crypto   audio    116,  24 Dec 31  1969 pcmC0D0c
crw-------    1 crypto   audio    116,  16 Dec 31  1969 pcmC0D0p
crw-------    1 crypto   audio    116,  25 Dec 31  1969 pcmC0D1c
crw-------    1 crypto   audio    116,  26 Dec 31  1969 pcmC0D2c
crw-------    1 crypto   audio    116,  19 Dec 31  1969 pcmC0D3p
crw-------    1 crypto   audio    116,   1 Dec 31  1969 seq
crw-------    1 crypto   audio    116,  33 Dec 31  1969 timer
and my permissions for /dev/sound are as follows:
drwxr-xr-x    1 root     root            0 Dec 31  1969 .
drwxr-xr-x    1 root     root            0 Dec 31  1969 ..
crw-------    1 crypto   audio     14,  14 Dec 31  1969 admmidi
crw-------    1 crypto   audio     14,  12 Dec 31  1969 adsp
crw-------    1 crypto   audio     14,  13 Dec 31  1969 amidi
crw-------    1 crypto   audio     14,   4 Dec 31  1969 audio
crw-------    1 crypto   audio     14,   9 Dec 31  1969 dmmidi
crw-------    1 crypto   audio     14,   3 Dec 31  1969 dsp
crw-------    1 crypto   audio     14,   2 Dec 31  1969 midi00
crw-------    1 crypto   audio     14,   0 Dec 31  1969 mixer
crw-------    1 crypto   audio     14,   1 Dec 31  1969 sequencer
crw-------    1 crypto   audio     14,   8 Dec 31  1969 sequencer2

I also have done an strace while executing amixer and this is the output:
execve("/usr/bin/amixer", ["amixer"], [/* 34 vars */]) = 0
brk(0)                                  = 0x8051ba0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0
x126000
open("/etc/ld.so.preload", O_RDONLY)    = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
close(3)                                = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=27607, ...}) = 0
old_mmap(NULL, 27607, PROT_READ, MAP_PRIVATE, 3, 0) = 0x127000
close(3)                                = 0
open("/lib/libm.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P7\0\000"..., 1024) = 10
24
fstat64(3, {st_mode=S_IFREG|0755, st_size=149624, ...}) = 0
old_mmap(NULL, 136276, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x12e000
mprotect(0x14f000, 1108, PROT_NONE)     = 0
old_mmap(0x14f000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x20000
) = 0x14f000
close(3)                                = 0
open("/usr/lib/libasound.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0py\1\000"..., 1024) = 10
24
fstat64(3, {st_mode=S_IFREG|0755, st_size=542888, ...}) = 0
old_mmap(NULL, 540792, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x150000
mprotect(0x1d1000, 12408, PROT_NONE)    = 0
old_mmap(0x1d1000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x8000
0) = 0x1d1000
close(3)                                = 0
open("/lib/libdl.so.2", O_RDONLY)       = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\374\33"..., 1024) = 102
4
fstat64(3, {st_mode=S_IFREG|0755, st_size=10120, ...}) = 0
old_mmap(NULL, 12220, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x1d5000
mprotect(0x1d7000, 4028, PROT_NONE)     = 0
old_mmap(0x1d7000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1000)
 = 0x1d7000
close(3)                                = 0
open("/lib/libpthread.so.0", O_RDONLY)  = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0D\0\000"..., 1024) = 1
024
fstat64(3, {st_mode=S_IFREG|0755, st_size=85132, ...}) = 0
old_mmap(NULL, 85936, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x1d8000
mprotect(0x1e6000, 28592, PROT_NONE)    = 0
old_mmap(0x1e6000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xd000
) = 0x1e6000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\250\224"..., 1024) = 10
24
fstat64(3, {st_mode=S_IFREG|0755, st_size=1285220, ...}) = 0
old_mmap(NULL, 1242944, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x1ed000
mprotect(0x312000, 42816, PROT_NONE)    = 0
old_mmap(0x312000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1240
00) = 0x312000
old_mmap(0x319000, 14144, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYM
OUS, -1, 0) = 0x319000
close(3)                                = 0
munmap(0x127000, 27607)                 = 0
getrlimit(0x3, 0xbffff820)              = 0
setrlimit(RLIMIT_STACK, {rlim_cur=2044*1024, rlim_max=RLIM_INFINITY}) = 0
getpid()                                = 15832
uname({sys="Linux", node="coruscant.tccgi.com", ...}) = 0
rt_sigaction(SIGRTMIN, {0x1e1008, [], 0x4000000}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x1e0398, [], 0x4000000}, NULL, 8) = 0
rt_sigaction(SIGRT_2, {0x1e1098, [], 0x4000000}, NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [RTMIN], NULL, 8) = 0
_sysctl({{CTL_KERN, KERN_VERSION}, 2, 0xbffff5f4, 64, (nil), 0}) = 0
brk(0)                                  = 0x8051ba0
brk(0x8051bd0)                          = 0x8051bd0
brk(0x8052000)                          = 0x8052000
stat64("/usr/share/alsa/alsa.conf", {st_mode=S_IFREG|0644, st_size=7034, ...}) =
 0
open("/usr/share/alsa/alsa.conf", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=7034, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0
x127000
read(3, "#\n#  ALSA library configuration "..., 4096) = 4096
brk(0x8053000)                          = 0x8053000
brk(0x8054000)                          = 0x8054000
brk(0x8055000)                          = 0x8055000
brk(0x8056000)                          = 0x8056000
read(3, "efaults.ctl.card\n\t\t\t}\n\t\t}\n\t}\n\tty"..., 4096) = 2938
brk(0x8057000)                          = 0x8057000
brk(0x8058000)                          = 0x8058000
brk(0x8059000)                          = 0x8059000
read(3, "", 4096)                       = 0
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x127000, 4096)                  = 0
access("/etc/asound.conf", R_OK)        = -1 ENOENT (No such file or directory)
access("/home/crypto/.asoundrc", R_OK)  = -1 ENOENT (No such file or directory)
brk(0x8058000)                          = 0x8058000
brk(0x8059000)                          = 0x8059000
read(3, "", 4096)                       = 0
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x127000, 4096)                  = 0
access("/etc/asound.conf", R_OK)        = -1 ENOENT (No such file or directory)
access("/home/crypto/.asoundrc", R_OK)  = -1 ENOENT (No such file or directory)
open("/dev/snd/controlC0", O_RDONLY)    = 3
close(3)                                = 0
open("/dev/snd/controlC0", O_RDWR)      = 3
ioctl(3, USBDEVFS_CONTROL, 0xbffff5c8)  = 0
fcntl64(3, F_GETFL)                     = 0x2 (flags O_RDWR)
fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
ioctl(3, USBDEVFS_RELEASEINTERFACE, 0xbffff7c4) = 0
brk(0x805c000)                          = 0x805c000
ioctl(3, USBDEVFS_RELEASEINTERFACE, 0xbffff7c4) = 0
brk(0x805d000)                          = 0x805d000
brk(0x805e000)                          = 0x805e000
brk(0x805f000)                          = 0x805f000
brk(0x8060000)                          = 0x8060000
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++


I hope I have provided all the information that is needed.  If anything else is
needed, please email me and I will get it as quickly as possible.  I scoured the
mailing lists and message boards but couldn't find anything relating to this.

Thanks.
Comment 1 Arcady Genkin (RETIRED) gentoo-dev 2002-05-19 23:19:23 UTC
What happens when you use any other alsa utility, like "alsamixer"? 
Comment 2 Arcady Genkin (RETIRED) gentoo-dev 2002-05-23 11:09:35 UTC
I can't reproduce it on two different machines with different alsa modules.  One
of them has a SB Live (emu10k1, just like you).

Can you post the output of the following command:

  qpkg -I '*alsa*'
Comment 3 Chuck Haines 2002-05-24 09:54:26 UTC
root@coruscant home # qpkg -I '*alsa*'
media-libs/alsa-lib-0.9.0_rc1 *
media-libs/alsa-oss-0.9.0_rc1 *
media-sound/alsa-driver-0.9.0_rc1-r6 *
media-sound/alsa-tools-0.9.0_rc1 *
media-sound/alsa-utils-0.9.0_rc1 *
media-sound/alsa-xmms-0.9 *
media-sound/alsaplayer-0.99.60-r1 *
Comment 4 Arcady Genkin (RETIRED) gentoo-dev 2002-05-26 22:26:06 UTC
Chuck, can you use other alsa utilities, like 'alsamixer'?
Comment 5 Chuck Haines 2002-05-27 14:08:21 UTC
I am able to use alsaplayer, but cannot hear anything.  I will try alsamixer 
tonite.
Comment 6 Seemant Kulleen (RETIRED) gentoo-dev 2002-07-03 21:52:58 UTC
what's news on this, chuck?
Comment 7 Chuck Haines 2002-07-04 12:19:21 UTC
Honestly, the machine I had this problem on no longer works.  So I'm gonaa close
the bug.  Sorry 'bout that.