Finaly, it works!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

I have now: http://bugs.gentoo.org/show_bug.cgi?id=87099sean_micken wrote:So, did anyone submit a bug report?

Upgrading to 1.0.9_rc2 did not work for me.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.
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.
KilledCode: Select all
equery d alsa-lib

Code: Select all
emerge -ua world
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.
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 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.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 ...
Same here.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.
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


Code: Select all
/etc/init.d/alsasound stopCode: Select all
emerge unmerge alsa-utils alsa-lib alsa-headers alsa-driverCode: Select all
<M> Sound card support
Advanced Linux Sound Architecture --->
< > Advanced Linux Sound Architecture
Open Sound System --->
< > Open Sound System (DEPRECATED) Code: Select all
ALSA_CARDS="intel8x0"Code: Select all
emerge alsa-driver alsa-lib alsa-util alsa-ossCode: Select all
equery d alsa-libCode: Select all
rm -Rf /etc/modules/<your-kernel-version>/alsa-driverMaedhros 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
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.Pergamon wrote:I had this type of segfaults too after changing versions of alsa. I did the following to cure this:
* Stop alsasound* Unmerge alsa stuff, especially drivers, lib, util:Code: Select all
/etc/init.d/alsasound stop* Build a new kernel without alsa drivers compiled in. (I use currently 2.6.11-gentoo-r5)Code: Select all
emerge unmerge alsa-utils alsa-lib alsa-headers alsa-driver
Device drivers -> Sound should look like this:* Make sure, that your sound card type is set in make.conf:Code: Select all
<M> Sound card support Advanced Linux Sound Architecture ---> < > Advanced Linux Sound Architecture Open Sound System ---> < > Open Sound System (DEPRECATED)* Now emerge alsa. (I used alsa-1.0.9-rc2)Code: Select all
ALSA_CARDS="intel8x0"* 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
emerge alsa-driver alsa-lib alsa-util alsa-ossThat fixed it for me with alsa-1.0.9-rc2Code: Select all
equery d alsa-lib
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:Otherwise there is a new version conflict! Those modules even seem to stay if alsa-driver is unmerged.Code: Select all
rm -Rf /etc/modules/<your-kernel-version>/alsa-driver
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
Code: Select all
# echo ">=media-libs/alsa-lib-1.0.8" >> /etc/portage/package.mask && emerge alsa-lib