[nas] (resend) hard hang in libaoss.so

Jon Trulson jon at radscan.com
Fri Jul 5 21:11:45 MDT 2013


On Thu, 4 Jul 2013, Paul Fox wrote:

> jon wrote:
> > On Thu, 4 Jul 2013, Erik Auerswald wrote:
> >
[...]
> > Yeah, I'll need a little time to look it over - I remember this code
> > being a little tricky.  Does your fix actually solve the problem?
>
> yes, completely, for me.  i'd be interested if it fixes david woodfall's
> problem as well.  (cc'ed, in case he's not on the mailing list.)
>
> >
> > I'm guessing that on your system SNDCTL_DSP_SYNC takes some time,
> > thereby opening up the potential for a race.
>
> that's my guess too.  i'm running nasd on top of libaoss, which sits
> on top of alsa's libasound.  i do this rather than use the alsa OSS
> compatibility devices because those don't let me mix nasd output with
> the output from regular alsa clients.
>
> be sure and look at the stack backtrace i sent earlier.  once you look
> at the code, and the trace, it's fairly clear (i think) what must be
> happening.
>

Yep... feel free to apply the patch if you'd like.


-- 
Jon Trulson

   "I was not genomed to alter reality."
       - Sonmi 451


More information about the nas mailing list