Alsa causing segfaults
Alsa causing segfaults
Don't know where to start troubleshooting on this one...
I've got my ALSA built into kernel, driver for my sound (emu10k1) is built in (non-module)
brand new Gentoo install
did #emerge alsa-utils
setup ALSA according to the guide, but for some reason alsamixer (and anything that uses alsa) segfaults.
alsamixer will run for a bit, then segfault anytime anything tries to use ALSA (gaim, xmms, mpg123)
Any thoughts?
Update: Just tried with ALSA out of the kernel and added via #emerge alsa-driver alsa-oss alsa-utils
same problem...
Anything?
I've got my ALSA built into kernel, driver for my sound (emu10k1) is built in (non-module)
brand new Gentoo install
did #emerge alsa-utils
setup ALSA according to the guide, but for some reason alsamixer (and anything that uses alsa) segfaults.
alsamixer will run for a bit, then segfault anytime anything tries to use ALSA (gaim, xmms, mpg123)
Any thoughts?
Update: Just tried with ALSA out of the kernel and added via #emerge alsa-driver alsa-oss alsa-utils
same problem...
Anything?
:(
SERVER.................DESKTOP
MSI k7...................Abit kx7-333R
Duron 1.4ghz..........Athlon 1.8ghz
320mb mem............768mb mem
200gb HD................80GB HD
no vid.....................Radeon 9200
all on udev:nptl:stage 1/3
MSI k7...................Abit kx7-333R
Duron 1.4ghz..........Athlon 1.8ghz
320mb mem............768mb mem
200gb HD................80GB HD
no vid.....................Radeon 9200
all on udev:nptl:stage 1/3
Someone help us!
I've had alsa working before, on all my other installs, and it was never a problem, which is why I don't understand what I did differently this time...
I'm using ReiserFS instead of XFS, but I can't see how that would make a difference
Adding on:
I can easily duplicate the problem by the following steps:
launch alsamixer in a console
open another console
#mpg123 anymp3file.mp3
This causes alsamixer to segfault, dropping me to a black console (normally background is white)
mpg123 pretends to play, but nothing comes out the speakers...
I've had alsa working before, on all my other installs, and it was never a problem, which is why I don't understand what I did differently this time...
I'm using ReiserFS instead of XFS, but I can't see how that would make a difference
Adding on:
I can easily duplicate the problem by the following steps:
launch alsamixer in a console
open another console
#mpg123 anymp3file.mp3
This causes alsamixer to segfault, dropping me to a black console (normally background is white)
mpg123 pretends to play, but nothing comes out the speakers...
- mascanho
- Veteran

- Posts: 1241
- Joined: Tue Dec 21, 2004 2:55 am
- Location: On my Bmx Bike on a Concrete Park Flatlanding ...
- Contact:
set it all as modules, not built in , then
Code: Select all
rc-update add alsasound defaultFlatland Life is a Choice !
emerge avatar
emerge avatar
just tried as modules on the kernel
same problem...
compiling kernel like this:
cd /usr/src/linux (linked to the right spot each time)
make menuconfig
--setup
make
make modules_install
cp arch/x86_64/boot/bzImage /boot/name-of-kernel
edit grub.conf...
reboot
same way I've always done it, never had a problem before now....
same problem...
compiling kernel like this:
cd /usr/src/linux (linked to the right spot each time)
make menuconfig
--setup
make
make modules_install
cp arch/x86_64/boot/bzImage /boot/name-of-kernel
edit grub.conf...
reboot
same way I've always done it, never had a problem before now....
OK, I literally _just_ reformatted.
Followed the guide pretty much exactly (used the ck-sources instead)
emerged these items ONLY:
metalog, vixie-cron, reiserfsprogs, mirrorselect, ck-sources (~amd64), grub
Once rebooted, the first thing I did was #emerge alsa-utils mpg123
alsa-utils did its deps as well (alsa-headers, alsa-lib, possibly a few others)
I then opened a terminal with alsamixer
and ran "mpg123 mp3file.mp3" in a 2nd terminal.
This caused alsamixer to segfault the same way as it did before the reboot...
any ideas?
could it _possibly_ be the reiserfs?
Its the _only_ thing that was changed from when it worked in my last install to now...
Followed the guide pretty much exactly (used the ck-sources instead)
emerged these items ONLY:
metalog, vixie-cron, reiserfsprogs, mirrorselect, ck-sources (~amd64), grub
Once rebooted, the first thing I did was #emerge alsa-utils mpg123
alsa-utils did its deps as well (alsa-headers, alsa-lib, possibly a few others)
I then opened a terminal with alsamixer
and ran "mpg123 mp3file.mp3" in a 2nd terminal.
This caused alsamixer to segfault the same way as it did before the reboot...
any ideas?
could it _possibly_ be the reiserfs?
Its the _only_ thing that was changed from when it worked in my last install to now...
I had mpd segfault on me a few times, and downgrading alsa-lib and alsa-utils to version 1.0.7 seemed to cure it. I masked 1.0.8 with these lines in /etc/portage/package.mask:
Code: Select all
=media-libs/alsa-lib-1.0.8
=media-sound/alsa-utils-1.0.8No-one's more important than the earthworm.
Its not mpg123 thats segfaulting. Any alsa playback from any program causes segfaults in alsamixer.
I run alsamixer in one terminal (leave it running)
Then wait/force a sound playback: Get a message through gaim, play something in mpg123, etc
This causes a segfault in alsamixer.
If I tried to do the playback through xmms, xmms crashes as well as the segfault in alsamixer...
I'm using 1.0.8 of all of the alsa-components. I'll try with 1.0.7's in just a bit
I run alsamixer in one terminal (leave it running)
Then wait/force a sound playback: Get a message through gaim, play something in mpg123, etc
This causes a segfault in alsamixer.
If I tried to do the playback through xmms, xmms crashes as well as the segfault in alsamixer...
I'm using 1.0.8 of all of the alsa-components. I'll try with 1.0.7's in just a bit
Alrighty, pretty much resolved. Steps taken to fix are listed below, and the problem has been narrowed down to alsa-lib-1.0.8...
Added "=media-sound/alsa-headers-1.0.8" "=media-libs/alsa-lib-1.0.8" and "=media-sound/alsa-utils-1.0.8" to package.mask
Emerged alsa-utils (gave me headers-1.0.7, lib-1.0.8, and utils 1.0.6)
Everything worked fine.
The order of deps was: Utils required Libs required Headers
So I unmasked them in that order, emerging as I went.
Headers installed fine, and worked after the emerge
However, as soon as I emerged alsa-lib-1.0.8 I had the same problem as was described earlier (segfaults in alsamixer and xmms). Reverted back to alsa-lib-1.0.7 and everything worked again...
I assume I should file a bug report?
Added "=media-sound/alsa-headers-1.0.8" "=media-libs/alsa-lib-1.0.8" and "=media-sound/alsa-utils-1.0.8" to package.mask
Emerged alsa-utils (gave me headers-1.0.7, lib-1.0.8, and utils 1.0.6)
Everything worked fine.
The order of deps was: Utils required Libs required Headers
So I unmasked them in that order, emerging as I went.
Headers installed fine, and worked after the emerge
However, as soon as I emerged alsa-lib-1.0.8 I had the same problem as was described earlier (segfaults in alsamixer and xmms). Reverted back to alsa-lib-1.0.7 and everything worked again...
I assume I should file a bug report?
Yeah, I am about to try this method.
Have we learned that it makes no difference if alsa is compiled in the kernel or as a module?
I am about to try it compiled in the kernel.
Have we learned that it makes no difference if alsa is compiled in the kernel or as a module?
I am about to try it compiled in the kernel.
SERVER.................DESKTOP
MSI k7...................Abit kx7-333R
Duron 1.4ghz..........Athlon 1.8ghz
320mb mem............768mb mem
200gb HD................80GB HD
no vid.....................Radeon 9200
all on udev:nptl:stage 1/3
MSI k7...................Abit kx7-333R
Duron 1.4ghz..........Athlon 1.8ghz
320mb mem............768mb mem
200gb HD................80GB HD
no vid.....................Radeon 9200
all on udev:nptl:stage 1/3
You made my day ... very thanks.Maedhros wrote:I had mpd segfault on me a few times, and downgrading alsa-lib and alsa-utils to version 1.0.7 seemed to cure it. I masked 1.0.8 with these lines in /etc/portage/package.mask:Code: Select all
=media-libs/alsa-lib-1.0.8 =media-sound/alsa-utils-1.0.8
"The only way...to avoid moral corruption would be to have an OS that is free." Richard M. Stallman
Jabadabadoooo it works fine now!! thx a lot!Maedhros wrote:I had mpd segfault on me a few times, and downgrading alsa-lib and alsa-utils to version 1.0.7 seemed to cure it. I masked 1.0.8 with these lines in /etc/portage/package.mask:Code: Select all
=media-libs/alsa-lib-1.0.8 =media-sound/alsa-utils-1.0.8
Yeah!!! Thanks, I was becoming crazy with xmms. I didn't uninstall "alsa-headers-1.0.8" and it works:impact wrote:Alrighty, pretty much resolved. Steps taken to fix are listed below, and the problem has been narrowed down to alsa-lib-1.0.8...
Added
"=media-sound/alsa-headers-1.0.8"
"=media-libs/alsa-lib-1.0.8"
"=media-sound/alsa-utils-1.0.8"
to package.mask
Emerged alsa-utils (gave me headers-1.0.7, lib-1.0.8, and utils 1.0.6)
Everything worked fine.
Code: Select all
media-libs/alsa-lib-1.0.7 *
media-sound/alsa-utils-1.0.6 *
media-sound/alsa-headers-1.0.8 *
The sky above the port was the color of television, tuned to a dead channel.




