Bug 681074 - PulseAudioSourceDataLine write() does not return in a multi-threaded scenario when another thread stops the DataLine
Summary: PulseAudioSourceDataLine write() does not return in a multi-threaded scenario...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: java-1.6.0-openjdk
Version: 14
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Omair Majid
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-01 02:30 UTC by Clive Messer
Modified: 2012-08-16 14:56 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-08-16 14:56:19 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
PulseAudioSourceDataLine diff (377 bytes, patch)
2011-03-01 02:30 UTC, Clive Messer
no flags Details | Diff

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


Note You need to log in before you can comment on or make changes to this bug.