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

JVM crashes on failed 'read' call: Internal Error in exceptions.cpp, 308

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • 9
    • 6
    • hotspot
    • None
    • generic
    • solaris

      Injecting the fault in 'read' call crashes JVM:

      #
      # An unexpected error has been detected by Java Runtime Environment:
      #
      # Internal Error
      # (/BUILD_AREA/jdk6.0/hotspot/src/share/vm/utilities/exceptions.cpp, 308 [ Patched ]), pid=22802, tid=128
      #
      # Java VM: Java HotSpot(TM) Server VM (1.6.0-beta2-fastdebug-b84-debug interpreted mode)
      #
      # Error: ExceptionMark destructor expects no pending exceptions
      # If you would like to submit a bug report, please visit:
      # http://java.sun.com/webapps/bugreport/crash.jsp
      #

      --------------- T H R E A D ---------------

      Stack: [0xd5980000,0xd5a00000), sp=0xd59fb7f8, free space=493k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native
      code)
      V [libjvm.so+0xfa8aa4];; __1cHVMErrorOreport_and_die6M_v_+0x808
      V [libjvm.so+0x3f90a8];; __1cMreport_fatal6Fpkci1_v_+0x70
      V [libjvm.so+0x47847c];; __1cNExceptionMark2T6M_v_+0xe8
      V [libjvm.so+0x303974];; __1cLClassLoaderXcreate_class_path_entry6FpcnEstat_ppnOClassPathEntry_b_v_+0x780
      V [libjvm.so+0x301e38];;
      __1cSLazyClassPathEntryLopen_stream6Mpkc_pnPClassFileStream__+0x90
      V [libjvm.so+0x30657c];;
      __1cLClassLoaderOload_classfile6FnMsymbolHandle_pnGThread__nTinstanceKlassHandle__
      +0x2e0
      V [libjvm.so+0xe1d5c8];;
      __1cQSystemDictionaryTload_instance_class6FnMsymbolHandle_nGHandle_pnGThread__nTin
      stanceKlassHandle__+0x68
      V [libjvm.so+0xe16994];;
      __1cQSystemDictionarybEresolve_instance_class_or_null6FnMsymbolHandle_nGHandle_2pn
      GThread__nIklassOop__+0x1a5c
      V [libjvm.so+0xe11654];;
      __1cQSystemDictionaryPresolve_or_null6FnMsymbolHandle_nGHandle_2pnGThread__nIklass
      Oop__+0x2dc
      V [libjvm.so+0xe1078c];;
      __1cQSystemDictionaryPresolve_or_fail6FnMsymbolHandle_nGHandle_2bpnGThread__nIklas
      sOop__+0x54
      V [libjvm.so+0x7cf780];;
      __1cbCfind_class_from_class_loader6FpnHJNIEnv__nMsymbolHandle_CnGHandle_3CpnGThrea
      d__pnH_jclass__+0x64
      V [libjvm.so+0x736e4c];; JVM_FindClassFromClassLoader+0xbfc
      C [libjava.so+0xb924] Java_java_lang_ClassLoader_findBootstrapClass+0x9c;;
      Java_java_lang_ClassLoader_find
      BootstrapClass+0x9c
      j java.lang.ClassLoader.findBootstrapClass(Ljava/lang/String;)Ljava/lang/Class;
      [error occurred during error reporting, step 120, id 0xe0000000]

      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      j java.lang.ClassLoader.findBootstrapClass(Ljava/lang/String;)Ljava/lang/Class;+0
      j java.lang.ClassLoader.findBootstrapClass0(Ljava/lang/String;)Ljava/lang/Class;+23
      j java.lang.ClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;+32
      j java.lang.ClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;+23
      j
      sun.misc.Launcher$AppClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;+36
      j java.lang.ClassLoader.loadClass(Ljava/lang/String;)Ljava/lang/Class;+3
      j sun.security.jca.ProviderConfig$3.run()Ljava/lang/Object;+50
      v ~StubRoutines::call_stub
      ...

      See full read_1491_hs_err.log attached.

      ----------------------

      Here is stack trace from dbx:

        [1] read(0x7, 0xd5bfc4d0, 0x80, 0x0, 0x3d898, 0x180c00), at 0xff38062c
      =>[2] readFully(fd = ???, buf = ???, len = ???) (optimized), at 0xfd1ac174
      (line ~98) in "zip_util.c"
        [3] readFullyAt(fd = ???, buf = ???, len = ???, offset = ???) (optimized),
      at 0xfd1ac218 (line ~124) in "zip_util.c"
        [4] findEND(zip = ???, endbuf = ???) (optimized), at 0xfd1ac418 (line
      ~201) in "zip_util.c"
        [5] readCEN(zip = ???, knownTotal = ???) (optimized), at 0xfd1ac914 (line
      ~385) in "zip_util.c"
        [6] ZIP_Open_Generic(name = ???, pmsg = ???, mode = ???, lastModified =
      ???) (optimized), at 0xfd1ad0b4 (line ~595) in "zip_util.c"
        [7] ZIP_Open(name = ???, pmsg = ???) (optimized), at 0xfd1ad124 (line
      ~621) in "zip_util.c"
        [8] ClassLoader::create_class_path_entry(0xfd1e2b9c, 0x27000, 0xd5bfd0c4,
      0x43c00, 0x4b5c8, 0x4b5c8), at 0xfd7036c0
        [9] LazyClassPathEntry::open_stream(0x4b510, 0x17c568, 0x27000,
      0xfd701da8, 0x0, 0xfee69108), at 0xfd701e30
        [10] ClassLoader::load_classfile(0xd5bfd3c8, 0xd5bfd3c4, 0x4b510,
      0x180c00, 0xfee69108, 0x17c568), at 0xfd706574
        [11] SystemDictionary::load_instance_class(0xd5bfd570, 0xd5bfd56c,
      0xd5bfd568, 0x180c00, 0x180c04, 0x0), at 0xfe21d5c0
        [12] SystemDictionary::resolve_instance_class_or_null(0xfe, 0xfe,
      0xd5bfd740, 0xd5bfd73c, 0x96cf11, 0x96cf11), at 0xfe21698c
        [13] SystemDictionary::resolve_or_null(0xd5bfd7f4, 0xd5bfd7f0, 0xd5bfd7ec,
      0xd5bfd7e8, 0x180c00, 0xd6c00f08), at 0xfe21164c
        [14] SystemDictionary::resolve_or_fail(0xd5bfd8a4, 0xd5bfd8a0, 0xd5bfd89c,
      0xd5bfd898, 0x0, 0x180c00), at 0xfe210784
        [15] find_class_from_class_loader(0x180d04, 0xd5bfd91c, 0x1, 0xd5bfd8a4,
      0xd5bfd914, 0x0), at 0xfdbcf778
        [16] JVM_FindClassFromClassLoader(0x3d97e, 0x0, 0x3d800, 0x0, 0x17bc18,
      0x180c00), at 0xfdb36e44
        [17] Java_java_lang_Class_forName0(env = ???, this = ???, classname = ???,
      initialize = ???, loader = ???) (optimized), at 0xfd1db234 (line ~121) in
      "Class.c"

      -------------------

      To reproduce the failure:
      1. login on solaris-sparc machine (I used meena.sfbay)
      2. cp -fr /home/ep155969/work/FaultInjection/read_2 YOUR_LOCAL_DIR
      3. cd YOUR_LOCAL_DIR
      4. make
      5. bash inject_faults.sh JAVA_PATH 1491 1491
       
      The failure results will be stored in ./results dir.

            Unassigned Unassigned
            epavlova Ekaterina Pavlova
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: