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

Segmentation fault occured(Function=thr_sighndlrinfo+0x2D7)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 1.4.0, 1.4.1
    • hotspot
    • x86, sparc
    • linux, solaris_8



      Name: rmT116609 Date: 03/19/2002


      FULL PRODUCT VERSION :
      java version "1.4.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
      Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)

      and also

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

      FULL OPERATING SYSTEM VERSION :
      SunOS mercury 5.8 Generic_108529-03 i86pc i386 i86pc

      A DESCRIPTION OF THE PROBLEM :
      Segmentation fault occur on condition that a little swap area. This test program is 100000 threads make and start. I hope that segmentation fault don't occur.

      Logging of df command
      Filesystem kbytes used avail capacity
      Mounted on
      /dev/dsk/c0d0s0 1573470 1361891 148641 91% /
      /dev/dsk/c0d0p0:boot 10484 1623 8861 16% /boot
      /proc 0 0 0 0% /proc
      fd 0 0 0
      0% /dev/fd
      mnttab 0 0 0
      0% /etc/mnttab
      swap 13980 0 13980
      0% /var/run
      swap 514992 501012 13980 98% /tmp
      /dev/dsk/c0d0s7 912142 668585 188829
      78% /export/home

      REGRESSION. Last worked in version 1.2.2

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1.condition that a little swap area

      2.run test program
       >java ThreadTest

      3.Segmentation fault occur

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      Expected:
       >java ThreadTest
       >Make Thread Start
       >Make Thread End
       >
       or
      OutOfMemoryError
      (I hope don't occur Segmentation fault)

      Actual Results:
       >An unexpected exception has been detected in native code
      outside the VM.
      An unexpected exception has been detected in native code outside the VM.
      Unexpected Signal : 10 occurred at PC=0xDFB8152F
      Function=thr_sighndlrinfo+0x2D7
      Library=/usr/lib/libthread.so.1

      Current Java thread:
              at java.lang.Thread.start(Native Method)
              - locked <d284fd40> (a Thr)
              at ThreadTest.main(ThreadTest.java:7)

      Dynamic libraries:
      0x8050000 java
      0xdfb70000 /usr/lib/libthread.so.1
      0xdfbb0000 /usr/lib/libdl.so.1
      0xdfac0000 /usr/lib/libc.so.1
      0xde800000 /usr/j2sdk1.4.0/jre/lib/i386/server/libjvm.so
      0xdfa60000 /usr/lib/libCrun.so.1
      0xdfa40000 /usr/lib/libsocket.so.1
      0xdf990000 /usr/lib/libnsl.so.1
      0xdf970000 /usr/lib/libm.so.1
      0xdfa80000 /usr/lib/libw.so.1
      0xdf940000 /usr/lib/libmp.so.2
      0xdf910000 /usr/j2sdk1.4.0/jre/lib/i386/native_threads/libhpi.so
      0xdf8d0000 /usr/j2sdk1.4.0/jre/lib/i386/libverify.so
      0xdf8a0000 /usr/j2sdk1.4.0/jre/lib/i386/libjava.so
      0xdf880000 /usr/j2sdk1.4.0/jre/lib/i386/libzip.so

      Local Time = Mon Aug 6 09:37:03 2001
      Elapsed Time = 1
      #
      # The exception above was detected in native code outside the VM
      #
      # Java VM: Java HotSpot(TM) Server VM (1.4.0-b92 mixed mode)
      #

      This bug can be reproduced always.


      class ThreadTest{
          public static void main(String args[]){
              System.out.println("Make Thread Start");
              Thr thr[] = new Thr[100000];
              for(int i = 0 ; i < 100000 ; i++) {
                  thr[i] = new Thr();
                  thr[i].start();
              }
              System.out.println("Make Thread End");
          }
      }

      class Thr extends Thread {
      }


      Additional information:

      Solaris(TM) Operating System patches for Java(TM) 2 SDK, Standard Edition 1.4.0
      is applied.

      (Review ID: 143657)
      ======================================================================

      Name: agR10195 Date: 06/26/2002



      Alexey Gibadullin, ###@###.###

      I have developed a testcase for the testbase_nsk based on
      ThreadTest class. The test will be shipped with 16 release
      of testbase_nsk; and the test name will be:

          nsk/regression/b4654928
          
      The location of the testbase:

          /net/sqesvr.sfbay/export/vsn/VM/testbase/testbase_nsk
          
      I could reproduce the crash against Hopper-b15 on Linux Rad Hat 7.2

      $ uname -a
      Linux java9 2.4.9-31smp #1 SMP Tue Feb 26 06:55:00 EST 2002 i686 unknown

      The failure is intermittent (about 1/40) and I observed the crash with
      -Xcomp option against Server VM only.

      I used a small sh-script to wait for the crash:

      -----------------------------------------------------------------
      while [ true ];
      do
          ../jdk1.4.1-b15/linux-i586/bin/java -server -Xcomp ThreadTest
      done
      -----------------------------------------------------------------

      and the output was:

      Make Thread Start
      Make Thread End
      Make Thread Start
      Make Thread End
      Make Thread Start

      An unexpected exception has been detected in native code outside the VM.
      Unexpected Signal : 11 occurred at PC=0x4002FBA0
      Function=(null)+0x4002FBA0
      Library=/lib/i686/libpthread.so.0

      NOTE: We are unable to locate the function name symbol for the error
            just occurred. Please refer to release documentation for possible
            reason and solutions.


      Current Java thread:

      Dynamic libraries:
      08048000-0804e000 r-xp 00000000 00:13 506793
      /.automount/java9/root/export/home/java/dest/jdk1.4.1-b15/linux-i586/bin/java
      0804e000-0804f000 rw-p 00005000 00:13 506793
      /.automount/java9/root/export/home/java/dest/jdk1.4.1-b15/linux-i586/bin/java
      40000000-40016000 r-xp 00000000 08:01 177309 /lib/ld-2.2.4.so
      40016000-40017000 rw-p 00015000 08:01 177309 /lib/ld-2.2.4.so
      40018000-40021000 r-xp 00000000 00:13 506183
      /.automount/java9/root/export/home/java/dest/jdk1.4.1-b15/linux-i586/jre/lib/i386
      /native_threads/libhpi.so
      40021000-40022000 rw-p 00008000 00:13 506183
      /.automount/java9/root/export/home/java/dest/jdk1.4.1-b15/linux-i586/jre/lib/i386
      /native_threads/libhpi.so
      40025000-40032000 r-xp 00000000 08:01 145196 /lib/i686/libpthread-0.9.so
      40032000-4003a000 rw-p 0000c000 08:01 145196 /lib/i686/libpthread-0.9.so
      4003a000-4003d000 r-xp 00000000 08:01 177322 /lib/libdl-2.2.4.so
      4003d000-4003e000 rw-p 00002000 08:01 177322 /lib/libdl-2.2.4.so
      4003e000-40170000 r-xp 00000000 08:01 145192 /lib/i686/libc-2.2.4.so
      40170000-40175000 rw-p 00131000 08:01 145192 /lib/i686/libc-2.2.4.so
      40179000-4060f000 r-xp 00000000 00:13 506186
      /.automount/java9/root/export/home/java/dest/jdk1.4.1-b15/linux-i586/jre/lib/i386
      /server/libjvm.so
      4060f000-4081b000 rw-p 00495000 00:13 506186
      /.automount/java9/root/export/home/java/dest/jdk1.4.1-b15/linux-i586/jre/lib/i386
      /server/libjvm.so
      4082d000-40840000 r-xp 00000000 08:01 177327 /lib/libnsl-2.2.4.so
      40840000-40841000 rw-p 00012000 08:01 177327 /lib/libnsl-2.2.4.so
      40843000-40865000 r-xp 00000000 08:01 145194 /lib/i686/libm-2.2.4.so
      40865000-40866000 rw-p 00021000 08:01 145194 /lib/i686/libm-2.2.4.so
      40866000-40876000 r-xp 00000000 00:13 506198
      /.automount/java9/root/export/home/java/dest/jdk1.4.1-b15/linux-i586/jre/lib/i386
      /libverify.so
      40876000-40878000 rw-p 0000f000 00:13 506198
      /.automount/java9/root/export/home/java/dest/jdk1.4.1-b15/linux-i586/jre/lib/i386
      /libverify.so
      40878000-40899000 r-xp 00000000 00:13 506199
      /.automount/java9/root/export/home/java/dest/jdk1.4.1-b15/linux-i586/jre/lib/i386
      /libjava.so
      40899000-4089b000 rw-p 00020000 00:13 506199
      /.automount/java9/root/export/home/java/dest/jdk1.4.1-b15/linux-i586/jre/lib/i386
      /libjava.so
      4089b000-408b0000 r-xp 00000000 00:13 506201
      /.automount/java9/root/export/home/java/dest/jdk1.4.1-b15/linux-i586/jre/lib/i386
      /libzip.so
      408b0000-408b2000 rw-p 00014000 00:13 506201
      /.automount/java9/root/export/home/java/dest/jdk1.4.1-b15/linux-i586/jre/lib/i386
      /libzip.so
      408b2000-41f7e000 r--s 00000000 00:13 506762
      /.automount/java9/root/export/home/java/dest/jdk1.4.1-b15/linux-i586/jre/lib/rt.j
      ar
      41fc1000-41fd8000 r--s 00000000 00:13 506250
      /.automount/java9/root/export/home/java/dest/jdk1.4.1-b15/linux-i586/jre/lib/sunr
      sasign.jar
      41fd8000-42049000 r--s 00000000 00:13 506258
      /.automount/java9/root/export/home/java/dest/jdk1.4.1-b15/linux-i586/jre/lib/jsse
      .jar
      42049000-4205c000 r--s 00000000 00:13 506251
      /.automount/java9/root/export/home/java/dest/jdk1.4.1-b15/linux-i586/jre/lib/jce.
      jar
      4205c000-42317000 r--s 00000000 00:13 506721
      /.automount/java9/root/export/home/java/dest/jdk1.4.1-b15/linux-i586/jre/lib/char
      sets.jar
      4c5c2000-4c5ed000 r--p 00000000 08:01 161260 /usr/lib/locale/en_US/LC_CTYPE
      4c5ed000-4c5f0000 r--s 00000000 00:13 506247
      /.automount/java9/root/export/home/java/dest/jdk1.4.1-b15/linux-i586/jre/lib/ext/
      dnsns.jar
      4c5fa000-4c604000 r-xp 00000000 08:01 177343 /lib/libnss_files-2.2.4.so
      4c604000-4c605000 rw-p 00009000 08:01 177343 /lib/libnss_files-2.2.4.so
      4c605000-4c60f000 r-xp 00000000 08:01 177351 /lib/libnss_nisplus-2.2.4.so
      4c60f000-4c610000 rw-p 00009000 08:01 177351 /lib/libnss_nisplus-2.2.4.so
      4c610000-4c61a000 r-xp 00000000 08:01 177348 /lib/libnss_nis-2.2.4.so
      4c61a000-4c61b000 rw-p 00009000 08:01 177348 /lib/libnss_nis-2.2.4.so
      4cba0000-4cbbd000 r--s 00000000 00:13 506246
      /.automount/java9/root/export/home/java/dest/jdk1.4.1-b15/linux-i586/jre/lib/ext/
      sunjce_provider.jar
      4cbbd000-4cc5c000 r--s 00000000 00:13 506248
      /.automount/java9/root/export/home/java/dest/jdk1.4.1-b15/linux-i586/jre/lib/ext/
      localedata.jar
      4cc5c000-4cc6a000 r--s 00000000 00:13 506249
      /.automount/java9/root/export/home/java/dest/jdk1.4.1-b15/linux-i586/jre/lib/ext/
      ldapsec.jar

      Local Time = Wed Jun 26 15:12:34 2002
      Elapsed Time = 11


      ****************
      Another exception has been detected while we were handling last error.
      Dumping information about last error:
      ERROR REPORT FILE = (N/A)
      PC = 0x0x4002fba0
      SIGNAL = 11
      FUNCTION NAME = (N/A)
      OFFSET = 0x4002FBA0
      LIBRARY NAME = /lib/i686/libpthread.so.0
      Please check ERROR REPORT FILE for further information, if there is any.
      Good bye.
      #
      # The exception above was detected in native code outside the VM
      #
      # Java VM: Java HotSpot(TM) Server VM (1.4.1-rc-b15 compiled mode)
      #
      # An error report file has been saved as hs_err_pid32566.log.
      # Please refer to the file for further information.
      #

      ======================================================================

            duke J. Duke
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: