JDK-4530554 : No soundcard installed on Redhat Linux 6.2. - VM crashes
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.sound
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: linux,linux_redhat_6.2
  • CPU: x86
  • Submitted: 2001-11-21
  • Updated: 2003-09-05
  • Resolved: 2003-08-08
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
Build Used: Merlin RC1 PIT nightly (11/13/2001)
             and promoted build 86
JRE Location: /net/altair.east/terra/space0/plugin/nightly_archives/2001-11-13
          /net/jdk.sfbay/export/disk6/promoted/jdk/1.4/rc/b86/bundles/linux-i386
Platform: Linux 6.2
Browser: NS4.71/NS4.72/NS6.1


1) Install Browser
2) Install JRE
3) set NPX_PLUGIN_PATH to point to <jre install dir>/plugin/i386/ns4
4) Go to netscape6 installer dir
5) rm component.reg
6) cd components dir.
7) ln -s <jre install dir>/plugin/i386/ns610/libjavaplugin140_oji.so .

8) now invoke either Netscape 4.x or Netscape6 
9) Visit page
   http://javaweb/~vmanda/fwtests/src/cmd/tests/non-visual/AppletAttack/securityTest.html

It loads all the required classes and  when it reaches execution of  getAudioTest the VM crashes
(see attached log file)

You can also try a simple test case
(http://javaweb/~vmanda/fwtests/src/cmd/tests/non-visual/AppletAttack/getAudioTest.html)

(For source see http://javaweb/~vmanda/fwtests/src/cmd/tests/non-visual/AppletAttack/GetAudioTest.java and
http://javaweb/~vmanda/fwtests/src/cmd/tests/non-visual/AppletAttack/SecurityTest.java )

It also occurs with Beta3 build 84.
Occurs only on Linux 6.2 (works fine on Linux 7.1)
==================================================
I used the following test cases to verify this bug:

1. getAudioTest.html from 
(http://javaweb/~vmanda/fwtests/src/cmd/tests/non-visual/AppletAttack/getAudioTest.html) : Passed and no VM crash
2. Plugin demo with sound (Animator has 4 examples): Passed
3. JMF test case in JaWS: Passed

The bug is not reproduceable with RH62 machine carina.  The final status of this sound bug will be pending on Michael and Rajendra's comments.

###@###.### 2001-12-19

Comments
EVALUATION I tried using merlin build 87 (JPI dev nightly) on Linux 6.2 with Netscape 4.7x and I got ** SecurityTest done (all tests passed) ** in the browser applet window and STATUS: GetAudioTest PASSED in the Java Console. Using Netscape 6.1 I got the same results. I did not follow the steps (1-7) in the description. Setting NPX_PLUGIN_PATH and also creating a link to libjavaplugin140_oji.so did not seem right. For NS4 I set NPX_PLUGIN_PATH. For NS6 I unset NPX_PLUGIN_PATH or I was in a different window then I used regxpom to register the plugin. Using NS6: setenv LD_LIBRARY_PATH /<dir>/netscape_61:$LD_LIBRARY_PATH regxpcom /<dir>/jre/plugin/i386/ns610/libjavaplugin_oji140.so Warning: MOZILLA_FIVE_HOME not set. Registration successful for /<dir>/jre/plugin/i386/ns610/libjavaplugin_oji140.so ###@###.### 2001-11-28 This is not reproducible using build 88. Can the submitter try build 88 to confirm? ###@###.### 2001-12-04 Do you have another Linux 6.2 system that you can try this on? Has the audio been setup/configured properly? Check the sound lib. Does audio work in other programs? Can you try another plugin that makes use of audio and see what happens. What is the name of the system you are seeing this on? Here are some other sound tests that you may want to try using with both the appletviewer and the plugin. 1) http://java.sun.com/docs/books/tutorial/applet/appletsonly/sound.html (An Example) 2) JCK-runtime-14/tests/api/java_applet/Applet/NewAudioClipTests, StubAudioClip. ###@###.### 2001-12-12 On a system w/o a sound card the getAudioClip tests cause the VM to crash. This problems happens w/o using the plugin. Running the tests using appletviewer causes the same problem. This problem looks to be a java classes_sound problem. I'm reassigning this bug to that category. ###@###.### 2001-12-13 ###@###.### 2002-03-12 Changing the Synopsis from "VM crashes on running the AppletAttack - GetAudio Test on Redhat Linux 6.2" to "No soundcard installed on Redhat Linux 6.2. - VM crashes". This seems to be the real problem. ###@###.### 2002-03-15 Bug 4653014 seems to have the same cause: when the sound device is in use, Java Sound crashes. ###@###.### 2002-04-23 This might be fixed with the fix for 4498848, "Sound causes crash on Linux", needs verification. Push to Mantis. ###@###.### 2002-11-01 Cannot reproduce this on a RH6.1 system without soundcard. I have the impression that the sound drivers crash and not Java Sound, if the same program runs fine on Redhat 7.x. I am decommitting this bug and will close it if it cannot be reproduced in future. ###@###.### 2003-08-08 Tried to reproduce on dnm-dtf-016 (which now became Redhat 8), and on fellini (redhat 6.1, soundcard disabled). I could not reproduce a crash with 1.3.1, 1.4.0, 1.4.1, or 1.4.2. I did add code to specifically address systems which do not have a soundcard installed (as part of 4834461). So we shouldn't see this problem anymore. Close as "not reproducible".
11-06-2004

PUBLIC COMMENTS ###@###.### 2001-11-30 Will be cross-checked by anjana.prabhakar with build 88 and see if it is reproducible ###@###.### 2001-12-04 Tried with Build87/88 Used Browser Netscape 4.75 and Netscape6 to test for Netscape6 used regxpcom to register the plugin and for Netscape 4.75 set NPX_PLUGIN_PATH Still same results. crashes Even tried setting stacksize to 2MB (limit stacksize 2048) no change in result. It still crashes. ###@###.### 2001-12-06 Validated on 4 linux 6.2 machines. On 2 of them it still crashes and on the other 2 the test PASS without any problem. Narrowed down the problem to getAudioClip() As soon as this call is made, the VM crashes. Simplified Test Case/ http://sqesvr.sfbay.sun.com/deployment2/rpallath/tests/4530554/AudioClipTest_index.html ###@###.### 2001-12-11 Attached a tar ball of all trace files (with JAVA_PLUGIN_TRACE set). ###@###.### 2001-12-12 The system I'm using is dnm-dtf-016.sfbay.sun.com. There is no audio support on that system (no sound card). It does not play any of the audio demos bundled with Linux. I tried the sound example you listed with appletviewer and it crashes. Also the above URL crashes when used with appletviewer. Attached are some log files of those crashes with appletviewer. hs_err_pid3660.log, hs_err_pid3830.log, hs_err_pid3878.log
10-06-2004