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

Erik Auerswald auerswal at unix-ag.uni-kl.de
Sat Jul 6 10:32:15 MDT 2013


Hi,

On 07/06/2013 05:11 AM, Jon Trulson wrote:
> 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.

I have just applied my version of the patch.

Erik



More information about the nas mailing list