Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4788281

javax.sound.midi app crashes after 38hours with 1.4.1_01.

XMLWordPrintable

      A small application which plays midi notes continually will crash reliably after 38hours, 40 minutes of real time elapses. The app does not crash after this time if it is not playing midi notes.

      Testcase:
      ========
      Using attached java files, and jva 1.4.1_01:

      javac Utils.java
      Javac PlayIntervals.java
      time java PlayIntervals

      I use the time command as the app may crash during the night or when unobserved.

      After the application output we see:

      An unexpected exception has been detected in native code outside the VM.
      Unexpected Signal : 11 occurred at PC=0xFE49C96C
      Function=PV_ServeStereoInterp2PartialBuffer+0x684
      Library=/net/cafebabe.uk/export/apps/products/java/jdk/prodn/1.4.1_01/jre/lib/sp
      arc/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-Enterprise/lib/libc_psr.so.1
      0xfe000000 /net/cafebabe.uk/export/apps/products/java/jdk/prodn/1.4.1_01/jr
      e/lib/sparc/client/libjvm.so
      0xff1d0000 /usr/lib/libCrun.so.1
      0xff1b0000 /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/cafebabe.uk/export/apps/products/java/jdk/prodn/1.4.1_01/jr
      e/lib/sparc/native_threads/libhpi.so
      0xff050000 /net/cafebabe.uk/export/apps/products/java/jdk/prodn/1.4.1_01/jr
      e/lib/sparc/libverify.so
      0xfe7c0000 /net/cafebabe.uk/export/apps/products/java/jdk/prodn/1.4.1_01/jr
      e/lib/sparc/libjava.so
      0xff020000 /net/cafebabe.uk/export/apps/products/java/jdk/prodn/1.4.1_01/jr
      e/lib/sparc/libzip.so
      0xfe470000 /net/cafebabe.uk/export/apps/products/java/jdk/prodn/1.4.1_01/jr
      e/lib/sparc/libjsound.so

      Local Time = Fri Nov 29 01:48:19 2002
      Elapsed Time = 139238
      #
      # The exception above was detected in native code outside the VM
      #
      # Java VM: Java HotSpot(TM) Client VM (1.4.1_01-b01 mixed mode)
      #
      # An error report file has been saved as hs_err_pid190.log.
      # Please refer to the file for further information.
      #
      Abort(coredump)

      real 38h40m41.14s
      user 1h18m55.30s
      sys 16m3.93s
      sr-egmp03-03(5.8)$


      Native stack from dbx:

      detected a multithreaded program
      t@13 (l@14) terminated by signal ABRT (Abort)
      0xff369794: __sigprocmask+0x0008: jmp %o7 + 0x8
      dbx>where -l
      current thread: t@13
      =>[1] libthread.so.1:__sigprocmask(0x0, 0xf1a803c0, 0x0, 0x0, 0x0, 0x0), at 0xff
      369794
        [2] libthread.so.1:_resetsig(0xff36bf6c, 0x0, 0x0, 0xf1a81d70, 0xff37e000, 0x0
      ), at 0xff35e9a0
        [3] libthread.so.1:_sigon(0xf1a81d70, 0xff385938, 0x6, 0xf1a80494, 0xf1a81d70,
       0x6), at 0xff35e140
        [4] libthread.so.1:_thrp_kill(0x0, 0xd, 0x6, 0xff37e000, 0xd, 0xff2be448), at
      0xff361180
        [5] libc.so.1:raise(0x6, 0x0, 0x0, 0xffffffff, 0xff2be3b4, 0x4), at 0xff24b758
        [6] libc.so.1:abort(0xff2ba000, 0xf1a805e8, 0x0, 0xfffffff8, 0x4, 0xf1a80609),
       at 0xff235a7c
        [7] libjvm.so:os::abort(0x1, 0xfe3ed105, 0xf1a80688, 0x0, 0xfe4394f0, 0xfe33a2
      10), at 0xfe33ba30
        [8] libjvm.so:os::handle_unexpected_exception(0x1991b0, 0xb, 0xfe49c96c, 0xf1a
      813c0, 0xb, 0x0), at 0xfe33a280
        [9] libjvm.so:JVM_handle_solaris_signal(0xfe49c96c, 0xf1a813c0, 0xf1a81108, 0x
      4000, 0x4314, 0x0), at 0xfe33ded0
        [10] libthread.so.1:__sighndlr(0xb, 0xf1a813c0, 0xf1a81108, 0xfe33c7f8, 0xf1a8
      1e14, 0xf1a81e04), at 0xff36b830
        [11] libthread.so.1:sigacthandler(0xb, 0xf1a81d70, 0x0, 0x0, 0x0, 0xff37e000),
       at 0xff368508
        ---- called from signal handler with signal 11 (SIGSEGV) ------
        [12] libjsound.so:PV_ServeStereoInterp2PartialBuffer(0x0, 0x80, 0x19923c, 0x0,
       0x0, 0x0), at 0xfe49c96c
        [13] 0xfe497398(0x0, 0x19923c, 0xf1a81568, 0xfe4bd368, 0x6b1d02e3, 0xf1a81468)
      , at 0xfe497397
        [14] 0xfe497c60(0x19923c, 0x1af6c, 0x1ac00, 0xfe4bd368, 0x1dfd0, 0x1dc00), at
      0xfe497c5f
        [15] libjsound.so:PV_ProcessSampleFrame(0x19923c, 0x196180, 0xb6aadb, 0xfe4bd3
      68, 0x0, 0x0), at 0xfe498338
        [16] libjsound.so:HAE_BuildMixerSlice(0x1dc00, 0x196180, 0x800, 0x200, 0x19518
      0, 0x0), at 0xfe497da8
        [17] libjsound.so:PV_AudioWaveOutFrameThread(0x40844000, 0x0, 0x0, 0x30c, 0x0,
       0x2e8), at 0xfe4a8764
        [18] libjsound.so:Java_com_sun_media_sound_MixerThread_runNative(0x19923c, 0xf
      1a8187c, 0xffffffff, 0xfe4a8620, 0xfa415284, 0x0), at 0xfe47bf40
        [19] 0xfa40bbc8(0xf20af210, 0xb7, 0xf1a81904, 0xf1a8188c, 0x1991b0, 0xf1a81818
      ), at 0xfa40bbc7
        [20] 0xfa405c64(0xf1a81908, 0x0, 0x0, 0xfa415240, 0x35d1c8, 0xf1a818a8), at 0x
      fa405c63
        [21] 0xfa400118(0xf1a81994, 0xf1a81c08, 0xa, 0xf6163ee8, 0xfa40aae0, 0xf1a81b2
      8), at 0xfa400117
        [22] libjvm.so:JavaCalls::call_helper(0xf1a81c00, 0xf1a81a60, 0xf1a81b20, 0x19
      91b0, 0x1991b0, 0xf1a81a74), at 0xfe0d4c10
        [23] libjvm.so:JavaCalls::call_virtual(0xfe424000, 0x1564a0, 0xf1a81b14, 0xf1a
      81b10, 0xf1a81b20, 0x1991b0), at 0xfe0e695c
        [24] libjvm.so:JavaCalls::call_virtual(0xf1a81c00, 0xf1a81bfc, 0xf1a81bf0, 0xf
      1a81be8, 0xf1a81be0, 0x1991b0), at 0xfe0e67bc
        [25] libjvm.so:thread_entry(0x1991b0, 0x1991b0, 0xceb30, 0x1564a0, 0x33dabc, 0
      xfe0e642c), at 0xfe0e6744
        [26] libjvm.so:JavaThread::run(0x1991b0, 0x0, 0x0, 0x0, 0x0, 0x0), at 0xfe0e64
      54
        [27] libjvm.so:_start(0x1991b0, 0xff37f690, 0x1, 0x1, 0xff37e000, 0x0), at 0xf
      e0d33e4


      Core files and showrev -p output attached.

            amenkov Alex Menkov
            kevinw Kevin Walls
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: