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

java_g error:assert(_younger_window!=0,"Younger window should be available")

XMLWordPrintable

    • sparc
    • solaris_7



      Name: szC45993 Date: 08/05/99



      +StressDerivedPointers and +ZapDeadCompiledLocals debugging flags, used
      for Tonga/src/nsk/arguments/oopmap003 test, crash java_g
      (HotSpot VM 1.0.1, build debug a) on Solaris
      (SunOS novo63 5.7 Generic_Patch sun4u sparc SUNW,Ultra-1System = SunOS).
      See log and source below.

      novo63% /net/novo73/export/home2/java/latkin/hotspot/jdk1.2.2W-hs1.0.1A/bin/javac oopmap003.java
      novo63% /net/novo73/export/home2/java/latkin/hotspot/jdk1.2.2W-hs1.0.1A/bin/java_g -verify -XX:+StressDerivedPointers -XX:+ZapDeadCompiledLocals oopmap003
      VM option '+StressDerivedPointers'
      VM option '+ZapDeadCompiledLocals'

      ...

      781787788776777783784785786773779780782783789776777778779785786787774775781782783784785777778779780781787788775776777783784785786773779780781782783789776777778779785786787774775781782783784785777778779780781787788775776777783784785786773779780781782783789776777778779785786#
      # HotSpot Virtual Machine Error, assertion failure
      #
      # assert(_younger_window != 0, "Younger window should be available")
      # Error happened during: scavenge
      #
      # Error ID: /net/mizu/usr/re/hotsparc1.0.1/src/solaris_only/hotsparc_beta_jvmg/build/solaris/../../src/cpu/sparc/vm/frame_sparc.cpp, 36 [ Patched ]
      #
      Dumping core....
      Abort (core dumped)
      novo63%

      SOURCE:
      ========

      //--------------------- oopmap003.java:
      // Ident: @(#)oopmap003.java 1.1 99/07/06
      // Copyright 07/06/99 Sun Microsystems, Inc. All Rights Reserved

      import java.io.PrintStream;

      public class oopmap003 {
        final static int mask=0x1FFF;
        final static int delta=123;
        final static int Len=mask-2*delta-1;
        static java.util.Random rand;
        public int ifld2 = 776;

        static int nextInt() {
      int res=(rand.nextInt()&mask)-delta;
      return res;
        }

       static int randomWrite(Object[] arr) {
      int len=arr.length, n=12345;
      for (int k=0; k<len; k++) {
      n=nextInt();
      if ((n>=0)&&(n<len)) {
      arr[n]=new Integer(n);
      if ((n<0)||(n>=len)) return 1;
      }
      }
      return 0;
        }

       static int prc3(int i, int j) {
      oopmap003 cs003 = new oopmap003();
      //#############################################
      return 2 * i + 1 + cs003.ifld2;
      //#############################################
       }

       static int randomRead1(Object[] arr, int i) {
      int len=arr.length, n=54321;
      int idiv1=0;
      int idiv2=0;
      for (int k=0; k<len; k++) {
      n=nextInt();
      if ((n>=0)&&(n<len)) {
      Object obj=arr[n];
      //#############################################
      //#############################################
      // SPECIAL INSERTION (Please, don't remove)//##
                                                 //##
      idiv1 = k%7; //##
                                                 //##
        idiv1 = prc3(idiv1,idiv1); //##
                                                 //##
      idiv2 = k%5; //##
      System.out.print(idiv1-idiv2); //##
                                                 //##
      //#############################################
      //#############################################
      if ((n<0)||(n>=len)) return 1;
      if ( (obj!=null) && (((Integer)obj).intValue()!=n) ) return 3;
      }
      }
      return 0;
        }

        public static int run(String argv[], PrintStream out) {
      rand=new java.util.Random();
      rand.setSeed(123456789);
      Object[] arr = new Object[Len];
      if ((randomWrite(arr)!=0)) return 1;
      if ((randomRead1(arr,2)!=0)) return 1;
      return 0;
        }

        static public void main(String argv[]) {
      System.exit(run(argv, System.out)+95);
        }

      }
      //---------------------

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




      ###@###.### 2000-03-29

      This assertion is occuring with hotspot server binary in comp mode. so I am updating the existing bug.

      If anybody doesn't want this to show up in runtime_system sub-category, I can open a new bug for the same assertion, in compiler2 subcategory

      To reproduce :

        1. Go to /net/toasteroven/export/tests/runThese/bugs/4259961
        2. Set you classpath to - /net/jde4.eng/export/jde4-1/nightly_spec_runs/spec/v20:/net/jde4.eng/export/jde4-1/nightly_spec_runs/spec/v20/class

        3. Execute doit



      testObjectArray: OK
      checkInstanceOf: OK
      checkInterfaceInstanceOf: OK
      testWaitNull: OK
      testVarAndMethodNameClash: OK
      testMisk: OK
      testGC: OK
      ****** PepTest completed ******
      File output byte count = 0 checksum = 0

      #### IO Statistics for this Run ####
      ## IO time : 0.0 seconds
      ## No. of File opens : 0
      ## No. of Byte Reads from cache : 0
      ## No. of Byte Reads from File : 0
      ## No. of Byte Reads from Url : 0
      #### Cumulative Cache Stats: N 0, B 0, H 0, M 0
      #### No. of HTTP retries : 0

      Run 0 end. Total memory=3604480 free memory=3455896
      ----------------------------------
      spec.io.FileInputStream: Caught exception in constructor: java.io.FileNotFoundException: spec/benchmarks/_200_check/validity100.dat (No such file or directory)
      trying to open: validity100.dat
      spec.io.FileInputStream: Attempting recovery with System.runFinalizatio

      #
      # HotSpot Virtual Machine Error, assertion failure
      # Please report this error at
      # http://java.sun.com/cgi-bin/bugreport.cgi
      #
      # assert(_younger_window != 0, "Younger window should be available")
      #
      # Error happened during: mark sweep
      #
      # Error ID: /net/sqesvr/vsn/users/fhsu/ws-hs2.0/src/cpu/sparc/vm/frame_sparc.cpp,
       37 [ Patched ]
      #
      # Problematic Thread: prio=5 tid=0x12c358 nid=0x4 runnable
      #


      dhana.varadharaj@Eng 2000-05-05

      The same assertion happens with Compiler2 binary with Mauve tests. A doit script to reproduce the bug is included in /net/sqesvr/vsn/GammaBase/Bugs/4259961 directory.

      Execute doit.mauve.

            jrose John Rose
            zsssunw Zss Zss (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: