JDK-4498848 : Sound causes crashes on Linux
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.sound
  • Affected Version: 1.4.0
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux,linux_redhat_7.1
  • CPU: x86
  • Submitted: 2001-08-31
  • Updated: 2002-04-26
  • Resolved: 2002-04-26
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 hopperFixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Description
139469
/usr/j2sdk1.4.0/jre/lib/i386/libjava.so
40640000-40654000 r-xp 00000000 03:01 2139471
/usr/j2sdk1.4.0/jre/lib/i386/libzip.so
40654000-40657000 rw-p 00013000 03:01 2139471
/usr/j2sdk1.4.0/jre/lib/i386/libzip.so
40657000-41ccf000 r--s 00000000 03:01 2139535    /usr/j2sdk1.4.0/jre/lib/rt.jar
41d11000-41d28000 r--s 00000000 03:01 2139516
/usr/j2sdk1.4.0/jre/lib/sunrsasign.jar
41d28000-41d96000 r--s 00000000 03:01 2139518    /usr/j2sdk1.4.0/jre/lib/jsse.jar
41d96000-41da9000 r--s 00000000 03:01 2139517    /usr/j2sdk1.4.0/jre/lib/jce.jar
41da9000-4202a000 r--s 00000000 03:01 2139533
/usr/j2sdk1.4.0/jre/lib/charsets.jar
440d2000-440d8000 r--p 00000000 03:01 1876805    /usr/lib/locale/en_US/LC_COLLATE
440d8000-440d9000 r--p 00000000 03:01 1550404    /usr/lib/locale/en_US/LC_TIME
440d9000-440da000 r--p 00000000 03:01 2023683    /usr/lib/locale/en_US/LC_NUMERIC
440da000-440dc000 r--s 00000000 03:01 572772
/usr/j2sdk1.4.0/jre/lib/ext/dnsns.jar
4c160000-4c18b000 r--p 00000000 03:01 1876802    /usr/lib/locale/en_US/LC_CTYPE
4c193000-4c19c000 r-xp 00000000 03:01 456975     /lib/libnss_files-2.2.5.so
4c19c000-4c19d000 rw-p 00008000 03:01 456975     /lib/libnss_files-2.2.5.so
4c1c8000-4c1e5000 r--s 00000000 03:01 572771
/usr/j2sdk1.4.0/jre/lib/ext/sunjce_provider.jar
4c1e5000-4c288000 r--s 00000000 03:01 572773
/usr/j2sdk1.4.0/jre/lib/ext/localedata.jar
4c288000-4c296000 r--s 00000000 03:01 572774
/usr/j2sdk1.4.0/jre/lib/ext/ldapsec.jar
4c296000-4c2d9000 r-xp 00000000 03:01 2139476
/usr/j2sdk1.4.0/jre/lib/i386/libjsound.so
4c2d9000-4c2db000 rw-p 00042000 03:01 2139476
/usr/j2sdk1.4.0/jre/lib/i386/libjsound.so

Local Time = Tue Apr 16 03:16:30 2002
Elapsed Time = 16
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.0-b92 mixed mode)
#


This bug can be reproduced often.

---------- BEGIN SOURCE ----------
import java.lang.*;
import javax.sound.sampled.*;

/**
 *
 * @author  pee
 */
public class soundCrasher {

    TargetDataLine line;
    SourceDataLine oline;


    /** Creates a new instance of tester */
    public soundCrasher() {

        byte readBuffer[] = null;
        byte encodedBuffer[] = null;
        byte writeBuffer[] = null;
        int testSize = 8000;
        int encodedBytes = 0;
        int writeBytes = 0;
        int readBytes = 0;
        boolean go = true;

        readBuffer = new byte[testSize];
        encodedBuffer = new byte[testSize];
        writeBuffer = new byte[testSize];

        AudioFormat format = null;
        DataLine.Info info = null;

        format = new AudioFormat(AudioFormat.Encoding.PCM_SIGNED, 8000, 16, 1,
2, 8000, false);

        capabilities();




        while(go) {
            info = new DataLine.Info(TargetDataLine.class,format); // format is
an AudioFormat object
            if (!AudioSystem.isLineSupported(info)) {
                System.out.println(format + " not supported");
                System.exit(0);
            }
            // Obtain and open the line.
            try {

                line = (TargetDataLine) AudioSystem.getLine(info);
                line.open(format);
                System.out.println("Line open()");

            } catch (LineUnavailableException ex) {
                System.out.println(ex);
                ex.printStackTrace();
                System.out.flush();
            }

            line.start();
            readBytes = line.read(readBuffer,0,testSize);
            System.out.println("Read " + readBytes + " bytes");
            line.stop();
            line.drain();
            line.close();
            System.out.println("line.close()");
            System.out.flush();

            info = new DataLine.Info(SourceDataLine.class,format); // format is
an AudioFormat object
            if (!AudioSystem.isLineSupported(info)) {
                System.out.println(format + " not supported");
                System.exit(0);
            }
            // Obtain and open the line.
            try {

                oline = (SourceDataLine) AudioSystem.getLine(info);
                if ( oline.isActive() || oline.isOpen() || oline.isRunning() ) {
                    System.out.println("A|O|R");
                }

            } catch (Exception ex) {
                ex.printStackTrace();
                System.out.flush();
            }

            try {
                oline.open(format);
            } catch (Exception e) {
                e.printStackTrace();
            }
            oline.start();
            oline.write(encodedBuffer,0,testSize);
            oline.flush();
            oline.stop();
            oline.close();

        }


        line.close();
        oline.close();
        System.exit(0);
    }







    public void capabilities() {
        Mixer.Info mi[];
        Line.Info li[];
        Mixer mixer;
        Line line;
        Line lines[];
        Control controls[];

        mi = AudioSystem.getMixerInfo();

        for (int i = 0; i < mi.length; i++) {
            System.out.println(i + ":Mixer : " + mi[i]);
            System.out.println(i + ":Desc  : " + mi[i].getDescription());
            System.out.println(i + ":Name  : " + mi[i].getName());
            System.out.println(i + ":Vendor: " + mi[i].getVendor());
            System.out.println(i + ":Vers  : " + mi[i].getVersion());
            mixer = AudioSystem.getMixer(mi[i]);
            li  = mixer.getSourceLineInfo();
            for (int j = 0; j< li.length; j++ ) {
                System.out.println("LineClass : " + li[j].getLineClass());
                try {
                    line = mixer.getLine(li[j]);
                    controls = line.getControls();
                    for (int k = 0; k < controls.length; k++) {
                        System.out.println("Control : " + controls[k]);
                    }
                } catch (Exception e) {
                    System.out.println(e);
                }

            }
            li  = mixer.getTargetLineInfo();
            for (int j = 0; j< li.length; j++ ) {

                System.out.println("LineClass : " + li[j].getLineClass());
                try {
                    line = mixer.getLine(li[j]);
                    controls = line.getControls();
                    for (int k = 0; k < controls.length; k++) {
                        System.out.println("Control : " + controls[k]);
                    }
                } catch (Exception e) {
                    System.out.println(e);
                }


            }

        }
    }

    public static void main(String args[]) {

        soundCrasher sc = new soundCrasher();

    }
}

---------- END SOURCE ----------


(Review ID: 145464)
======================================================================


Name: rmT116609			Date: 08/31/2001


java version "1.4.0-beta2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta2-b77)
Java HotSpot(TM) Client VM (build 1.4.0-beta2-b77, mixed mode)


The demo is crashing for me on a Linux RH 7.1 SMP system. I believe it is a sound error.
I don't have the name of the sound device handy (it is an on-board device). 

This is an on-motherboard sound system called "Crystal CS4235"

Here are the steps to reproduce the crash:

java -jar SwingSet2.jar

...wait for buttons to finish loading...

Go to Themes->Audio->On

Select the 4th from the left demo (JComboBox)

Click on the ComboBox for Presets to cause it to open

Wait a couple of seconds

Click on it again to cause it to close

Click on it again to cause it to open again

The JVM will crash at this point, every time.

Here is the HotSpot error log:

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x4A4B234F
Function=PV_GetWavePitch+0x1C57
Library=/usr/local/jdk1.4.0/jre/lib/i386/libjsound.so

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

Dynamic libraries:
08048000-0804d000 r-xp 00000000 08:01 225316     /usr/local/jdk1.4.0/bin/java
0804d000-0804e000 rw-p 00004000 08:01 225316     /usr/local/jdk1.4.0/bin/java
40000000-40016000 r-xp 00000000 08:05 272670     /lib/ld-2.2.2.so
40016000-40017000 rw-p 00015000 08:05 272670     /lib/ld-2.2.2.so
40018000-40021000 r-xp 00000000 08:01 97390
/usr/local/jdk1.4.0/jre/lib/i386/native_threads/libhpi.so
40021000-40022000 rw-p 00008000 08:01 97390
/usr/local/jdk1.4.0/jre/lib/i386/native_threads/libhpi.so
40022000-40023000 r--p 00000000 08:05 192399
/usr/lib/locale/en_US/LC_IDENTIFICATION
40023000-40024000 r--p 00000000 08:05 192400
/usr/lib/locale/en_US/LC_MEASUREMENT
40024000-40031000 r-xp 00000000 08:05 336793     /lib/i686/libpthread-0.9.so
40031000-40039000 rw-p 0000c000 08:05 336793     /lib/i686/libpthread-0.9.so
40039000-4003c000 r-xp 00000000 08:05 272683     /lib/libdl-2.2.2.so
4003c000-4003d000 rw-p 00002000 08:05 272683     /lib/libdl-2.2.2.so
4003d000-40163000 r-xp 00000000 08:05 336789     /lib/i686/libc-2.2.2.so
40163000-40169000 rw-p 00125000 08:05 336789     /lib/i686/libc-2.2.2.so
4016d000-40406000 r-xp 00000000 08:01 128982
/usr/local/jdk1.4.0/jre/lib/i386/client/libjvm.so
40406000-4054b000 rw-p 00298000 08:01 128982
/usr/local/jdk1.4.0/jre/lib/i386/client/libjvm.so
4055f000-40572000 r-xp 00000000 08:05 272688     /lib/libnsl-2.2.2.so
40572000-40574000 rw-p 00012000 08:05 272688     /lib/libnsl-2.2.2.so
40576000-405aa000 r-xp 00000000 08:05 272744
/usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
405aa000-405b6000 rw-p 00033000 08:05 272744
/usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
405b8000-405db000 r-xp 00000000 08:05 336791     /lib/i686/libm-2.2.2.so
405db000-405dc000 rw-p 00022000 08:05 336791     /lib/i686/libm-2.2.2.so
405dc000-405ed000 r-xp 00000000 08:01 97394
/usr/local/jdk1.4.0/jre/lib/i386/libverify.so
405ed000-405ef000 rw-p 00010000 08:01 97394
/usr/local/jdk1.4.0/jre/lib/i386/libverify.so
405ef000-40610000 r-xp 00000000 08:01 97395
/usr/local/jdk1.4.0/jre/lib/i386/libjava.so
40610000-40612000 rw-p 00020000 08:01 97395
/usr/local/jdk1.4.0/jre/lib/i386/libjava.so
40613000-40627000 r-xp 00000000 08:01 97397
/usr/local/jdk1.4.0/jre/lib/i386/libzip.so
40627000-4062a000 rw-p 00013000 08:01 97397
/usr/local/jdk1.4.0/jre/lib/i386/libzip.so
4062a000-41bab000 r--s 00000000 08:01 98263      /usr/local/jdk1.4.0/jre/lib/rt.jar
41bec000-41c01000 r--s 00000000 08:01 97475
/usr/local/jdk1.4.0/jre/lib/sunrsasign.jar
41c01000-41c7c000 r--s 00000000 08:01 97477
/usr/local/jdk1.4.0/jre/lib/jsse.jar
41c7c000-41c8f000 r--s 00000000 08:01 97476      /usr/local/jdk1.4.0/jre/lib/jce.jar
41c8f000-41f09000 r--s 00000000 08:01 98261
/usr/local/jdk1.4.0/jre/lib/charsets.jar
43fb1000-43fb2000 r--p 00000000 08:05 192403     /usr/lib/locale/en_US/LC_TELEPHONE
43fb2000-43fb3000 r--p 00000000 08:05 192398     /usr/lib/locale/en_US/LC_ADDRESS
43fb3000-43fb4000 r--p 00000000 08:05 192401     /usr/lib/locale/en_US/LC_NAME
43fb4000-43fb5000 r--p 00000000 08:05 192402     /usr/lib/locale/en_US/LC_PAPER
43fb5000-43fb6000 r--p 00000000 08:05 144344
/usr/lib/locale/en_US/LC_MESSAGES/SYS_LC_MESSAGES
43fb6000-43fb7000 r--p 00000000 08:05 320675     /usr/lib/locale/en_US/LC_MONETARY
43fb7000-43fbd000 r--p 00000000 08:05 400851     /usr/lib/locale/en_US/LC_COLLATE
43fbd000-43fbe000 r--p 00000000 08:05 192404     /usr/lib/locale/en_US/LC_TIME
43fbe000-43fbf000 r--p 00000000 08:05 288622     /usr/lib/locale/en_US/LC_NUMERIC
4a1a4000-4a1bf000 r--p 00000000 08:05 176406     /usr/lib/locale/en_US/LC_CTYPE
4a1bf000-4a1c1000 r--s 00000000 08:01 128986
/usr/local/jdk1.4.0/jre/lib/ext/dnsns.jar
4a1c1000-4a1c7000 r-xp 00000000 08:05 192807     /usr/X11R6/lib/libXp.so.6.2
4a1c7000-4a1c9000 rw-p 00005000 08:05 192807     /usr/X11R6/lib/libXp.so.6.2
4a1cb000-4a1d5000 r-xp 00000000 08:05 272704     /lib/libnss_files-2.2.2.so
4a1d5000-4a1d6000 rw-p 00009000 08:05 272704     /lib/libnss_files-2.2.2.so
4a486000-4a4c9000 r-xp 00000000 08:01 97459
/usr/local/jdk1.4.0/jre/lib/i386/libjsound.so
4a4c9000-4a4cb000 rw-p 00042000 08:01 97459
/usr/local/jdk1.4.0/jre/lib/i386/libjsound.so
4a553000-4a570000 r--s 00000000 08:01 128985
/usr/local/jdk1.4.0/jre/lib/ext/sunjce_provider.jar
4a570000-4a60f000 r--s 00000000 08:01 128987
/usr/local/jdk1.4.0/jre/lib/ext/localedata.jar
4a60f000-4a61d000 r--s 00000000 08:01 128988
/usr/local/jdk1.4.0/jre/lib/ext/ldapsec.jar
4a61d000-4a76b000 r--s 00000000 08:01 465862
/usr/local/jdk1.4.0/demo/jfc/SwingSet2/SwingSet2.jar
4a76b000-4aa24000 r-xp 00000000 08:01 97462
/usr/local/jdk1.4.0/jre/lib/i386/libawt.so
4aa24000-4aa38000 rw-p 002b8000 08:01 97462
/usr/local/jdk1.4.0/jre/lib/i386/libawt.so
4aa5d000-4aaae000 r-xp 00000000 08:01 97461
/usr/local/jdk1.4.0/jre/lib/i386/libmlib_image.so
4aaae000-4aaaf000 rw-p 00050000 08:01 97461
/usr/local/jdk1.4.0/jre/lib/i386/libmlib_image.so
4aaaf000-4aab4000 r-xp 00000000 08:01 97458
/usr/local/jdk1.4.0/jre/lib/i386/libnio.so
4aab4000-4aab5000 rw-p 00004000 08:01 97458
/usr/local/jdk1.4.0/jre/lib/i386/libnio.so
4aab5000-4aab7000 r-xp 00000000 08:05 144532     /usr/lib/gconv/ISO8859-1.so
4aab7000-4aab8000 rw-p 00001000 08:05 144532     /usr/lib/gconv/ISO8859-1.so
4aabb000-4ab03000 r-xp 00000000 08:05 192813     /usr/X11R6/lib/libXt.so.6.0
4ab03000-4ab07000 rw-p 00047000 08:05 192813     /usr/X11R6/lib/libXt.so.6.0
4ab08000-4ab14000 r-xp 00000000 08:05 192797     /usr/X11R6/lib/libXext.so.6.4
4ab14000-4ab16000 rw-p 0000b000 08:05 192797     /usr/X11R6/lib/libXext.so.6.4
4ab16000-4ab1a000 r-xp 00000000 08:05 192815     /usr/X11R6/lib/libXtst.so.6.1
4ab1a000-4ab1c000 rw-p 00003000 08:05 192815     /usr/X11R6/lib/libXtst.so.6.1
4ab1c000-4abf7000 r-xp 00000000 08:05 192789     /usr/X11R6/lib/libX11.so.6.2
4abf7000-4abfb000 rw-p 000da000 08:05 192789     /usr/X11R6/lib/libX11.so.6.2
4abfc000-4ac04000 r-xp 00000000 08:05 192787     /usr/X11R6/lib/libSM.so.6.0
4ac04000-4ac05000 rw-p 00007000 08:05 192787     /usr/X11R6/lib/libSM.so.6.0
4ac05000-4ac19000 r-xp 00000000 08:05 192783     /usr/X11R6/lib/libICE.so.6.3
4ac19000-4ac1a000 rw-p 00013000 08:05 192783     /usr/X11R6/lib/libICE.so.6.3
4ac1c000-4acdf000 r-xp 00000000 08:01 97464
/usr/local/jdk1.4.0/jre/lib/i386/libfontmanager.so
4acdf000-4acfa000 rw-p 000c2000 08:01 97464
/usr/local/jdk1.4.0/jre/lib/i386/libfontmanager.so
4acfa000-4ad0b000 r-xp 00000000 08:01 97457
/usr/local/jdk1.4.0/jre/lib/i386/libnet.so
4ad0b000-4ad0c000 rw-p 00010000 08:01 97457
/usr/local/jdk1.4.0/jre/lib/i386/libnet.so
4aeb0000-4aee7000 r-xp 00000000 08:01 97465
/usr/local/jdk1.4.0/jre/lib/i386/libjpeg.so
4aee7000-4aee8000 rw-p 00036000 08:01 97465
/usr/local/jdk1.4.0/jre/lib/i386/libjpeg.so

Local Time = Thu Aug 30 16:20:17 2001
Elapsed Time = 116
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.0-beta2-b77 mixed mode)
#
(Review ID: 131067) 
======================================================================


###@###.### 2002-03-12
	The following crash also occured:
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x4EB5AAC8
Function=PV_ProcessSequencerEvents+0xC
Library=/.automount/capra/root/export12/java2d/builds/05-Dec-01/linux/jre/lib/i386/libjsound.so

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


Name: rmT116609			Date: 04/18/2002


FULL OPERATING SYSTEM VERSION :
(03:10 nomad:~) uname -a
Linux nomad 2.4.18 #5 SMP Mon Apr 15 08:24:21 EDT 2002 i686
unknown

EXTRA RELEVANT SYSTEM CONFIGURATION :
This crash occurs on multiple machines. IBM Thinkpad T20 with  oss/4front sound drivers:
(04:12 nomad:/lib) more /dev/sndstat
OSS/Linux 3.9.6c (C) 4Front Technologies 1996-2002

Card config:
Crystal CS4280 at 0xe8122000 irq 4

Audio devices:
0: Crystal Semiconductor CS4280 Rev. B (DUPLEX,GRC2)
1: Crystal Semiconductor CS4280 Rev. B (playback only)

Synth devices:
Midi devices:
0: CS4280 MIDI Port

Timers:
0: System clock

Mixers:
0: Crystal AC97 (CS4297A)

Also on a no name VIA AC97 soundcard machine

Crash occurs with the 4front drivers, and also using
the compiled in drivers in the 2.4.18 kernel

DESCRIPTION OF THE PROBLEM :
The JVM will crash with a similar traceback randomly when attempting to do playback.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run the attached source , if it doesn't hang in the first write() run it again till it dumps.

**** NOTE ** I've left the capabilities() function in the output in case it was important. You can run and crash the JVM w/o that information.

When it dumps it looks like this:

(04:23 nomad:~/Desktop/Sources/ErkkilaDotOrg) java soundCrasher
0:Mixer : Java Sound Audio Engine, version 1.0
0:Desc  : Software mixer and synthesizer
0:Name  : Java Sound Audio Engine
0:Vendor: Sun Microsystems
0:Vers  : 1.0
LineClass : interface javax.sound.sampled.SourceDataLine
Control : Master Gain with current value: 0.0 dB (range:
-80.0 - 13.9794)
Control : Mute Control with current value: False
Control : Pan with current value: 0.0  (range: -1.0 - 1.0)
Control : Sample Rate with current value: -1.0 FPS (range:
0.0 - 48000.0)
LineClass : interface javax.sound.sampled.Clip
Control : Master Gain with current value: 0.0 dB (range:
-80.0 - 13.9794)
Control : Mute Control with current value: Not Mute
Control : Pan with current value: 0.0  (range: -1.0 - 1.0)
Control : Sample Rate with current value: -1.0 FPS (range:
0.0 - 48000.0)
LineClass : interface javax.sound.sampled.DataLine
Control : Master Gain with current value: 0.0 dB (range:
-80.0 - 13.9794)
Control : Mute Control with current value: False
Control : Pan with current value: 0.0  (range: -1.0 - 1.0)
Control : Sample Rate with current value: 44100.0 FPS
(range: 0.0 - 48000.0)
1:Mixer : Linux,dev/dsp,multi threaded, version Unknown Version
1:Desc  : No details available
1:Name  : Linux,dev/dsp,multi threaded
1:Vendor: Unknown Vendor
1:Vers  : Unknown Version
LineClass : interface javax.sound.sampled.TargetDataLine
2:Mixer : Linux,dev/audio,multi threaded, version Unknown
Version
2:Desc  : No details available
2:Name  : Linux,dev/audio,multi threaded
2:Vendor: Unknown Vendor
2:Vers  : Unknown Version
LineClass : interface javax.sound.sampled.SourceDataLine
Line open()
Read 8000 bytes
line.close()

An unexpected exception has been detected in native code
outside the VM.
Unexpected Signal : 11 occurred at PC=0x4C2C2927
Function=HAE_BuildMixerSlice+0xAB
Library=/usr/j2sdk1.4.0/jre/lib/i386/libjsound.so

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


EXPECTED VERSUS ACTUAL BEHAVIOR :
I was expecting to hear sounds from my pc.

ERROR MESSAGES/STACK TRACES THAT OCCUR :
::::::::::::::
hs_err_pid5828.log
::::::::::::::

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x4C2C2994
Function=HAE_BuildMixerSlice+0x118
Library=/usr/j2sdk1.4.0/jre/lib/i386/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:
08048000-0804d000 r-xp 00000000 03:01 2025253    /usr/j2sdk1.4.0/bin/java
0804d000-0804e000 rw-p 00004000 03:01 2025253    /usr/j2sdk1.4.0/bin/java
40000000-40015000 r-xp 00000000 03:01 456964     /lib/ld-2.2.5.so
40015000-40016000 rw-p 00014000 03:01 456964     /lib/ld-2.2.5.so
40017000-40018000 r--p 00000000 03:01 1550410
/usr/lib/locale/en_US/LC_IDENTIFICATION
40018000-40019000 r--p 00000000 03:01 1550409
/usr/lib/locale/en_US/LC_MEASUREMENT
40019000-4001a000 r--p 00000000 03:01 1550408    /usr/lib/locale/en_US/LC_TELEPHONE
4001a000-4001b000 r--p 00000000 03:01 1550407    /usr/lib/locale/en_US/LC_ADDRESS
4001b000-4001c000 r--p 00000000 03:01 1550406    /usr/lib/locale/en_US/LC_NAME
4001c000-4001d000 r--p 00000000 03:01 2203206    /usr/lib/locale/en_US/LC_PAPER
4001d000-4001e000 r--p 00000000 03:01 2105283
/usr/lib/locale/en_US/LC_MESSAGES/SYS_LC_MESSAGES
4001e000-4001f000 r--p 00000000 03:01 1550405    /usr/lib/locale/en_US/LC_MONETARY
4001f000-4002d000 r-xp 00000000 03:01 456971     /lib/libpthread-0.9.so
4002d000-40035000 rw-p 0000d000 03:01 456971     /lib/libpthread-0.9.so
40035000-40037000 r-xp 00000000 03:01 456968     /lib/libdl-2.2.5.so
40037000-40039000 rw-p 00001000 03:01 456968     /lib/libdl-2.2.5.so
40039000-4015a000 r-xp 00000000 03:01 456963     /lib/libc-2.2.5.so
4015a000-40161000 rw-p 00120000 03:01 456963     /lib/libc-2.2.5.so
40166000-40429000 r-xp 00000000 03:01 1796723
/usr/j2sdk1.4.0/jre/lib/i386/client/libjvm.so
40429000-40571000 rw-p 002c2000 03:01 1796723
/usr/j2sdk1.4.0/jre/lib/i386/client/libjvm.so
40585000-40597000 r-xp 00000000 03:01 456981     /lib/libnsl-2.2.5.so
40597000-40599000 rw-p 00011000 03:01 456981     /lib/libnsl-2.2.5.so
4059b000-405cf000 r-xp 00000000 03:01 1713737
/usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
405cf000-405db000 rw-p 00033000 03:01 1713737
/usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
405dd000-405fe000 r-xp 00000000 03:01 456967     /lib/libm-2.2.5.so
405fe000-405ff000 rw-p 00020000 03:01 456967     /lib/libm-2.2.5.so
405ff000-40608000 r-xp 00000000 03:01 2041565
/usr/j2sdk1.4.0/jre/lib/i386/native_threads/libhpi.so
40608000-40609000 rw-p 00008000 03:01 2041565
/usr/j2sdk1.4.0/jre/lib/i386/native_threads/libhpi.so
40609000-4061a000 r-xp 00000000 03:01 2139468
/usr/j2sdk1.4.0/jre/lib/i386/libverify.so
4061a000-4061c000 rw-p 00010000 03:01 2139468
/usr/j2sdk1.4.0/jre/lib/i386/libverify.so
4061c000-4063d000 r-xp 00000000 03:01 2139469
/usr/j2sdk1.4.0/jre/lib/i386/libjava.so
4063d000-4063f000 rw-p 00020000 03:01 2

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

WORK AROUND ###@###.### 2002-01-25 2 workarounds have appeared - they document at the same time where the cause is: 1. Use ALSA sound drivers instead of kernel audio drivers 2. Introduce a slight delay before calling close().
11-06-2004

EVALUATION ###@###.### 2002-01-25 I still haven't been able to reproduce this bug, but it seems to have the following properties: - only occurs at close() time - only occurs on faster machines (i.e. occasionally on 366MHz, but consistently on 966MHz) - does not occur with ALSA sound drivers ###@###.### 2002-03-12 Changing synopsis to "Sound causes crashes on Linux" from "SwingSet2 demo crashes on Linux RH 7.1 SMP system when sound turned on". Linux crashes will be handled under this bug ID. ###@###.### 2002-04-22 Got a machine which consistently crashed (especially with the program given in the JDC comments). Needed to fix some threading issues in the Java Sound Engine to fix this.
22-04-2002