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

VMObjAlloc rpts non-java objects (Was:linux-amd64: JVMTI library crashes HotSpot in libc_free+0x21)

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b68
    • CPU:
      x86
    • OS:
      linux, solaris_10

      Description

      FULL PRODUCT VERSION :
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
      Java HotSpot(TM) 64-Bit Server VM (build 1.5.0-b64, mixed mode)

      FULL OS VERSION :
      Linux logan 2.6.9-1.6_FC2 #1 Thu Nov 18 22:07:32 EST 2004 x86_64 x86_64 x86_64 GNU/Linux

      A DESCRIPTION OF THE PROBLEM :
      Using the SampleJVMTIAgent.c file from the article on JVMTI at http://java.sun.com/developer/technicalArticles/Programming/jvmti/, I generated a library and attempted to load it in Java with the -agentlib:SampleJVMTIAgent -agentpath:/usr/local/lib/libSampleJVMTIAgent.so options. This immediately crashed HotSpot with the given error report generated.

      THE PROBLEM WAS REPRODUCIBLE WITH -Xint FLAG: Yes

      THE PROBLEM WAS REPRODUCIBLE WITH -server FLAG: Yes

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      I run an sh script which performs the following statement:

      exec /usr/java/jdk1.5.0/bin/java -agentlib:SampleJVMTIAgent -agentpath:/usr/local/lib/libSampleJVMTIAgent.so -Dorg.globus.wsrf.container.webroot=/usr/local/globus/ -DGLOBUS_LOCATION=/usr/local/globus -Djava.endorsed.dirs=/usr/local/globus/endorsed -classpath /usr/local/globus/lib/bootstrap.jar:/usr/local/globus/lib/cog-url.jar:/usr/local/globus/lib/axis-url.jar org.globus.bootstrap.Bootstrap org.globus.exec.service.test.scalability.ScalabilityTester logan:8080 Fork 0

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      Expected Behavior: HotSpot won't crash and program runs with output generated from the JVMTI agent
      Actual Behavior: HostSpot crashes and the program doesn't run
      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      #
      # An unexpected error has been detected by HotSpot Virtual Machine:
      #
      # SIGSEGV (0xb) at pc=0x0000003340f69cd1, pid=15378, tid=182894034912
      #
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0-b64 mixed mode)
      # Problematic frame:
      # C [libc.so.6+0x69cd1] __libc_free+0x21
      #
       
      --------------- T H R E A D ---------------
       
      Current thread (0x0000000040116b30): JavaThread "main" [_thread_in_vm, id=15378]
       
      siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x00000000e73dc378
       
      Registers:
      RAX=0x0000000000000000, RBX=0x0000000040114020, RCX=0x0000003341106528, RDX=0x00000000e73dc380
      RSP=0x0000007fbfffbf40, RBP=0x0000007fbfffbf50, RSI=0x00000000e73dc380, RDI=0x00000000e73dc380
      R8 =0x000000000000000a, R9 =0x0000003341d012a0, R10=0x0000000000000001, R11=0x0000000000000206
      R12=0x0000000040116b30, R13=0x0000002a95d2ef10, R14=0x00000000e73dc380, R15=0x0000000000000000
      RIP=0x0000003340f69cd1, EFL=0x0000000000010202, CSGSFS=0x000000000000f8e9, ERR=0x0000000000000004
        TRAPNO=0x000000000000000e
       
        Top of Stack: (sp=0x0000007fbfffbf40)
      0x0000007fbfffbf40: 0000000040114020 0000002a95a509b9
      0x0000007fbfffbf50: 0000007fbfffbf60 0000002a959c29ab
      0x0000007fbfffbf60: 0000007fbfffbfb0 0000002a9596fcc3
      0x0000007fbfffbf70: 0000000040116b30 0000003340f631f8
      0x0000007fbfffbf80: 0000000040116b30 0000000000000000
      0x0000007fbfffbf90: 0000000000000040 0000000000000005
      0x0000007fbfffbfa0: 0000007fbfffc090 00000000401bb360
      0x0000007fbfffbfb0: 0000000000000000 0000002a95f4ad6f
      0x0000007fbfffbfc0: 0000000000000030 0000002ae73dc3a0
      0x0000007fbfffbfd0: 00000000401bb408 0000002ae73dc380
      0x0000007fbfffbfe0: 0000000400000005 0000000040110450
      0x0000007fbfffbff0: 0000000200000005 0000000040110510
      0x0000007fbfffc000: 0000000000000030 0000000040110570
      0x0000007fbfffc010: 0000000040110420 0000000000000000
      0x0000007fbfffc020: 00000000401103a5 ffffffffffffffff
      0x0000007fbfffc030: 00000000401103a6 0000000000000017
      0x0000007fbfffc040: 0000000040110384 0000000000000020
      0x0000007fbfffc050: 0000000040110384 0000000000000017
      0x0000007fbfffc060: 00000000401104d1 0000000000000024
      0x0000007fbfffc070: 00000000401bb380 0000000040110530
      0x0000007fbfffc080: 000000000000000a 0000007fbfffc200
      0x0000007fbfffc090: 00000000401104d0 0000000000000005
      0x0000007fbfffc0a0: 00000000401bb3e0 00000000401bb3d8
      0x0000007fbfffc0b0: 0000000040110550 0000000000000005
      0x0000007fbfffc0c0: 00000000401bb378 00000000401bb370
      0x0000007fbfffc0d0: 0000000000000027 0000007fbfffc1d0
      0x0000007fbfffc0e0: 0000007fbfffc540 0000000000000027
      0x0000007fbfffc0f0: 0000007fbfffc1a8 0000000040110384
      0x0000007fbfffc100: 0000000040116b30 0000002a959d3fc4
      0x0000007fbfffc110: 0000000040110384 0000000000000027
      0x0000007fbfffc120: 0000007fbfffc4c0 0000007fbfffc188
      0x0000007fbfffc130: 0000007fbfffc1a0 0000007fbfffc200
       
      Instructions: (pc=0x0000003340f69cd1)
      0x0000003340f69cc1: 74 09 48 8b 74 24 08 ff d0 5b c3 48 85 ff 74 f9
      0x0000003340f69cd1: 48 8b 42 f8 48 8d 7f f0 a8 02 75 63 a8 04 48 8d
       
      Stack: [0x0000007fbfe00000,0x0000007fc0000000), sp=0x0000007fbfffbf40, free space=2031k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      C [libc.so.6+0x69cd1] __libc_free+0x21
      V [libjvm.so+0x4699ab]
      V [libjvm.so+0x416cc3]
       
      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 java.lang.ClassLoader.loadClassInternal(Ljava/lang/String;)Ljava/lang/Class;+2
      v ~StubRoutines::call_stub
       
      --------------- P R O C E S S ---------------
       
      Java Threads: ( => current thread )
        0x0000002ae73d9640 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=15395]
        0x0000002ae73d7960 JavaThread "CompilerThread1" daemon [_thread_blocked, id=15394]
        0x0000002ae73d6300 JavaThread "CompilerThread0" daemon [_thread_blocked, id=15393]
        0x0000002ae73d4ac0 JavaThread "AdapterThread" daemon [_thread_blocked, id=15392]
        0x00000000401c1b60 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=15391]
        0x00000000401bc2c0 JavaThread "Finalizer" daemon [_thread_blocked, id=15390]
        0x00000000401bba90 JavaThread "Reference Handler" daemon [_thread_blocked, id=15389]
      =>0x0000000040116b30 JavaThread "main" [_thread_in_vm, id=15378]
       
      Other Threads:
        0x00000000401b77a0 VMThread [id=15388]
        0x0000002ae73db1d0 WatcherThread [id=15396]
       
      VM state:not at safepoint (normal execution)
       
      VM Mutex/Monitor currently owned by a thread: None
       
      Heap
       def new generation total 2368K, used 159K [0x0000002ada6a0000, 0x0000002ada930000, 0x0000002adc2a0000)
        eden space 2112K, 7% used [0x0000002ada6a0000, 0x0000002ada6c7dd0, 0x0000002ada8b0000)
        from space 256K, 0% used [0x0000002ada8b0000, 0x0000002ada8b0000, 0x0000002ada8f0000)
        to space 256K, 0% used [0x0000002ada8f0000, 0x0000002ada8f0000, 0x0000002ada930000)
       tenured generation total 1792K, used 0K [0x0000002adc2a0000, 0x0000002adc460000, 0x0000002adfaa0000)
         the space 1792K, 0% used [0x0000002adc2a0000, 0x0000002adc2a0000, 0x0000002adc2a0200, 0x0000002adc460000)
       compacting perm gen total 21248K, used 1802K [0x0000002adfaa0000, 0x0000002ae0f60000, 0x0000002ae4ca0000)
         the space 21248K, 8% used [0x0000002adfaa0000, 0x0000002adfc62a20, 0x0000002adfc62c00, 0x0000002ae0f60000)
      No shared spaces configured.
       
      Dynamic libraries:
      40000000-4000d000 r-xp 00000000 16:05 2032175 /usr/java/jdk1.5.0/bin/java
      4010c000-40110000 rw-p 0000c000 16:05 2032175 /usr/java/jdk1.5.0/bin/java
      40110000-401c3000 rwxp 40110000 00:00 0
      401c3000-401c4000 ---p 401c3000 00:00 0
      401c4000-402c3000 rwxp 401c4000 00:00 0
      402c3000-402c6000 ---p 402c3000 00:00 0
      402c6000-403c3000 rwxp 402c6000 00:00 0
      403c3000-403c6000 ---p 403c3000 00:00 0
      403c6000-404c3000 rwxp 403c6000 00:00 0
      404c3000-404c6000 ---p 404c3000 00:00 0
      404c6000-405c3000 rwxp 404c6000 00:00 0
      405c3000-405c6000 ---p 405c3000 00:00 0
      405c6000-406c3000 rwxp 405c6000 00:00 0
      406c3000-406c6000 ---p 406c3000 00:00 0
      406c6000-407c3000 rwxp 406c6000 00:00 0
      407c3000-407c6000 ---p 407c3000 00:00 0
      407c6000-408c3000 rwxp 407c6000 00:00 0
      408c3000-408c6000 ---p 408c3000 00:00 0
      408c6000-409c3000 rwxp 408c6000 00:00 0
      409c3000-409c4000 ---p 409c3000 00:00 0
      409c4000-40ac3000 rwxp 409c4000 00:00 0
      2a95556000-2a95559000 rw-p 2a95556000 00:00 0
      2a95559000-2a95ba1000 r-xp 00000000 16:05 2032942 /usr/java/jdk1.5.0/jre/lib/amd64/server/libjvm.so
      2a95ba1000-2a95c59000 ---p 00648000 16:05 2032942 /usr/java/jdk1.5.0/jre/lib/amd64/server/libjvm.so
      2a95c59000-2a95e0f000 rw-p 00600000 16:05 2032942 /usr/java/jdk1.5.0/jre/lib/amd64/server/libjvm.so
      2a95e0f000-2a95e3d000 rw-p 2a95e0f000 00:00 0
      2a95e3d000-2a95e3e000 r--p 2a95e3d000 00:00 0
      2a95e3e000-2a95e47000 r-xp 00000000 16:05 2032938 /usr/java/jdk1.5.0/jre/lib/amd64/native_threads/libhpi.so
      2a95e47000-2a95f3e000 ---p 00009000 16:05 2032938 /usr/java/jdk1.5.0/jre/lib/amd64/native_threads/libhpi.so
      2a95f3e000-2a95f4a000 rw-p 00000000 16:05 2032938 /usr/java/jdk1.5.0/jre/lib/amd64/native_threads/libhpi.so
      2a95f4a000-2a95f4d000 r-xp 00000000 16:05 3296421 /usr/local/lib/libSampleJVMTIAgent.so.0.0.0
      2a95f4d000-2a9604a000 ---p 00003000 16:05 3296421 /usr/local/lib/libSampleJVMTIAgent.so.0.0.0
      2a9604a000-2a9604d000 rw-p 00000000 16:05 3296421 /usr/local/lib/libSampleJVMTIAgent.so.0.0.0
      2a9604d000-2a96058000 r-xp 00000000 16:02 1592379 /lib64/libnss_files-2.3.3.so
      2a96058000-2a9614d000 ---p 0000b000 16:02 1592379 /lib64/libnss_files-2.3.3.so
      2a9614d000-2a9614e000 r--p 00100000 16:02 1592379 /lib64/libnss_files-2.3.3.so
      2a9614e000-2a9614f000 rw-p 00101000 16:02 1592379 /lib64/libnss_files-2.3.3.so
      2a9614f000-2a96157000 rw-s 00000000 16:02 328329 /tmp/hsperfdata_lane/15378
      2a96157000-2a96164000 r-xp 00000000 16:05 2032933 /usr/java/jdk1.5.0/jre/lib/amd64/libverify.so
      2a96164000-2a96257000 ---p 0000d000 16:05 2032933 /usr/java/jdk1.5.0/jre/lib/amd64/libverify.so
      2a96257000-2a96266000 rw-p 00000000 16:05 2032933 /usr/java/jdk1.5.0/jre/lib/amd64/libverify.so
      2a96266000-2a9628b000 r-xp 00000000 16:05 2032917 /usr/java/jdk1.5.0/jre/lib/amd64/libjava.so
      2a9628b000-2a96366000 ---p 00025000 16:05 2032917 /usr/java/jdk1.5.0/jre/lib/amd64/libjava.so
      2a96366000-2a96390000 rw-p 00000000 16:05 2032917 /usr/java/jdk1.5.0/jre/lib/amd64/libjava.so
      2a96390000-2a963a6000 r-xp 00000000 16:05 2032934 /usr/java/jdk1.5.0/jre/lib/amd64/libzip.so
      2a963a6000-2a96490000 ---p 00016000 16:05 2032934 /usr/java/jdk1.5.0/jre/lib/amd64/libzip.so
      2a96490000-2a964ab000 rw-p 00000000 16:05 2032934 /usr/java/jdk1.5.0/jre/lib/amd64/libzip.so
      2a964ab000-2a967ac000 r--s 00000000 16:05 3425065 /usr/local/globus/endorsed/xalan.jar
      2a967ac000-2a98d63000 r--s 00000000 16:05 2032977 /usr/java/jdk1.5.0/jre/lib/rt.jar
      2a98d63000-2a98dcb000 rw-p 2a98d63000 00:00 0
      2a98dcb000-2a98e51000 r--s 00000000 16:05 2032974 /usr/java/jdk1.5.0/jre/lib/jsse.jar
      2a98e51000-2a98e65000 r--s 00000000 16:05 2032967 /usr/java/jdk1.5.0/jre/lib/jce.jar
      2a98e65000-2a996a0000 r--s 00000000 16:05 2032968 /usr/java/jdk1.5.0/jre/lib/charsets.jar
      2a996a0000-2a997a0000 rwxp 2a996a0000 00:00 0

      (Description too long for bugtraq2. See attached file 338697.txt for the rest)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              swamyv Swamy Venkataramanappa
              Reporter:
              tbell Tim Bell
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: