Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Alsa causing segfaults
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3, 4  Next  
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
impact
n00b
n00b


Joined: 02 Mar 2005
Posts: 48

PostPosted: Wed Mar 23, 2005 7:30 pm    Post subject: Alsa causing segfaults Reply with quote

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?
Back to top
View user's profile Send private message
peppy
Tux's lil' helper
Tux's lil' helper


Joined: 13 May 2004
Posts: 76

PostPosted: Wed Mar 23, 2005 8:14 pm    Post subject: :( Reply with quote

:cry: me too
_________________
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
Back to top
View user's profile Send private message
impact
n00b
n00b


Joined: 02 Mar 2005
Posts: 48

PostPosted: Wed Mar 23, 2005 8:16 pm    Post subject: Reply with quote

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...
Back to top
View user's profile Send private message
impact
n00b
n00b


Joined: 02 Mar 2005
Posts: 48

PostPosted: Thu Mar 24, 2005 12:49 am    Post subject: Reply with quote

Something new:
Just got alsa working for the most part with a kernel recompile (Forgot to set /dev to automatically mount at boot)
however, alsamixer still segfaults when something goes to use alsa
and xmms segfaults when using alsa, but not when using OSS...

Anyone?
Beuler?
Back to top
View user's profile Send private message
mascanho
Veteran
Veteran


Joined: 21 Dec 2004
Posts: 1241
Location: On my Bmx Bike on a Concrete Park Flatlanding ...

PostPosted: Thu Mar 24, 2005 2:04 am    Post subject: Reply with quote

set it all as modules, not built in , then
Code:
rc-update add alsasound default

_________________
Flatland Life is a Choice !
emerge avatar
Back to top
View user's profile Send private message
impact
n00b
n00b


Joined: 02 Mar 2005
Posts: 48

PostPosted: Thu Mar 24, 2005 2:12 am    Post subject: Reply with quote

tried that... same problem...

On that note, I also tried different sets of sources
2.6.11
2.6.11-ck
2.6.9

All combinations of modules/built-in and alsa-driver (with each kernel)
I'm most likely going to reformat again, any other ideas?
Back to top
View user's profile Send private message
mascanho
Veteran
Veteran


Joined: 21 Dec 2004
Posts: 1241
Location: On my Bmx Bike on a Concrete Park Flatlanding ...

PostPosted: Thu Mar 24, 2005 2:30 am    Post subject: Reply with quote

Not built in, Modules "M" on your kernel, with your driver as an "M" to , and then be sure youre booting to that kernel, and btw how are you compilinkg your kernel ?
_________________
Flatland Life is a Choice !
emerge avatar
Back to top
View user's profile Send private message
impact
n00b
n00b


Joined: 02 Mar 2005
Posts: 48

PostPosted: Thu Mar 24, 2005 3:54 am    Post subject: Reply with quote

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....
Back to top
View user's profile Send private message
impact
n00b
n00b


Joined: 02 Mar 2005
Posts: 48

PostPosted: Thu Mar 24, 2005 3:58 am    Post subject: Reply with quote

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...
Back to top
View user's profile Send private message
impact
n00b
n00b


Joined: 02 Mar 2005
Posts: 48

PostPosted: Thu Mar 24, 2005 4:50 am    Post subject: Reply with quote

Well, just confirmed that its _not_ reiserfs (I didn't think so)
Just reformatted _again_ with ext3...
no dice, same procedure, same problem..

Someone?!
Back to top
View user's profile Send private message
mascanho
Veteran
Veteran


Joined: 21 Dec 2004
Posts: 1241
Location: On my Bmx Bike on a Concrete Park Flatlanding ...

PostPosted: Thu Mar 24, 2005 12:42 pm    Post subject: Reply with quote

Hum .... it seems to me either alsa or your mpg123 is the problem, can you play mp3 with xmms or something else ?
check error logs to see if you can find something, and wich versions of alsa-lib and -alsa-headers have you installed ?
_________________
Flatland Life is a Choice !
emerge avatar
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Thu Mar 24, 2005 1:29 pm    Post subject: Reply with quote

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:
=media-libs/alsa-lib-1.0.8
=media-sound/alsa-utils-1.0.8

_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
impact
n00b
n00b


Joined: 02 Mar 2005
Posts: 48

PostPosted: Thu Mar 24, 2005 5:37 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
impact
n00b
n00b


Joined: 02 Mar 2005
Posts: 48

PostPosted: Thu Mar 24, 2005 6:52 pm    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
peppy
Tux's lil' helper
Tux's lil' helper


Joined: 13 May 2004
Posts: 76

PostPosted: Thu Mar 24, 2005 7:15 pm    Post subject: Reply with quote

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.
_________________
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
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Thu Mar 24, 2005 7:28 pm    Post subject: Reply with quote

I'm using the kernel alsa drivers, compiled as modules, if that helps. And a bug report sounds like the way to go. :)
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
mascanho
Veteran
Veteran


Joined: 21 Dec 2004
Posts: 1241
Location: On my Bmx Bike on a Concrete Park Flatlanding ...

PostPosted: Thu Mar 24, 2005 7:44 pm    Post subject: Reply with quote

yup compiled has modules too, works perfecly here .
_________________
Flatland Life is a Choice !
emerge avatar
Back to top
View user's profile Send private message
peppy
Tux's lil' helper
Tux's lil' helper


Joined: 13 May 2004
Posts: 76

PostPosted: Thu Mar 24, 2005 9:36 pm    Post subject: Reply with quote

I compiled it in kernel and it works :)
_________________
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
Back to top
View user's profile Send private message
Sodom
n00b
n00b


Joined: 02 Jun 2004
Posts: 58
Location: Dusseldorf, Germany

PostPosted: Fri Mar 25, 2005 10:08 am    Post subject: Reply with quote

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:
=media-libs/alsa-lib-1.0.8
=media-sound/alsa-utils-1.0.8


You made my day ... very thanks. :)
_________________
"The only way...to avoid moral corruption would be to have an OS that is free." Richard M. Stallman
Back to top
View user's profile Send private message
y0zza
n00b
n00b


Joined: 30 Jul 2004
Posts: 68

PostPosted: Fri Mar 25, 2005 12:39 pm    Post subject: Reply with quote

Ah, many thanks for tracking this down. I was experiencing exactly the same problems.
Back to top
View user's profile Send private message
mephisto
n00b
n00b


Joined: 25 Mar 2005
Posts: 20

PostPosted: Fri Mar 25, 2005 1:20 pm    Post subject: Reply with quote

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:
=media-libs/alsa-lib-1.0.8
=media-sound/alsa-utils-1.0.8


Jabadabadoooo it works fine now!! thx a lot!
Back to top
View user's profile Send private message
Cintra
Advocate
Advocate


Joined: 03 Apr 2004
Posts: 2111
Location: Norway

PostPosted: Fri Mar 25, 2005 1:30 pm    Post subject: Reply with quote

No problems with alsa at ~x86 i.e. 1.0.8 here, with sound built-in..
mvh
_________________
"I am not bound to please thee with my answers" W.S.
Back to top
View user's profile Send private message
bpeople
n00b
n00b


Joined: 23 Oct 2003
Posts: 17
Location: Malaga, Spain

PostPosted: Fri Mar 25, 2005 11:53 pm    Post subject: Reply with quote

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.


Yeah!!! Thanks, I was becoming crazy with xmms. I didn't uninstall "alsa-headers-1.0.8" and it works:

Code:

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.
Back to top
View user's profile Send private message
seank
l33t
l33t


Joined: 08 Jul 2004
Posts: 686

PostPosted: Mon Mar 28, 2005 11:28 pm    Post subject: Reply with quote

So, did anyone submit a bug report?
Back to top
View user's profile Send private message
d13f00l
n00b
n00b


Joined: 30 Aug 2004
Posts: 26

PostPosted: Tue Mar 29, 2005 2:44 am    Post subject: Reply with quote

Heh heh. I just built alsalib 1.09 from scratch instead. I just hit the same problem and it's been driving me insane for the past few days.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Goto page 1, 2, 3, 4  Next
Page 1 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum