LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-06-2016, 02:33 PM   #1
e5150
Member
 
Registered: Oct 2005
Location: Sweden
Distribution: Slackware and Alpine
Posts: 132

Rep: Reputation: 100Reputation: 100
EBADFD with alsa-lib 1.1.1 in 64-current


I've been experiencing an occational error, about twice a day, since the upgrade of alsa-lib. Both on builtin HDA sound card and my old trusty SB-Live. I am not using pulseaudio.
Under some circumstances, that I have yet to determine, any application trying to play sound will get an EBADFD (File descriptor in bad state) when accessing the alsa-device. The only solution I've figured out is to rmmod and modprobe the driver (snd-hda-intel or snd-emu10k1), or downgrade to previous alsa-lib.
When the error occurs, if I downgrade to 1.1.0, everything is fine, and upgrade to 1.1.1, EBADFD again, until rmmod+modprobe. So the problem seems to actually be with alsa-lib 1.1.1.
I have diffed the source trees of 1.1.0 and 1.1.1, but can't see any obvious culprit. Next chance I get, I'll try do a more thorough investigation to figure out if it is an alsa bug, a hardware failure or whatever the cause might be.
In the meantime, if anybody else has stumbled upon the problem, please share.
 
Old 04-07-2016, 08:48 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,148

Rep: Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264
EBADFD seems to be the favorite error code returned by the kernel to any command when the sound system is not in the expected state. It appears in dozens of places. It may be that your alsa-lib version is tested against a different kernel.

http://lxr.free-electrons.com/ident?i=EBADFD
 
1 members found this post helpful.
Old 04-14-2016, 11:46 AM   #3
e5150
Member
 
Registered: Oct 2005
Location: Sweden
Distribution: Slackware and Alpine
Posts: 132

Original Poster
Rep: Reputation: 100Reputation: 100
After recompiling the kernel the problem went away for a couple of days, but started reappearing again. So I reported it to alsa-lib upstream (see http://mailman.alsa-project.org/pipe...il/106739.html). It was caused by a commit about three weeks before 1.1.1 was released, where one race condition was eliminated, but another one surfaced, which has now been fixed in fdba9e1bad8f769a6137e565471f0227f23a3132.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Request to update alsa-lib in current tux_dude Slackware 1 05-03-2013 09:03 PM
[SOLVED] Alsa-lib download issue mariostg Linux From Scratch 3 10-19-2012 04:39 PM
ALSA API and C lib mykaitch Programming 1 02-24-2007 12:20 AM
ALSA lib mykaitch Linux - Newbie 5 02-20-2007 04:47 AM
alsa-utils conflicts with alsa-lib sloik2000 Linux - Software 0 07-09-2005 08:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration