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
  • Previous
  • 1
  • 2
  • 3
  • 4
  • Next
Author
Message
seank
l33t
l33t
Posts: 686
Joined: Thu Jul 08, 2004 1:44 am
Contact:
Contact seank
Website

  • Quote

Post by seank » Tue Mar 29, 2005 3:45 am

Cool...I hope the developers update portage soon.
Top
whytown
n00b
n00b
Posts: 7
Joined: Fri Mar 25, 2005 5:06 pm
Location: Sweden

  • Quote

Post by whytown » Tue Mar 29, 2005 4:09 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
Finaly, it works! :)

I am also using emu10k1, I have been using oss instead of alsa. Since I am a newbie I didn't dare to call it a bug...
Top
mr_smidge
n00b
n00b
User avatar
Posts: 64
Joined: Mon Aug 11, 2003 11:26 am
Location: London

  • Quote

Post by mr_smidge » Tue Mar 29, 2005 10:01 am

I also solved the problem by downgrading alsa-lib to 1.0.7 (although I kept alsa-util and alsa-headers at 1.0.8 ).

For reference, I'm using 2.6.10-gentoo-r6 on x86 with udev, emu10k1 sound card.
Mr Smidge
Top
HydroSan
l33t
l33t
User avatar
Posts: 764
Joined: Thu Mar 04, 2004 5:43 pm
Location: The Kremlin (aka Canada)
Contact:
Contact HydroSan
Website

  • Quote

Post by HydroSan » Tue Mar 29, 2005 12:51 pm

Can confirm downgrading to 1.0.7 on alsa-* solves the crashes. 2005.0 AMD64.
I was a Gangster for Capitalism, by Major General Smedley Butler.

Server status: Currently down, being replaced with fresh install - 20% completed.
Top
Maedhros
Bodhisattva
Bodhisattva
User avatar
Posts: 5511
Joined: Wed Apr 14, 2004 8:10 pm
Location: Durham, UK

  • Quote

Post by Maedhros » Tue Mar 29, 2005 1:28 pm

sean_micken wrote:So, did anyone submit a bug report?
I have now: http://bugs.gentoo.org/show_bug.cgi?id=87099
No-one's more important than the earthworm.
Top
n0rbi666
l33t
l33t
User avatar
Posts: 707
Joined: Fri Mar 04, 2005 7:18 pm
Location: \Poland\Krakow

  • Quote

Post by n0rbi666 » Tue Mar 29, 2005 2:14 pm

Has any1 got ebuild for alsa-lib-1.0.9rc2 and alsa-utils-1.0.9rc2 ? because I instaled it, but i can't emerge BMP ;)
Top
opopanax
Apprentice
Apprentice
Posts: 244
Joined: Mon Aug 30, 2004 5:30 pm

  • Quote

Post by opopanax » Thu Mar 31, 2005 7:15 am

ok, i've had juk, gxine, xmms, and just about any other media app die inexplicably or segfault on me, EXCEPT mpg123. I use alsa by turning the kernel hooks on, and then compiling alsa-driver, alsa-lib, alsatools, etc. separately, from portage. I'll try to downgrade and see what happens. buggy goodness! Else, I've just upgraded to 2005.0 and gcc 3.4.3 and ~x86 everything, and nothing's broken yet...still have about 120 more packages to merge, however, plus a depclean and a revdep-rebuild...gulp.
Top
COiN3D
Guru
Guru
User avatar
Posts: 543
Joined: Mon Aug 02, 2004 11:20 pm
Location: Munich, Germany

  • Quote

Post by COiN3D » Thu Mar 31, 2005 9:45 am

Does anybody know why this shit happens? I think there's a version problem between the kernel and the alsa-libs. I don't know it for sure which alsa-version is used in nitro-sources 2.6.11-nitro2, but I think it's 1.0.9 and it doesn't like the alsa-1.0.8-libs.

Just a thought, anybody got an other idea? :)
e17 documentation | Be free and use Jabber as your IM! | Combine IRC and IM
Top
ProtectionFault
Apprentice
Apprentice
User avatar
Posts: 170
Joined: Fri Nov 14, 2003 3:42 pm
Location: /dev/zero

  • Quote

Post by ProtectionFault » Thu Mar 31, 2005 12:15 pm

It's not related to the driver version in your kernel...
Only the alsa-libs version is relevant.
Downgrading to 1.0.7 or upgrading to 1.0.9_rc2 should fix the problem.
ASUS Z87-PLUS, i7-4770, 2x8GB DDR3-1600, 700W OCZ Power Supply, EVGA GTX760 4GB, 3TB HDD, Gentoo ~amd64 (3.10.10, dm-crypt full disk, awesome)
Top
Joytoo
n00b
n00b
Posts: 25
Joined: Thu Mar 10, 2005 7:30 pm
Location: Freigericht, Germany

  • Quote

Post by Joytoo » Thu Mar 31, 2005 1:50 pm

ProtectionFault wrote:It's not related to the driver version in your kernel...
Only the alsa-libs version is relevant.
Downgrading to 1.0.7 or upgrading to 1.0.9_rc2 should fix the problem.
Upgrading to 1.0.9_rc2 did not work for me.
I use kernel.org's vanilla 2.6.11.6 kernel, with alsa stuff compiled in. My soundcard is cs46xx with new DSP.
I upgraded all alsa-* "packages" to the 1.0.9_rc2 versions, and recompiled xine afterwards.
If I play back a song, xine will quit after a random time:

Code: Select all

$ xine 03-holiday.mp3
This is xine (X11 gui) - a free video player v0.9.23.
(c) 2000-2003 The xine Team.
xiTK received SIGSEGV signal, RIP.
Killed
What options do I have?

Thank you!
Joy
Top
EvilGrin
n00b
n00b
User avatar
Posts: 23
Joined: Mon Oct 27, 2003 8:49 pm

  • Quote

Post by EvilGrin » Fri Apr 01, 2005 9:05 am

if you install alsa-lib 1.08 you also need to recompile everything that depends on it. You can find out what is linked against asla-lib with the following:

Code: Select all

equery d alsa-lib
Top
Lepaca Kliffoth
l33t
l33t
User avatar
Posts: 737
Joined: Wed Apr 28, 2004 8:18 am
Location: Florence, Italy
Contact:
Contact Lepaca Kliffoth
Website

  • Quote

Post by Lepaca Kliffoth » Fri Apr 01, 2005 11:08 am

Same problem here. Upgrading didn't work so I masked both 1.0.8 and 1.0.9_rc2 and downgraded. Works fine now.
It isn't enough to win - everyone else must lose, and you also have to rub it in their face (maybe chop off an arm too for good measure).
Animebox!
Top
Stieltje
Apprentice
Apprentice
User avatar
Posts: 158
Joined: Thu Apr 03, 2003 9:30 am
Location: The land where the sky is black

  • Quote

Post by Stieltje » Fri Apr 01, 2005 11:28 am

I wish I have had started out using OSS instead :)

alsa works nice, when it is working, one important thing I have noticed though, is that if one does not use the exact same version of alsa-utils, alsalib and so on, things will go bad.


now, my problem is that my /etc/portage/package.mask is not at all masking alsa

Code: Select all


emerge -ua world

gives

Code: Select all

These are the packages that I would merge, in order:

Calculating world dependencies |
!!! All ebuilds that could satisfy ">=media-sound/alsa-headers-1.0.9_rc2" have been masked.
!!! One of the following masked packages is required to complete your request:
- media-sound/alsa-headers-1.0.9_rc2 (masked by: ~x86 keyword)

For more information, see MASKED PACKAGES section in the emerge man page or 
section 2.2 "Software Availability" in the Gentoo Handbook.
!!!    (dependency required by "media-libs/alsa-lib-1.0.9_rc2" [ebuild])


!!! Problem with ebuild media-libs/alsa-lib-1.0.9_rc2
!!! Possibly a DEPEND/*DEPEND problem.

!!! Depgraph creation failed.

and

Code: Select all


# cat /etc/portage/package.mask 

#=media-video/mplayer-1.0_pre5-r4
>x11-plugins/gkrellmms-2.1.14
#=net-www/mozilla-firefox-1.0
[b]
=media-libs/alsa-lib-1.0.9_rc2
[/b]

I have had lots of trouble with masking things in the past as well, sometimes it works, sometimes it doesn't

kinda clueless here, but might it be that it depends on something more, not listed?
PCs nearly always come with Microsoft Windows as their operating systems, but the "OS," as it is called, can be changed to a non-Microsoft operating system with a little work.
Top
flappadap
n00b
n00b
Posts: 39
Joined: Wed Mar 30, 2005 6:43 pm

  • Quote

Post by flappadap » Fri Apr 01, 2005 1:27 pm

Hello !

I think the problem is, that you all used the ALSA drivers from your kernel sources.

Try compiling a kernel without OSS and WITHOUT ALSA support.

Then use emerge alsa-driver
Setup your card with alsaconf

Start /etc/init.d/alsasound and add it to yor runlevel with rc-update add alsasound default.

This loads the modules from the ebuild during bootup and starts alsa ...

This worked for me pretty well .... and I had also some problems with segfaults with alsa ...
CU

Flappadap.
Top
TrainedChimp
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 87
Joined: Fri Jun 25, 2004 4:55 pm
Location: Just west of Earth

  • Quote

Post by TrainedChimp » Fri Apr 01, 2005 3:05 pm

flappadap wrote:Hello !

I think the problem is, that you all used the ALSA drivers from your kernel sources.

Try compiling a kernel without OSS and WITHOUT ALSA support.

Then use emerge alsa-driver
Setup your card with alsaconf

Start /etc/init.d/alsasound and add it to yor runlevel with rc-update add alsasound default.

This loads the modules from the ebuild during bootup and starts alsa ...

This worked for me pretty well .... and I had also some problems with segfaults with alsa ...
I don't have OSS and ALSA in my kernel, I'm using the CVS version updated a couple of days ago, and I'm still getting segfaults.
Top
GaMMa
l33t
l33t
User avatar
Posts: 684
Joined: Fri Aug 23, 2002 7:17 pm
Location: USA

  • Quote

Post by GaMMa » Fri Apr 01, 2005 5:29 pm

alsa was working fine for me during 1.0.8, but now this latest ebuild 1.0.9-rc2 it doesn't work at all.
Ubuntu Linux Dapper Drake running Gnome-2.14.1
[Website | Screenshot | Portage Guide]
Top
provicemo
Apprentice
Apprentice
User avatar
Posts: 201
Joined: Fri Dec 12, 2003 8:57 pm
Location: Detroit, MI
Contact:
Contact provicemo
Website

  • Quote

Post by provicemo » Fri Apr 01, 2005 7:03 pm

GaMMa wrote:alsa was working fine for me during 1.0.8, but now this latest ebuild 1.0.9-rc2 it doesn't work at all.
Same here.
aplay segfaults with 1.0.9-rc2. Xine won't work with 1.0.9-rc2 or 1.0.8.
Everything is fine with 1.0.7, and as far as I can tell 1.0.8 is only giving me xine issues.

I just noticed a bunch of crap about snd_timer in my dmesg

Code: Select all

 <1>Unable to handle kernel NULL pointer dereference at virtual address 00000000 printing eip:
c02adf33
*pde = 00000000
Oops: 0002 [#16]
PREEMPT
Modules linked in: snd_pcm_oss snd_seq_midi snd_emu10k1_synth snd_emux_synth snd_seq_virmidi snd_seq_midi_emul snd_seq_oss snd_seq_midi_event snd_seq snd_mixer_oss vfat fat usb_storage nvidia usblp snd_emu10k1 snd_rawmidi snd_seq_device snd_ac97_codec snd_util_mem snd_hwdep forcedeth usbhid ehci_hcd ohci_hcd nvidia_agp usbcore snd_pcm snd_timer snd_page_alloc snd 8139too mii agpgart
CPU:    0
EIP:    0060:[<c02adf33>]    Tainted: P   VLI
EFLAGS: 00210212   (2.6.9-rc1-mm4)
EIP is at memcpy+0x23/0x60
eax: 00000010   ebx: cb2a1be0   ecx: 00000004   edx: 00000000
esi: c376bf10   edi: 00000000   ebp: bfffe250   esp: c376bed8
ds: 007b   es: 007b   ss: 0068
Process aplay (pid: 7867, threadinfo=c376b000 task=de9ab550)
Stack: 00000003 d78019e0 ffffffea ffffffea c376bf20 e08430fd 00000000 c376bf10
       00000010 cb2a1be0 e0843fa6 cb2a1be0 c376bf10 00000050 00000006 00000000
       00000000 00000000 00000005 00000001 00000000 00000000 00008002 00000000
Call Trace:
 [<e08430fd>] snd_timer_user_append_to_tqueue+0x3d/0x50 [snd_timer]
 [<e0843fa6>] snd_timer_user_params+0x236/0x250 [snd_timer]
 [<e0844264>] snd_timer_user_ioctl+0x154/0x290 [snd_timer]
 [<c016b2cd>] sys_ioctl+0x14d/0x290
 [<c0106159>] sysenter_past_esp+0x52/0x71
Code: ff ff c3 90 90 90 90 90 83 ec 14 8b 44 24 20 89 74 24 0c 89 7c 24 10 8b 74 24 1c 3d ff 01 00 00 77 26 89 c1 8b 7c 24 18 c1 e9 02 <f3> a5 a8 02 74 02 66 a5 a8 01 74 01 a4 8b 44 24 18 8b 74 24 0c
I don't know which alsa-lib caused it cause I spent yesterday jumping around between 1.0.7, 1.0.8 and 1.0.9
Top
makton3g
Tux's lil' helper
Tux's lil' helper
Posts: 88
Joined: Thu Aug 19, 2004 2:15 pm

  • Quote

Post by makton3g » Fri Apr 01, 2005 8:53 pm

I think I have ran into the same problem. I just [emerge --update world] less than a week ago, and my XMMS and Xine keep crashing on me. I will try the downgrade when I get home, but I won't get to involved since the parts for my new Linux box will be here monday. Then I will have some real problems.
Top
truekaiser
l33t
l33t
User avatar
Posts: 832
Joined: Fri Mar 05, 2004 11:00 pm

  • Quote

Post by truekaiser » Sat Apr 02, 2005 2:46 am

*stops pulling hair out of his head after reading this and finding out what was going on.*
Top
placeholder
Advocate
Advocate
Posts: 2500
Joined: Sat Feb 07, 2004 12:15 am

  • Quote

Post by placeholder » Sat Apr 02, 2005 3:45 am

I use the Envy24 chipset now, but I never had these problems when I used my SBLive 5.1 with emu10k1.

I have it setup like this:

- Support compiled into the kernel
- alsa-lib and etc is all version 1.8

ReiserFS is not the issue because I use reiserfs myself, and formatting/reinstalling is also not necessary so you can go ahead and not do that to save some time.

It would help to know exactly which cards you are all using. Cheers.
Top
Pergamon
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 117
Joined: Sun Feb 01, 2004 1:27 pm

Crashes causes by inconistent versions?

  • Quote

Post by Pergamon » Sat Apr 02, 2005 9:07 am

I had this type of segfaults too after changing versions of alsa. I did the following to cure this:

* Stop alsasound

Code: Select all

/etc/init.d/alsasound stop
* Unmerge alsa stuff, especially drivers, lib, util:

Code: Select all

emerge unmerge alsa-utils alsa-lib alsa-headers alsa-driver
* Build a new kernel without alsa drivers compiled in. (I use currently 2.6.11-gentoo-r5)
Device drivers -> Sound should look like this:

Code: Select all

     <M> Sound card support                      
              Advanced Linux Sound Architecture  --->            
                  < > Advanced Linux Sound Architecture   
              Open Sound System  --->   
                  < > Open Sound System (DEPRECATED)  
* Make sure, that your sound card type is set in make.conf:

Code: Select all

ALSA_CARDS="intel8x0"
* Now emerge alsa. (I used alsa-1.0.9-rc2)

Code: Select all

emerge alsa-driver alsa-lib alsa-util alsa-oss
* Recent versions of alsa-lib seem to be very fragile on version conflicts, therefore rebuild everything that depends on alsa-lib (as mentioned above) by using:

Code: Select all

equery d alsa-lib
That fixed it for me with alsa-1.0.9-rc2


ONLY If you move back to kernel drivers at one point:

If you move back from alsa-drivers to kernel 2.6 alsa drivers, make sure to remove the alsa-driver modules:

Code: Select all

rm -Rf /etc/modules/<your-kernel-version>/alsa-driver
Otherwise there is a new version conflict! Those modules even seem to stay if alsa-driver is unmerged.
Top
roELEo
n00b
n00b
Posts: 42
Joined: Tue Sep 28, 2004 1:10 pm
Location: The Netherlands

  • Quote

Post by roELEo » Mon Apr 04, 2005 2:16 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


Thanks. That worked like a charm!
Top
Joytoo
n00b
n00b
Posts: 25
Joined: Thu Mar 10, 2005 7:30 pm
Location: Freigericht, Germany

Re: Crashes causes by inconistent versions?

  • Quote

Post by Joytoo » Mon Apr 04, 2005 5:34 pm

Pergamon wrote:I had this type of segfaults too after changing versions of alsa. I did the following to cure this:

* Stop alsasound

Code: Select all

/etc/init.d/alsasound stop
* Unmerge alsa stuff, especially drivers, lib, util:

Code: Select all

emerge unmerge alsa-utils alsa-lib alsa-headers alsa-driver
* Build a new kernel without alsa drivers compiled in. (I use currently 2.6.11-gentoo-r5)
Device drivers -> Sound should look like this:

Code: Select all

     <M> Sound card support                      
              Advanced Linux Sound Architecture  --->            
                  < > Advanced Linux Sound Architecture   
              Open Sound System  --->   
                  < > Open Sound System (DEPRECATED)  
* Make sure, that your sound card type is set in make.conf:

Code: Select all

ALSA_CARDS="intel8x0"
* Now emerge alsa. (I used alsa-1.0.9-rc2)

Code: Select all

emerge alsa-driver alsa-lib alsa-util alsa-oss
* Recent versions of alsa-lib seem to be very fragile on version conflicts, therefore rebuild everything that depends on alsa-lib (as mentioned above) by using:

Code: Select all

equery d alsa-lib
That fixed it for me with alsa-1.0.9-rc2


ONLY If you move back to kernel drivers at one point:

If you move back from alsa-drivers to kernel 2.6 alsa drivers, make sure to remove the alsa-driver modules:

Code: Select all

rm -Rf /etc/modules/<your-kernel-version>/alsa-driver
Otherwise there is a new version conflict! Those modules even seem to stay if alsa-driver is unmerged.
This is true and worked for me, yet only with alsa 1.0.7. You need alsa-* at this version, else it won't work.
If you emerge --sync'd last weekend, your /etc/portage/package.mask should look like this:

Code: Select all

=media-libs/alsa-lib-1.0.8
=media-libs/alsa-lib-1.0.9_rc2
=media-libs/alsa-oss-1.0.8-r1
=media-sound/alsa-headers-1.0.8_rc1
=media-sound/alsa-headers-1.0.8
=media-sound/alsa-headers-1.0.9_rc2
=media-sound/alsa-driver-1.0.8
=media-sound/alsa-utils-1.0.8
Then unmerge and reemerge evenything alsa as mentioned in Pergamon's post. Before that remove alsa support from your Kernel and recompile.
Top
Nil_Spaar
Apprentice
Apprentice
Posts: 179
Joined: Sat Jul 10, 2004 2:26 pm
Location: Berlin, Germany

alsa-lib / alsa-headers 1.0.9rc2 fixed these problems for me

  • Quote

Post by Nil_Spaar » Mon Apr 04, 2005 10:49 pm

I'm running kernel 2.6.10-gentoo-r6 with alsa compiled in and have a SB Live (emu10k1).
Somtime last week I noticed the same problems like many have here (xmms, alsamixer segfaulting when anything else starts using alsa, xine segfaulting immediately on start, while vlc, mplayer, mpg123 and gstreamer worked flawlessly). Strangely I upgraded alsa to 1.0.8 a month ago and the only big thing I did when the errors occured was an 'emerge -e system'. So maybe it's not directly related to alsa 1.0.8 or maybe I just didn't notice the errors earlier.
Anyway I reemerged all the alsa stuff, everything outputed by 'equery d alsa-lib' and a bunch of packages I thought might have something to do with sound. But nothing helped at all.
But immediately after upgrading alsa-lib and -headers to 1.0.9_rc2 the errors disappeared without even reemerging anything else.
Top
Valhalla
Apprentice
Apprentice
Posts: 205
Joined: Mon Jan 31, 2005 8:16 pm
Location: Home = Atl, GA College = Carlisle, PA

  • Quote

Post by Valhalla » Mon Apr 04, 2005 11:41 pm

I had same problem, I solved it with

Code: Select all

# echo ">=media-libs/alsa-lib-1.0.8" >> /etc/portage/package.mask && emerge alsa-lib
p.s. I have my alsa drivers compiled into my kernel.
--Quote of the Month--
"And god saw that the CG artists life was too easy, so he created Skinning and UV unwrapping."
Oh My 8O, look at all these poor Unanswered Posts
Top
Post Reply

90 posts
  • Previous
  • 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