Bug 681074

Summary: PulseAudioSourceDataLine write() does not return in a multi-threaded scenario when another thread stops the DataLine
Product: [Fedora] Fedora Reporter: Clive Messer <clive.m.messer>
Component: java-1.6.0-openjdkAssignee: Omair Majid <omajid>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 14CC: ahughes, dbhole, jvanek, langel, lkundrak, mjw, mmatejov, omajid
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-16 14:56:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
PulseAudioSourceDataLine diff none

Description Clive Messer 2011-03-01 02:30:06 UTC
Created attachment 481481 [details]
PulseAudioSourceDataLine diff

Thread a) calls write() on the dataline. Their is not sufficient capacity on the underlying stream to write the entire data length that is passed in on the write call so the code loops on 'available'. In the meantime, another thread stops the line. The first thread will be stuck in the write() call until the line is restarted. Patch attached to check if the line is still running whilst in the available loop. If not, return the data length that could be written.

Comment 1 Omair Majid 2012-06-28 20:12:40 UTC
Do you have a test case to demonstrate the behaviour? From my reading of the code, the writeInterrupted variable is meant for exactly this purpose. stop() on a line sets it to true and the write() methods returns if it finds that the variable is true.

Comment 2 Fedora End Of Life 2012-08-16 14:56:22 UTC
This message is a notice that Fedora 14 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 14. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained.  At this time, all open bugs with a Fedora 'version'
of '14' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this 
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen 
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we were unable to fix it before Fedora 14 reached end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" (top right of this page) and open it against that 
version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping