JDK-4676593 : REGRESSION: JCK14 api.javax.sound.sampled.LineListener.LineListener fails interm
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.sound
  • Affected Version: 1.4.1
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,solaris_8
  • CPU: sparc
  • Submitted: 2002-04-29
  • Updated: 2002-06-26
  • Resolved: 2002-06-15
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.1 rcFixed
Related Reports
Duplicate :  
Description
Filed By       : J2SE-SQA [###@###.###
JDK            : 1.4.1-beta-b09, b10
JCK            : jck1.4
Platform[s]    : sparc 
switch/Mode    : -client, -server, -d64
JCK test owner : http://javaweb.eng/jck/usr/owners.jto
Failing Test   : 
javasoft.sqe.tests.api.javax.sound.sampled.LineListener.LineListenerTests

These cases failed in b9 already.  We thought it's the same bug as 4656629 (duplicated of 4661677).  

Test source location:
=====================
/net/koori.sfbay/a/v08/jck/1.4/fcs/binaries/JCK-runtime-14/tests/api/javax_sound/sampled/LineListener/LineListenerTests.java


jtr file location:
==================
file:///net/jtgb4u4c/export/sail16/results/hopper/b10/jck14/sparc/s9_client_d64_jtg-s121/workDir/api/javax_sound/sampled/LineListener/index_LineListener.jtr

How to reproduce:
====================
run attached script
--------Script START---------------------
#!/bin/ksh

SWITCH=${1+$@}

JDK=/net/jdk/export/disk8/local.java/jdk1.4.1

TESTBASE=/net/jdk/export/disk8/local.java/jck1.4

JCK=${TESTBASE}/JCK-runtime-14

executeClass="javasoft.sqe.tests.api.javax.sound.sampled.LineListener.LineListenerTests"

#excludeCmd="-exclude AccessibleJTableHeaderEntry0031"

executeClassArgs="-TestCaseID ALL"

headless=false


#executeContextArgs is used for vm testing.
executeContextArgs=

case `uname -s` in
  SunOS)
   ARCH=`uname -p`
   case $ARCH in
    sparc)
      sharedJDK=$JDK/solaris-sparc
      ;;
    i386)
      sharedJDK=$JDK/solaris-i586
      ;;
   esac
   ;;
  Linux)
   sharedJDK=$JDK/linux-i586
   ARCH=linux
   ;;
esac


CLASSPATH=${JCK}/classes:${JCK}/javatest.jar
DISPLAY=${DISPLAY-$HOST:0.0}

if `echo $SWITCH|grep "\-d64" >/dev/null`; then
  sharedJDK=$JDK/solaris-sparcv9
  LD_LIBRARY_PATH=${JCK}/lib/sparcv9
else
  LD_LIBRARY_PATH=${JCK}/lib/${ARCH}
fi


PATH=$JDK/bin:$sharedJDK/bin:$PATH

export PATH CLASSPATH DISPLAY LD_LIBRARY_PATH


echo
java ${SWITCH} -version
echo
((x=0))
while (( $x != 10 )) do
echo testing $x

java ${SWITCH} -verify -Xfuture -DDISPLAY="" -Djava.awt.headless=$headless -Djava.security.policy=${JCK}/lib/jck.policy -Djava.security.auth.policy=${JCK}/lib/jck.auth.policy -Djava.security.auth.login.config=${JCK}/lib/jck.auth.login.config -Djava.rmi.activation.port=${executeClass} ${executeClass} -platform.canPlaySound true -platform.soundURL file:/net/jtgb4u4c.sfbay/export/sail16/JCK/jck14/JCK-runtime-14/tests/api/javax_sound/sound.wav ${excludeCmd}  ${executeClassArgs} ${executeContextArgs} ${executeTestURL} 

if [[ $? == "95" ]]; then
   echo pass
else
   echo failed
fi

(( x = $x + 1 ))


done

--------Script END----------------------

Test output:
=============
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0xFE487360
Function=SR_resample32_add+0x18
Library=/net/koori.sfbay/promoted/v02/jdk/1.4.1/beta/b10/binaries/solaris-sparc/jre/lib/sparc/libjsound.so

Current Java thread:
        at com.sun.media.sound.MixerThread.runNative(Native Method)
        at com.sun.media.sound.MixerThread.run(MixerThread.java:314)

Dynamic libraries:
0x10000         java
0xff350000      /usr/lib/libthread.so.1
0xff390000      /usr/lib/libdl.so.1
0xff200000      /usr/lib/libc.so.1
0xff330000      /usr/platform/SUNW,Ultra-2/lib/libc_psr.so.1
0xfe000000      /net/koori.sfbay/promoted/v02/jdk/1.4.1/beta/b10/binaries/solaris-sparc/jre/lib/sparc/client/libjvm.so
0xff2d0000      /usr/lib/libCrun.so.1
0xff1e0000      /usr/lib/libsocket.so.1
0xff100000      /usr/lib/libnsl.so.1
0xff0d0000      /usr/lib/libm.so.1
0xff300000      /usr/lib/libw.so.1
0xff0b0000      /usr/lib/libmp.so.2
0xff080000      /net/koori.sfbay/promoted/v02/jdk/1.4.1/beta/b10/binaries/solaris-sparc/jre/lib/sparc/native_threads/libhpi.so
0xff040000      /net/koori.sfbay/promoted/v02/jdk/1.4.1/beta/b10/binaries/solaris-sparc/jre/lib/sparc/libverify.so
0xfe7c0000      /net/koori.sfbay/promoted/v02/jdk/1.4.1/beta/b10/binaries/solaris-sparc/jre/lib/sparc/libjava.so
0xff020000      /net/koori.sfbay/promoted/v02/jdk/1.4.1/beta/b10/binaries/solaris-sparc/jre/lib/sparc/libzip.so
0xfe450000      /net/koori.sfbay/promoted/v02/jdk/1.4.1/beta/b10/binaries/solaris-sparc/jre/lib/sparc/libjsound.so

Local Time = Mon Apr 29 13:20:30 2002
Elapsed Time = 3
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.1-beta-b10 mixed mode)
#
# An error report file has been saved as hs_err_pid2302.log.
# Please refer to the file for further information.
#
LineListener.ksh[101]: 2302 Abort(coredump)
failed

Specific Machine Info:
=====================
SunOS jtg-s118 5.7 Generic_106541-15 sun4u sparc SUNW,Ultra-2
SunOS jtg-s120 5.8 Generic sun4u sparc SUNW,Ultra-60
SunOS jtg-s121 5.9 s81_56 sun4u sparc SUNW,Ultra-2

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: hopper-rc FIXED IN: hopper-rc INTEGRATED IN: hopper-rc VERIFIED IN: hopper-rc
14-06-2004

EVALUATION ###@###.### 2002-04-29 Very likely to be fixed with 4498848: Sound causes crashes on Linux. That fix is going to be integrated into build 11. Let's wait how the test performs on build 11. ###@###.### 2002-05-13 Contacting TCK team to verify fix in build 11. ###@###.### 2002-05-20 The crash still occurs with build 11. Current investigation did not provide a fix yet. It is related to the bug mentioned above, and fails for the same reason (Java Sound Engine not multi thread safe). A fix must be provided for Hopper, probably not enough time to integrate it into hopper beta. ###@###.### 2002-06-05 Fixed in private workspace and ready for PIT test.
05-06-2002