JDK-4334868 : Creating, writing, closing DataLines after a while can crash or hang the VM
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.sound
  • Affected Version: 1.3.1,1.4.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic,solaris_2.5.1
  • CPU: generic,sparc
  • Submitted: 2000-05-02
  • Updated: 2003-10-24
  • Resolved: 2003-08-24
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.2 1.4.2Fixed
Related Reports
Relates :  
Description
I did my tests on Solaris.  In a sample test program, I have a loop
that creates a DataLine, writes some data to it, then closes it after
finish writing the data.  After running the program for a while, it either
crashes or hang the VM.

With JDK 1.2.2, I was able to crash the VM sometimes after looping for
50 times.  Other times, it may take longer -- after looping for 6000 times
in 30 minutes.  The stack trace is included in the Comments section.

With JDK 1.1.*, it may hang the VM after a while.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: 1.4.2 tiger-beta FIXED IN: 1.4.2 tiger-beta INTEGRATED IN: 1.4.2 tiger-b26 tiger-beta
14-06-2004

EVALUATION kara.kytle@Eng 2000-05-03 i can reproduce this bug only with difficulty. i am committing it to ladybird. michael.bundschuh@Eng 2000-08-25 No engineer for ladybird. Committing for merlin. ###@###.### 2001-09-26 I am able to reproduce this bug. However, when I add a line.stop(), line.drain() before closing the line and push only about 100ms (as opposed to 128KB - which is never played because there is no drain) to the source line it runs through without problems. I'd say opening and closing a line without any soud output is rare. Actually outputting some short data should be common though, and that works. So, it's not a showstopper for Merlin and I push it to Tiger. ###@###.### 2003-08-24 I can reliably reproduce the crash after a few hundred iterations with Merlin. With Mantis, it went through all 10000 iterations overnight without a problem. These tests were on Solaris. I'll close this bug as fixed in mantis, but add a regression test for tiger.
11-06-2004

PUBLIC COMMENTS Creating, writing, closing DataLines after a while can crash or hang the VM
10-06-2004

WORK AROUND ###@###.### 2001-09-26 Play at least 40ms of audio data before closing a line.
26-09-2001