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

JVM Crash with -Xrunhprof under Linux

XMLWordPrintable

    • beta
    • generic, x86
    • generic, linux
    • Not verified



        Name: rlT66838 Date: 06/05/2000


        java version "1.3.0beta"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0beta-b07)
        Java HotSpot(TM) Client VM (build 1.3.0beta-b04, mixed mode)

        [ammulder@ares bin]$ java -Xrunhprof -jar run.jar
        #
        # HotSpot Virtual Machine Error, Internal Error
        # Please report this error at
        # http://java.sun.com/cgi-bin/bugreport.cgi
        #
        # Error ID: 4D555445583F4C494E55580E4350500104
        #
        # Problematic Thread: prio=1 tid=0x804e690 nid=0x400 runnable
        #
        [ammulder@ares bin]$ java -Djava.compiler=NONE -Xrunhprof -jar run.jar
        #
        # HotSpot Virtual Machine Error, Internal Error
        # Please report this error at
        # http://java.sun.com/cgi-bin/bugreport.cgi
        #
        # Error ID: 4D555445583F4C494E55580E4350500104
        #
        # Problematic Thread: prio=1 tid=0x804e6b8 nid=0x400 runnable
        #
        [ammulder@ares bin]$ export JAVA_COMPILER=NONE
        [ammulder@ares bin]$ java -Xrunhprof -jar run.jar
        #
        # HotSpot Virtual Machine Error, Internal Error
        # Please report this error at
        # http://java.sun.com/cgi-bin/bugreport.cgi
        #
        # Error ID: 4D555445583F4C494E55580E4350500104
        #
        # Problematic Thread: prio=1 tid=0x804e690 nid=0x400 runnable
        #
        (Review ID: 105697)
        ======================================================================

        Name: rlT66838 Date: 06/05/2000


        java version "1.3.0beta"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0beta-b07)
        Java HotSpot(TM) Client VM (build 1.3.0beta-b04, mixed mode)


        I want to do some profiling on my app using Xrunhprof, not Xprof. When I run my
        app with:

        java -native -Xrunhprof:cpu=times MyClass (-native cuz I don't want hotspot yet)

        I get the following:
        #
        # HotSpot Virtual Machine Error, Internal Error
        # Please report this error at
        # http://java.sun.com/cgi-bin/bugreport.cgi
        #
        # Error ID: 4D555445583F4C494E55580E4350500104
        #
        # Problematic Thread: prio=1 tid=0x804e6c0 nid=0x400 runnable
        #
        Why am I getting a hotspot error when I specify -native ???
        (Review ID: 105680)
        ======================================================================

        Name: skT45625 Date: 06/06/2000


        java version "1.3.0beta"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0beta-b07)
        Java HotSpot(TM) Client VM (build 1.3.0beta-b04, mixed mode)


        I get this after JNI_OnLoad and a couple of JVMPI OBJECT_ALLOC
        events. The code works fine on IBM JDK1.3, SUN JDK 1.2.2, Blackdown
        JDK 1.2.2.
        #
        # HotSpot Virtual Machine Error, Internal Error
        # Please report this error at
        # http://java.sun.com/cgi-bin/bugreport.cgi
        #
        # Error ID: 4D555445583F4C494E55580E4350500104
        #
        # Problematic Thread: prio=1 tid=0x804e738 nid=0x400 runnable
        #
        (Review ID: 105777)
        ======================================================================

        Name: skT45625 Date: 06/21/2000


        java version "1.3.0beta"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0beta-b07)
        Java HotSpot(TM) Client VM (build 1.3.0beta-b04, mixed mode)


        java -Xrunhprof HelloWorldApplication
        #
        # HotSpot Virtual Machine Error, Internal Error
        # Please report this error at
        # http://java.sun.com/cgi-bin/bugreport.cgi
        #
        # Error ID: 4D555445583F4C494E55580E4350500104
        #
        # Problematic Thread: prio=1 tid=0x804e7e0 nid=0x400 runnable
        #


        class HelloWorldApplication {
            public static void main (String[] args) throws Exception {
                System.in.read ();
                System.out.println ("Hello, world!");
            }
        }
        (Review ID: 106376)
        ======================================================================

        Name: tb29552 Date: 06/26/2000


        java version "1.3.0beta"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0beta-b07)
        Java HotSpot(TM) Client VM (build 1.3.0beta-b04, mixed mode)



        execute "java -Xrunhprof" (optionally followed by the name of a class). Gives
        this message:

        #
        # HotSpot Virtual Machine Error, Internal Error
        # Please report this error at
        # http://java.sun.com/cgi-bin/bugreport.cgi
        #
        # Error ID: 4D555445583F4C494E55580E4350500104
        #
        # Problematic Thread: prio=1 tid=0x804e638 nid=0x400 runnable
        #
        (Review ID: 105682)
        ======================================================================

        Name: ks88420 Date: 09/15/2000


        java version "1.3.0rc1"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0rc1-b17)
        Java HotSpot(TM) Client VM (build 1.3.0rc1-b17, mixed mode)


        All attemps to run /usr/java/jdk1.3/bin/java -Xrunhprof fail with:

        #
        # HotSpot Virtual Machine Error, Internal Error
        # Please report this error at
        # http://java.sun.com/cgi-bin/bugreport.cgi
        #
        # Error ID: 4D555445583F4C494E55580E4350500104
        #
        # Problematic Thread: prio=1 tid=0x804e400 nid=0x965 runnable
        #
        Aborted
        (Review ID: 109680)
        ======================================================================

        Name: krC82822 Date: 10/13/2000


        java version "1.3.0"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
        Java HotSpot(TM) Client VM (build 1.3.0, mixed mode)

        java -Xrunhprof:heap=all,format=b,depth=12 ...

        results in this output:

        # HotSpot Virtual Machine Error, Internal Error
        # Please report this error at
        # http://java.sun.com/cgi-bin/bugreport.cgi
        #
        # Error ID: 4D555445583F4C494E55580E4350500104
        #
        # Problematic Thread: prio=1 tid=0x804e398 nid=0x112b runnable
        (Review ID: 110768)
        ======================================================================

        Name: krC82822 Date: 10/15/2000


        java version "1.3.0"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
        Java HotSpot(TM) Client VM (build 1.3.0, mixed mode)


        # HotSpot Virtual Machine Error, Internal Error
        # Please report this error at
        # http://java.sun.com/cgi-bin/bugreport.cgi
        #
        # Error ID: 4D555445583F4C494E55580E4350500104
        #
        # Problematic Thread: prio=1 tid=0x804e5f8 nid=0x5530 runnable
        #
        This happens if I
        1. get the JVMPI interface pointer from JNI_OnLoad and store it in a static
        variable
        2. later, invoke a method from Java through JNI that does only
        RawMonitorCreate, RawMonitorLock, RawMonitorExit
        Then RawMonitorExit crashes the VM.
        (Review ID: 110717)
        ======================================================================

        Name: krC82822 Date: 10/15/2000


        java version "1.3.0"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
        Java HotSpot(TM) Client VM (build 1.3.0, mixed mode)


        # HotSpot Virtual Machine Error, Internal Error
        # Please report this error at
        # http://java.sun.com/cgi-bin/bugreport.cgi
        #
        # Error ID: 4D555445583F4C494E55580E4350500104
        #
        # Problematic Thread: prio=1 tid=0x804e5f8 nid=0x5530 runnable
        #
        This happens if I
        1. get the JVMPI interface pointer from JNI_OnLoad and store it in a static
        variable
        2. later, invoke a method from Java through JNI that does only
        RawMonitorCreate, RawMonitorLock, RawMonitorExit
        Then RawMonitorExit crashes the VM.
        (Review ID: 110717)
        ======================================================================

        Name: rmT116609 Date: 11/06/2000


        java version "1.3.0"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
        Java HotSpot(TM) Client VM (build 1.3.0, mixed mode)


        trying to run any class (Even just a "hello world") with any of the hprof
        options, specifically the ones I'm interested in are:

        -Xrunhprof:cpu=samples
        -Xrunhprof:cpu=times
        -Xrunhprof:heap=all

        This causes the following output, then the JVM terminates:

        #
        # HotSpot Virtual Machine Error, Internal Error
        # Please report this error at
        # http://java.sun.com/cgi-bin/bugreport.cgi
        #
        # Error ID: 4D555445583F4C494E55580E4350500104
        #
        # Problematic Thread: prio=1 tid=0x804e590 nid=0x3246 runnable
        #
        Aborted

        This is happening on Redhat Linux 6.1 and 6.2
        (Review ID: 111887)
        ======================================================================

        Name: rmT116609 Date: 11/08/2000


        java version "1.3.0"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
        Java HotSpot(TM) Client VM (build 1.3.0, mixed mode)


        I was adjusting the stack sizes on the JVM using the -Xms -Xmx -Xss options on
        the java command. Then I added the
        -Xrunhprof:file=/home/kjubeck/tmp/java.hprof.txt option to rename the output
        file and it gave me the following error:

        # HotSpot Virtual Machine Error, Internal Error
        # Please report this error at
        # http://java.sun.com/cgi-bin/bugreport.cgi
        #
        # Error ID: 4D555445583F4C494E55580E4350500104
        #
        # Problematic Thread: prio=1 tid=0x804e730 nid=0x1bd3 runnable
        #
        (Review ID: 111984)
        ======================================================================

        Name: rmT116609 Date: 11/14/2000


        java version "1.3.0"
        Java(TM) Runtime Environment ,Standard Edition(Build 1.3.0)
        Java HotSpot(TM) Client VM(build 1.3.0 mixedmode)



        description : when I execueted using java -Xrunhprof :cpu=samples,file=temp.txt
        progname
        I got this output.

        HotSpot virtual Machine Error,Internal Error
        please report this Error at http://java.sun.com/cgi-bin/bugreport.cgi

        Error ID 4D555445583F4C494E55580E4350500104

        Problamatic Thread :prio =1 tid =0x808d818 nid= 0x57a9 runnable

         Abort (core dumped)
        and some times
             id is same
        Problamatic Thread :prio =1 tid =0x804e3f0 nid= 0x57ad runnable
        example program :

        class test1
         { static int i;
           String str;

           test1(String s)
            { str = s;
               i++;
            }
          String getstr()
           { System.out.println(this);
             test1 x = new test1("testing");
               
             try
             { Thread.sleep(20000);
             }
          catch(Exception e)
             { }
           return this.str;
           }

         test1 testing(test1 a)
          { try
                  { Thread.sleep(20000);
                  }
              catch(Exception e)
                { }

            test1 wt = new test1("empty");
                return wt;
          }

           public String toString()
            { return this.str;
             }

          public void finalize()throws Throwable
          { System.out.println("this is called before gc" + this);
                super.finalize();

            }

          public static void main(String args [])
           { Runtime r = Runtime.getRuntime();
                r.traceInstructions(true);
                r.traceMethodCalls(true);
                test1 a, aa = new test1("one");
                a = new test1("sec");
               System.out.println(aa.getstr());

               System.gc();
              try
               {
                  Thread.sleep(30000);
               }
               catch(Exception e)
                { }
               a = aa;
               test1 xw = a.testing(a);
              try{
                 Thread.sleep(50000);
                }
              catch(Exception e)
               { }
             System.out.println("No of Objects created "+test1.i);

            try
             { Thread.sleep(100000);
             }
            catch(Exception e)
             { }
            }
        }


        Abort
        (Review ID: 112010)
        ======================================================================

        Name: yyT116575 Date: 11/20/2000


        nikita:~ # /opt/jdk1.3/bin/java -version
        java version "1.3.0"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
        Java HotSpot(TM) Client VM (build 1.3.0, mixed mode)

        To reproduce the problem there is nothing else to do then executing the
        following
        command (your paths may vary of course):

        nikita:~ # /opt/jdk1.3/bin/appletviewer
        -J"-Xrunhprof:cpu=samples,file=/usr/tmp/profile.txt"
        file:/nonexisting-or-existing.html
        #
        # HotSpot Virtual Machine Error, Internal Error
        # Please report this error at
        # http://java.sun.com/cgi-bin/bugreport.cgi
        #
        # Error ID: 4D555445583F4C494E55580E4350500104
        #
        # Problematic Thread: prio=1 tid=0x804e078 nid=0x5722 runnable
        #
        Aborted

        My system is SuSE Linux 7.0 (i386) 512 mb ram:
        nikita:~ # cat /proc/version
        Linux version 2.2.16-RAID (root@nikita) (gcc version egcs-2.91.66 19990314/Linux
        (egcs-1.1.2 release)) #6 SMP Mon Aug 14 07:46:28 CEST 2000

        bye,
           Frank
        (Review ID: 112492)
        ======================================================================

        Name: krC82822 Date: 11/30/2000


        Java version "1.3.0"
        Java(TM) 2 Runtime Environment,Standard Edition ( build 1.3.0)
        Java HotSpot(TM)Client VM (build 1.3.0 mixed mode)

        Sir,
             I run a Demo program(SwingSet2/SwingSet2.jar) using OptimizeIt4.0
        on Linux redhat6.2. with jdk 1.3.0

         I got the following bug:
            HotSpot Virtual Machine Error ,Internal Error
            please report this error at java.sun.com/cgi-bin/bugreport.cgi.
            
            Error happened during : scanvenge
            Error Id : 4D555445583F4C494E55580E4350500104
            Problamatic Thread : prio =1 tid = 0x80583f8 nid=0x1aa1 runnable
            

          please reply with sufficient suggestions.
        (Review ID: 113044)
        ======================================================================

              dcubed Daniel Daugherty
              rlewis Roger Lewis (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: