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

METHOD_EXIT sent before THREAD_START

XMLWordPrintable

    • generic, x86
    • generic, windows_2000



      Name: elR10090 Date: 02/07/2001
      **** The crash described below no longer occurs. Instead, this
      occurs:

          >>>> /home/latkin/jdk1.4-b70/bin/java -prof HelloWorld
          HPROF ERROR: thread local table NULL in method exit 9db3c
          HPROF ERROR: thread local table NULL in method exit 9db3c
          HPROF ERROR: thread local table NULL in method exit 9e4ec
          HPROF ERROR : stack underflow in method exit


      See also bug 4653050 which might contain a fix for this.

      ****** End of new description **********


      Java crashes when the following command is run on JDK build 1.4beta-B50:

          java -prof HelloWorld

      HelloWorld is a simple program:

      public class HelloWorld {
          public static void main(String args[]) {
              System.out.println("Hello, world!");
          }
      }

      Here is the crash log for Windows 2000 (something like happens on the
      other platforms):

      An unexpected exception has been detected in native code outside the VM.
      Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x5022386e
      Function name=(N/A)
      Library=j:\hotspot\jdk1.4\win\jre\bin\hprof.dll

      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:
              at java.lang.String.equals(../../../src/share/classes/java/lang/String.java:592)
              at java.lang.System.getProperty(../../../src/share/classes/java/lang/System.java:565)
              at sun.security.action.GetPropertyAction.run(GetPropertyAction.java:69)
              at java.security.AccessController.doPrivileged(Native Method)
              at sun.io.Converters.getDefaultEncodingName(../../../src/share/classes/sun/io/Converters.java:69)
              at java.lang.StringCoding.encode(../../../src/share/classes/java/lang/StringCoding.java:313)
              at java.lang.String.getBytes(../../../src/share/classes/java/lang/String.java:575)
              at java.io.Win32FileSystem.getBooleanAttributes(Native Method)
              at java.io.File.exists(../../../src/share/classes/java/io/File.java:552)
              at java.lang.ClassLoader$4.run(../../../src/share/classes/java/lang/ClassLoader.java:1327)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.lang.ClassLoader.loadLibrary0(../../../src/share/classes/java/lang/ClassLoader.java:1324)
              at java.lang.ClassLoader.loadLibrary(../../../src/share/classes/java/lang/ClassLoader.java:1306)
              at java.lang.Runtime.loadLibrary0(../../../src/share/classes/java/lang/Runtime.java:773)
              at java.lang.System.loadLibrary(../../../src/share/classes/java/lang/System.java:829)
              at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:53)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.util.zip.ZipFile.<clinit>(ZipFile.java:52)
              at sun.misc.URLClassPath$JarLoader.getJarFile(URLClassPath.java:494)
              at sun.misc.URLClassPath$JarLoader.<init>(URLClassPath.java:459)
              at sun.misc.URLClassPath$2.run(URLClassPath.java:258)
              at java.security.AccessController.doPrivileged(Native Method)
              at sun.misc.URLClassPath.getLoader(URLClassPath.java:247)
              at sun.misc.URLClassPath.getLoader(URLClassPath.java:224)
              at sun.misc.URLClassPath.getResource(URLClassPath.java:137)
              at java.net.URLClassLoader$1.run(../../../src/share/classes/java/net/URLClassLoader.java:192)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.net.URLClassLoader.findClass(../../../src/share/classes/java/net/URLClassLoader.java:188)
              at java.lang.ClassLoader.loadClass(../../../src/share/classes/java/lang/ClassLoader.java:303)
              at java.lang.ClassLoader.loadClass(../../../src/share/classes/java/lang/ClassLoader.java:296)
              at sun.misc.Launcher$AppClassLoader.loadClass(../../../src/share/classes/sun/misc/Launcher.java:286)
              at java.lang.ClassLoader.loadClass(../../../src/share/classes/java/lang/ClassLoader.java:259)
              at java.lang.ClassLoader.loadClassInternal(../../../src/share/classes/java/lang/ClassLoader.java:319)

      Dynamic libraries:
      0x00400000 - 0x00405000 j:\hotspot\jdk1.4\win\bin\java.exe
      0x77F80000 - 0x77FFA000 D:\WINNT\System32\ntdll.dll
      0x77DB0000 - 0x77E0A000 D:\WINNT\system32\ADVAPI32.dll
      0x77E80000 - 0x77F35000 D:\WINNT\system32\KERNEL32.DLL
      0x77D40000 - 0x77DB0000 D:\WINNT\system32\RPCRT4.DLL
      0x78000000 - 0x78046000 D:\WINNT\system32\MSVCRT.dll
      0x50410000 - 0x50504000 j:\hotspot\jdk1.4\win\jre\bin\hotspot\jvm.dll
      0x77E10000 - 0x77E74000 D:\WINNT\system32\USER32.dll
      0x77F40000 - 0x77F7C000 D:\WINNT\system32\GDI32.DLL
      0x77570000 - 0x775A0000 D:\WINNT\System32\WINMM.dll
      0x50210000 - 0x50217000 j:\hotspot\jdk1.4\win\jre\bin\hpi.dll
      0x503E0000 - 0x503ED000 j:\hotspot\jdk1.4\win\jre\bin\verify.dll
      0x50250000 - 0x50266000 j:\hotspot\jdk1.4\win\jre\bin\java.dll
      0x50400000 - 0x5040D000 j:\hotspot\jdk1.4\win\jre\bin\zip.dll
      0x50220000 - 0x5022B000 j:\hotspot\jdk1.4\win\jre\bin\hprof.dll
      0x75050000 - 0x75058000 D:\WINNT\System32\WSOCK32.dll
      0x75030000 - 0x75044000 D:\WINNT\System32\WS2_32.DLL
      0x75020000 - 0x75028000 D:\WINNT\System32\WS2HELP.DLL
      0x77920000 - 0x77942000 D:\WINNT\system32\imagehlp.dll
      0x72A00000 - 0x72A2D000 D:\WINNT\system32\DBGHELP.dll
      0x690A0000 - 0x690AB000 D:\WINNT\System32\PSAPI.DLL

      Local Time = Wed Feb 07 20:50:11 2001
      Elapsed Time = 2
      #
      # The exception above was detected in native code outside the VM
      #
      # Java VM: Java HotSpot(TM) Client VM (B50 mixed mode)
      #

      This bug affects the following testbase_nsk test:
          nsk/regression/b4322483

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

      java version "1.4.1-rc"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-rc-b19)
      Java HotSpot(TM) Client VM (build 1.4.1-rc-b19, mixed mode)

      C:\>java -Xrunhprof:cpu=times
      HPROF ERROR: thread local table NULL in method exit 008F65E4
      HPROF ERROR: thread local table NULL in method exit 008F65E4
      HPROF ERROR: thread local table NULL in method exit 008F7A6C
      HPROF ERROR : stack underflow in method exit
      HPROF ERROR : stack underflow in method exit
      Usage: java [-options] class [args...]
                 (to execute a class)
         or java -jar [-options] jarfile [args...]
                 (to execute a jar file)

      where options include:
          -client to select the "client" VM
          -server to select the "server" VM
          -hotspot is a synonym for the "client" VM [deprecated]
                        The default VM is client.

          -cp -classpath <directories and zip/jar files separated by ;>
                        set search path for application classes and resources
          -D<name>=<value>
                        set a system property
          -verbose[:class|gc|jni]
                        enable verbose output
          -version print product version and exit
          -showversion print product version and continue
          -? -help print this help message
          -X print help on non-standard options
          -ea[:<packagename>...|:<classname>]
          -enableassertions[:<packagename>...|:<classname>]
                        enable assertions
          -da[:<packagename>...|:<classname>]
          -disableassertions[:<packagename>...|:<classname>]
                        disable assertions
          -esa | -enablesystemassertions
                        enable system assertions
          -dsa | -disablesystemassertions
                        disable system assertions
      Dumping CPU usage by timing methods ... done.

      Name: rmT116609 Date: 01/02/2003


      DESCRIPTION OF THE PROBLEM :
      There's a error message straigth after I run java with the profile turned on.

      Test.java:

      public class Test {
              public static void main (String [] a) {
                      System.out.println ("Hello");
              }
      }

      java -Xrunhprof:cpu=times Test

      HPROF ERROR: thread local table NULL in method exit 009EDF34
      HPROF ERROR: thread local table NULL in method exit 009EDF34
      HPROF ERROR: thread local table NULL in method exit 009A534C
      HPROF ERROR : stack underflow in method exit
      HPROF ERROR : stack underflow in method exit
      Dumping CPU usage by timing methods ... done.



      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Test.java:

      public class Test {
              public static void main (String [] a) {
                      System.out.println ("Hello");
              }
      }

      2. java -Xrunhprof:cpu=times Test
      3.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      There is not supposed to be any error messages.

      The percentage in the trace rankings does not look right.

      When running this against a more complicated application, eventually some other unexpected results are produced. The program might also hang on exit.

      Probably fixed in Mantis, but unlike 4677213, there's no rethrowing of exceptions in thread main. Unlike 4662472, this is not fixed in hopper.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      HPROF ERROR: thread local table NULL in method exit 009EDF34
      HPROF ERROR: thread local table NULL in method exit 009EDF34
      HPROF ERROR: thread local table NULL in method exit 009A534C
      HPROF ERROR : stack underflow in method exit
      HPROF ERROR : stack underflow in method exit


      (Review ID: 179550)
      ======================================================================

            Unassigned Unassigned
            latkinsunw Latkin Latkin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: