nonfatal internal JIT (3.00.072b(x)) error 'GetRegisterA'=20

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: P4
    • None
    • Affects Version/s: 1.1.6, 1.1.7, 1.1.8, 1.2.0, 1.2.1
    • Component/s: vm-legacy
    • generic, x86
    • generic, windows_95, windows_98, windows_nt

      ==================
      /*
      When I start the applet (see code below) in
      the Appletviewer, I get the following error:
      A nonfatal internal JIT (3.00.072b(x)) error
      'GetRegisterA' has occurred in :
      'Chaos.calculate ()V': Interpreting method

      Additionally, the Applet causes the System to
      reboot at certain parameters (when the number
      of iterations is higher than a certain value,
      usually 1000).
      To reproduce it, simply click on "tip" and then
      on "neu berechnen" (or "recalc" if you switched
      to english)

      This bug might be related with 4189464 reported
      against 1.2RC1.
      The class runs without problems in Netscape 4.07

      I submitted a report on this earlier with
      an earlier Version of this Program, but
      the bug number that was given to me
      (4182751) doesnt exist.

      The code:
      */

      // Chaos
      // Demonstration of the Equation of Verhulst
      // (C) 1998 Stefan von der Mark
      // ###@###.###

      import java.awt.*;
      import java.awt.event.*;

      public class Chaos extends java.applet.Applet implements ActionListener,
       ItemListener {

          private int reso = 201, colorSet = 0, lang = 0;
          private int[][] values = new int[reso][reso];
          private int[] resoList = {200, 300, 400};
          private String[] langList = {"dt", "eng"};
          private String[][] colorList = {{"grau", "grey"}, {"rot/blau", "red/blue"},
          {"schwarz/gelb", "black/yellow"}};
          private int iterNo = 300, steps = 8;
          private double startPop = .5;
          private Color[] colorTable;
          private TextField iterNoF, stepsF, startPopF;
          private Label labelit, labelsp, labelst, labelre, labelco;
          private Choice resoCh, colorCh, langCh;
          private Button startButton;
          private String[][] textC = {{"Anfangspopulation", "starting population"}, {"Abstufungen",
          "steps"}, {"Auflösung", "resolution"}, {"Anzahl Iterationen",
          "number of iterations"}, {"Neu berechnen", "recalc"}, {"Colorset", "colorset"}};


          public void paint(Graphics g) {

      int i, j;

      setBackground(Color.white);
      for (i = 0; i < reso; i++)
      for (j = 0; j < reso; j++) {
      g.setColor(colorTable[values[i][j]]);
      g.drawLine(i + 20, j + 80, i + 20, j + 80);
      }
          }

          private void buildConstraints(GridBagConstraints gbc, int gx, int gy,
      int gw, int gh, int wx, int wy) {
      gbc.gridx = gx;
      gbc.gridy = gy;
      gbc.gridwidth = gw;
      gbc.gridheight = gh;
      gbc.weightx = wx;
      gbc.weighty = wy;
          }

          private void makeTable() {
      int i, h;
      // System.out.println(" Tablesize "+steps);
      colorTable = new Color[steps];
      for (i = 0; i < steps; i++) {
      h = (int) (255 * (1 - ((double) i / (double) (steps - 1))));
      switch (colorSet) {
      case 0:
      colorTable[i] = new Color(h, h, h);
      break;
      case 1:
      colorTable[i] = new Color(255 - h, 0, h);
      break;
      case 2:
      colorTable[i] = new Color(255 - h, 255 - h, 0);
      break;
      }
      // System.out.println(h);
      }
          }

          private void calculate() {
      int i, j, px, py;
      double x, b;

      for (i = 0; i < reso; i++)
      for (j = 0; j < reso; j++)
      values[i][j] = 0;
      // System.out.println("Calc..");
      b = 3.5;
      px = 0;
      do {
      x = startPop;
      for (i = 0; i < iterNo; i++) {
      x = b * x * (1 - x); // equation of Verhulst
      py = (int) ((1 - x) * (reso - 1));
      if ((x <= 0) || (x >= 1)) {
      System.out.println("Error! Please report to " +
      "###@###.###");
      break;
      }
      // System.out.println(" "+px+" "+py+" "+x+" "+b);
      if (values[px][py] < (steps - 1))
      values[px][py] += 1;
      }
      px++;
      b += 0.5 / reso;
      } while (px < reso);
          }

          public void initLayout() {

      int i;
      GridBagLayout gridbag = new GridBagLayout();
      GridBagConstraints constraints = new GridBagConstraints();
      setLayout(gridbag);

      // startPop label
      buildConstraints(constraints, 0, 0, 1, 1, 0, 0);
      constraints.fill = GridBagConstraints.NONE;
      constraints.anchor = GridBagConstraints.EAST;
      labelsp = new Label(textC[0][0], Label.RIGHT);
      gridbag.setConstraints(labelsp, constraints);
      add(labelsp);

      // startPop text field
      buildConstraints(constraints, 1, 0, 1, 1, 0, 0);
      constraints.fill = GridBagConstraints.HORIZONTAL;
      startPopF = new TextField("0.5");
      gridbag.setConstraints(startPopF, constraints);
      add(startPopF);

      // iterNo label
      buildConstraints(constraints, 2, 0, 1, 1, 0, 0);
      constraints.fill = GridBagConstraints.NONE;
      constraints.anchor = GridBagConstraints.EAST;
      labelit = new Label(textC[3][0], Label.RIGHT);
      gridbag.setConstraints(labelit, constraints);
      add(labelit);

      // iterNotext field
      buildConstraints(constraints, 3, 0, 1, 1, 0, 0);
      constraints.fill = GridBagConstraints.HORIZONTAL;
      iterNoF = new TextField("300");
      gridbag.setConstraints(iterNoF, constraints);
      add(iterNoF);

      // steps label
      buildConstraints(constraints, 0, 1, 1, 1, 0, 0);
      constraints.fill = GridBagConstraints.NONE;
      constraints.anchor = GridBagConstraints.EAST;
      labelst = new Label(textC[1][0], Label.RIGHT);
      gridbag.setConstraints(labelst, constraints);
      add(labelst);

      // steps text field
      buildConstraints(constraints, 1, 1, 1, 1, 0, 0);
      constraints.fill = GridBagConstraints.HORIZONTAL;
      stepsF = new TextField("8");
      gridbag.setConstraints(stepsF, constraints);
      add(stepsF);

      // color label
      buildConstraints(constraints, 2, 1, 1, 1, 0, 0);
      constraints.fill = GridBagConstraints.NONE;
      constraints.anchor = GridBagConstraints.EAST;
      labelco = new Label(textC[5][0], Label.RIGHT);
      gridbag.setConstraints(labelco, constraints);
      add(labelco);

      // color Choice
      buildConstraints(constraints, 3, 1, 1, 1, 0, 0);
      colorCh = new Choice();
      for (i = 0; i < colorList.length; i++)
      colorCh.addItem(colorList[i][0]);
      gridbag.setConstraints(colorCh, constraints);
      add(colorCh);


      // reso label
      buildConstraints(constraints, 0, 2, 1, 1, 0, 0);
      constraints.fill = GridBagConstraints.NONE;
      constraints.anchor = GridBagConstraints.EAST;
      labelre = new Label(textC[2][0], Label.RIGHT);
      gridbag.setConstraints(labelre, constraints);
      add(labelre);

      // reso Choice
      buildConstraints(constraints, 1, 2, 1, 1, 0, 0);
      resoCh = new Choice();
      for (i = 0; i < resoList.length; i++)
      resoCh.addItem(resoList[i] + "x" + resoList[i]);
      gridbag.setConstraints(resoCh, constraints);
      add(resoCh);

      // lang Choice
      buildConstraints(constraints, 4, 0, 1, 1, 0, 0);
      langCh = new Choice();
      for (i = 0; i < langList.length; i++)
      langCh.addItem(langList[i]);
      gridbag.setConstraints(langCh, constraints);
      langCh.addItemListener(this);
      add(langCh);


      // Startbutton
      buildConstraints(constraints, 2, 2, 1, 1, 0, 0);
      startButton = new Button(textC[4][0]);
      gridbag.setConstraints(startButton, constraints);
      startButton.addActionListener(this);
      add(startButton);

      // Def. button
      buildConstraints(constraints, 3, 2, 1, 1, 0, 0);
      Button defB = new Button("default");
      constraints.anchor = GridBagConstraints.CENTER;
      gridbag.setConstraints(defB, constraints);
      defB.addActionListener(this);
      add(defB);

      // Tip button
      buildConstraints(constraints, 4, 2, 1, 1, 0, 0);
      Button tipB = new Button("Tip");
      constraints.anchor = GridBagConstraints.CENTER;
      gridbag.setConstraints(tipB, constraints);
      tipB.addActionListener(this);
      add(tipB);

      // Filler Right
      buildConstraints(constraints, 5, 0, 1, 1, 1, 0);
      Label fillR = new Label("", Label.LEFT);
      gridbag.setConstraints(fillR, constraints);
      add(fillR);

      // Filler Bottom
      buildConstraints(constraints, 0, 5, 5, 1, 1, 1);
      constraints.fill = GridBagConstraints.NONE;
      constraints.anchor = GridBagConstraints.SOUTH;
      Label fillB = new Label("", Label.LEFT);
      gridbag.setConstraints(fillB, constraints);
      add(fillB);
          } // end of initLayout

          private void setLang() {
      int i, h;

      labelsp.setText(textC[0][lang]);
      labelst.setText(textC[1][lang]);
      labelre.setText(textC[2][lang]);
      labelit.setText(textC[3][lang]);
      labelco.setText(textC[5][lang]);
      startButton.setLabel(textC[4][lang]);
      h = colorCh.getSelectedIndex();
      colorCh.removeAll();
      for (i = 0; i < colorList.length; i++)
      colorCh.addItem(colorList[i][lang]);
      colorCh.select(h);
          }

          private void setDefault() {
      iterNoF.setText("300");
      stepsF.setText("8");
      startPopF.setText("0.5");
      resoCh.select(0);
      colorCh.select(0);
          }

          private void setTip() {
      iterNoF.setText("3000");
      stepsF.setText("64");
      startPopF.setText("0.5");
      resoCh.select(2);
      colorCh.select(2);
          }




          public void actionPerformed(ActionEvent e) {
      String cmd = e.getActionCommand();
      if (cmd.equals("default"))
      setDefault();
      else if (cmd.equals("Tip"))
      setTip();
      else {
      startPop = Double.valueOf(startPopF.getText()).doubleValue();
      iterNo = Integer.valueOf(iterNoF.getText()).intValue();
      steps = Integer.valueOf(stepsF.getText()).intValue();
      colorSet = colorCh.getSelectedIndex();
      makeTable();
      if ((resoList[resoCh.getSelectedIndex()] + 1) != reso) {
      reso = resoList[resoCh.getSelectedIndex()] + 1;
      values = new int[reso][reso];
      }
      calculate();
      repaint();
      }
          }

          public void itemStateChanged(ItemEvent e) {
      lang = langCh.getSelectedIndex();
      setLang();
          }


          public void init() {
      int i;
      initLayout();
      makeTable();
      calculate();
          }
      }


      Name: krT82822 Date: 04/26/99


      //The following code has a nonfatal internal JIT (3.00.078(x))
      //error 'GetRegisterA'.
      //
      //
      //**********************************************************
      import java.io.*;
      import java.util.*;

      public class TimeList
      { private FileReader FRfile;
          private StreamTokenizer STinput;
          private static boolean bmoreData= true;
          private int inext;

         /******************************************************************
          * *
          * Check if the result vector has enough consecutive time slices *
          * *
          ******************************************************************/
          
          public boolean CheckConsecutive(String Svector, int iRun)
          {
            boolean bFound;
            // 1 hour = 2 time slices
            //
            bFound= false;
            for (int i=0;i<Svector.length()-2*iRun;i++)
                 if (bFound== false)
             for (int j=0; j<2*iRun; j++)
                     { if (Svector.charAt(i+j)=='0')
                             {bFound= false;
                              break;
                             }
                          bFound= true;
                     }
                  else break;
            return bFound;
          }
      }

      public class Datemodel
      {
          public String Sdatekey; // date key, e.g. "19990501"
          public String Stimevector; // time vector, e.g. "00000111110101000001"
      }
      (Review ID: 57478)
      ======================================================================

      Name: skT88420 Date: 06/09/99


      C:\java_programs\bytemark>java -version
      java version "1.1.7B"

      jBYTEmark ver. 0.9
      Running: Numeric Sort
      Avg: 85.6327307326356 Index: 95.62560662494202
      Running: String Sort
      Avg: 111.00832562442183 Index: 43.43218655832459
      Running: Bitfield Operations
      Avg: 6.689817948243992E8 Index: 102.93452860002142
      Running: FP Emulation
      Avg: 107.34929810074318 Index: 49.65047782283113
      Running: Fourier
      Avg: 3733.89355742297 Index: 10.833556424949137
      Running: Assignment
      Avg: 43.029259896729776 Index: 77.34902012714322
      Running: IDEA Encryption
      Avg: 183.15018315018312 Index: 37.58006056101919
      Running: Huffman Compression
      Avg: 105.9001512859304 Index: 53.83293578991989
      Running: Neural Net
      Avg: 3.6101083032490977 Index: 30.159634947778592
      Running: LU Decomposition
      Avg: 23.715415019762844 Index: 37.76941395088843
      ********************
      Integer Index: 61.483842507626555
      FP Index: 23.10888487820818
      ********************
      Press Ctrl-C to close.

      ^C
      C:\java_programs\bytemark>java jBYTEmark > jBYTEmark_AMD_K6-III-400.txt
      A nonfatal internal JIT (3.00.072b(x)) error 'GetRegisterA' has occurred in :
        'NeuralNetTest.<init> ()V': Interpreting method.
        Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cgi
      (Review ID: 84159)
      ======================================================================

      Name: krT82822 Date: 09/04/99


      C:\jlp\prj\Edit>c:\tools\jdk118\bin\javac -deprecation -d ..\..\use\Edit\ -classpath ..\..\use\Edit\;c:\tools\jdk118\lib;c:\tools\jdk118\lib\classes.zip ..\..\src\Edit\*.java

      A nonfatal internal JIT (3.00.072b(x)) error 'GetRegisterA' has occurred in :
        'sun/tools/java/Type.inMask (I)Z': Interpreting method.
        Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cgi

      MY ADD : this class was previously well compiled with the
      same jdk118, under both win98 AND linux RH60, on another computer

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

      9/4/99 eval1127@eng -- checking relative difficulty of finding this bug on Bug Parade (as requested on our submit page)..

      http://developer.java.sun.com/developer/bugParade/index.html

      Search string: " +JIT +GetRegisterA +3.00.072b "

      Four (4) bugs found.

      Conclusion: easy to find

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


       Bug ID: 4215676
       java:jit_symantec, nonfatal intenal JIT 3.00.072b error 'GetRegisterA' - submitting zip file, State: In progress, bug,
       Reported: Feb 26, 1999, Release reported against: 1.1.7, 1.1.8
       http://developer.java.sun.com/developer/bugParade/bugs/4215676.html - size 15.0K
                                                                                                               88%
                                                                                                               25 Aug 99



       Bug ID: 4189464
       java:jit_symantec, JIT (3.00.072b(x)) error 'GetRegisterA' in for/switch code, State: In progress, bug, Reported: Nov 12,
       1998, Release reported against: 1.2RC1
       http://developer.java.sun.com/developer/bugParade/bugs/4189464.html - size 14.9K
                                                                                                               87%
                                                                                                               25 Aug 99



       Bug ID: 4190032
       java:jit_symantec, nonfatal internal JIT (3.00.072b(x)) error 'GetRegisterA'=20, State: In progress, bug, Reported: Nov
       14, 1998, Release reported against: 1.1.7, 1.1.6, 1.2, 1.2.1
       http://developer.java.sun.com/developer/bugParade/bugs/4190032.html - size 26.9K
                                                                                                               86%
                                                                                                               25 Aug 99



       Bug ID: 4182751
       java:jit_symantec, SwingSet JIT internal error, State: Closed, not reproducible, Reported: Oct 20, 1998, Release
       reported against: 1.1.7
       http://developer.java.sun.com/developer/bugParade/bugs/4182751.html - size 13.4K





      (Review ID: 94870)
      ======================================================================

      Name: skT88420 Date: 11/23/99


      java version "1.1.7B"

      Utilizing the IBM PCOMM java classes to enable 3270 access through Java

      A nonfatal internal JIT (3.00.072b(x)) error 'GetRegisterA' has occurred in :
        'com/ibm/eNetwork/ECL/DS3270.receiveData ([SII)I': Interpreting method.
      (Review ID: 98195)
      ====================================================

            Assignee:
            Unassigned
            Reporter:
            Tim Bell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: