Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Multimedia
  • Search

Alsa causing segfaults

Help with creation, editing, or playback of sounds, images, or video. Amarok, audacious, mplayer, grip, cdparanoia and anything else that makes a sound or plays a video.
Post Reply
Advanced search
90 posts
  • 1
  • 2
  • 3
  • 4
  • Next
Author
Message
impact
n00b
n00b
Posts: 48
Joined: Wed Mar 02, 2005 4:08 am

Alsa causing segfaults

  • Quote

Post by impact » Wed Mar 23, 2005 7:30 pm

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?
Top
peppy
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 76
Joined: Thu May 13, 2004 11:46 pm

:(

  • Quote

Post by peppy » Wed Mar 23, 2005 8:14 pm

: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
Top
impact
n00b
n00b
Posts: 48
Joined: Wed Mar 02, 2005 4:08 am

  • Quote

Post by impact » Wed Mar 23, 2005 8:16 pm

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...
Top
impact
n00b
n00b
Posts: 48
Joined: Wed Mar 02, 2005 4:08 am

  • Quote

Post by impact » Thu Mar 24, 2005 12:49 am

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?
Top
mascanho
Veteran
Veteran
User avatar
Posts: 1241
Joined: Tue Dec 21, 2004 2:55 am
Location: On my Bmx Bike on a Concrete Park Flatlanding ...
Contact:
Contact mascanho
Website

  • Quote

Post by mascanho » Thu Mar 24, 2005 2:04 am

set it all as modules, not built in , then

Code: Select all

rc-update add alsasound default
Flatland Life is a Choice !
emerge avatar
Top
impact
n00b
n00b
Posts: 48
Joined: Wed Mar 02, 2005 4:08 am

  • Quote

Post by impact » Thu Mar 24, 2005 2:12 am

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?
Top
mascanho
Veteran
Veteran
User avatar
Posts: 1241
Joined: Tue Dec 21, 2004 2:55 am
Location: On my Bmx Bike on a Concrete Park Flatlanding ...
Contact:
Contact mascanho
Website

  • Quote

Post by mascanho » Thu Mar 24, 2005 2:30 am

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
Top
impact
n00b
n00b
Posts: 48
Joined: Wed Mar 02, 2005 4:08 am

  • Quote

Post by impact » Thu Mar 24, 2005 3:54 am

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....
Top
impact
n00b
n00b
Posts: 48
Joined: Wed Mar 02, 2005 4:08 am

  • Quote

Post by impact » Thu Mar 24, 2005 3:58 am

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...
Top
impact
n00b
n00b
Posts: 48
Joined: Wed Mar 02, 2005 4:08 am

  • Quote

Post by impact » Thu Mar 24, 2005 4:50 am

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

Someone?!
Top
mascanho
Veteran
Veteran
User avatar
Posts: 1241
Joined: Tue Dec 21, 2004 2:55 am
Location: On my Bmx Bike on a Concrete Park Flatlanding ...
Contact:
Contact mascanho
Website

  • Quote

Post by mascanho » Thu Mar 24, 2005 12:42 pm

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
Top
Maedhros
Bodhisattva
Bodhisattva
User avatar
Posts: 5511
Joined: Wed Apr 14, 2004 8:10 pm
Location: Durham, UK

  • Quote

Post by Maedhros » Thu Mar 24, 2005 1:29 pm

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
No-one's more important than the earthworm.
Top
impact
n00b
n00b
Posts: 48
Joined: Wed Mar 02, 2005 4:08 am

  • Quote

Post by impact » Thu Mar 24, 2005 5:37 pm

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
Top
impact
n00b
n00b
Posts: 48
Joined: Wed Mar 02, 2005 4:08 am

  • Quote

Post by impact » Thu Mar 24, 2005 6:52 pm

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?
Top
peppy
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 76
Joined: Thu May 13, 2004 11:46 pm

  • Quote

Post by peppy » Thu Mar 24, 2005 7:15 pm

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
Top
Maedhros
Bodhisattva
Bodhisattva
User avatar
Posts: 5511
Joined: Wed Apr 14, 2004 8:10 pm
Location: Durham, UK

  • Quote

Post by Maedhros » Thu Mar 24, 2005 7:28 pm

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.
Top
mascanho
Veteran
Veteran
User avatar
Posts: 1241
Joined: Tue Dec 21, 2004 2:55 am
Location: On my Bmx Bike on a Concrete Park Flatlanding ...
Contact:
Contact mascanho
Website

  • Quote

Post by mascanho » Thu Mar 24, 2005 7:44 pm

yup compiled has modules too, works perfecly here .
Flatland Life is a Choice !
emerge avatar
Top
peppy
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 76
Joined: Thu May 13, 2004 11:46 pm

  • Quote

Post by peppy » Thu Mar 24, 2005 9:36 pm

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
Top
Sodom
n00b
n00b
User avatar
Posts: 58
Joined: Wed Jun 02, 2004 9:52 pm
Location: Dusseldorf, Germany
Contact:
Contact Sodom
Website

  • Quote

Post by Sodom » Fri Mar 25, 2005 10:08 am

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
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
Top
y0zza
n00b
n00b
Posts: 68
Joined: Fri Jul 30, 2004 8:13 pm

  • Quote

Post by y0zza » Fri Mar 25, 2005 12:39 pm

Ah, many thanks for tracking this down. I was experiencing exactly the same problems.
Top
mephisto
n00b
n00b
Posts: 20
Joined: Fri Mar 25, 2005 7:52 am

  • Quote

Post by mephisto » Fri Mar 25, 2005 1:20 pm

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
Jabadabadoooo it works fine now!! thx a lot!
Top
Cintra
Advocate
Advocate
User avatar
Posts: 2111
Joined: Sat Apr 03, 2004 3:49 pm
Location: Norway

  • Quote

Post by Cintra » Fri Mar 25, 2005 1:30 pm

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.
Top
bpeople
n00b
n00b
User avatar
Posts: 17
Joined: Thu Oct 23, 2003 5:19 pm
Location: Malaga, Spain
Contact:
Contact bpeople
Website

  • Quote

Post by bpeople » Fri Mar 25, 2005 11:53 pm

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: 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.
Top
seank
l33t
l33t
Posts: 686
Joined: Thu Jul 08, 2004 1:44 am
Contact:
Contact seank
Website

  • Quote

Post by seank » Mon Mar 28, 2005 11:28 pm

So, did anyone submit a bug report?
Top
d13f00l
n00b
n00b
Posts: 26
Joined: Mon Aug 30, 2004 6:32 am

  • Quote

Post by d13f00l » Tue Mar 29, 2005 2:44 am

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.
Top
Post Reply

90 posts
  • 1
  • 2
  • 3
  • 4
  • Next

Return to “Multimedia”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy