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

java_g crashes in -XX:+CompileTheWorld: assert(_current + 4 <= _buffer_end, "buffer overflow")

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      sparc
    • OS:
      solaris_9

      Description

      java_g 1.4.2_04 and still -07 dumps core when trying to compileTheWorld:

      The problem is strictly reproducible:

      1. Testcase
      -----------
      Please find attached file net.jar:
      -rw-r--r-- 1 root other 682665 Dec 21 13:43 net.jar


      2. 1.4.2_04
      -----------
      % java_g -server -Xbatch -XX:+PrintCompilation -XX:+CompileTheWorld -Xbootclasspath/p:./net.jar
      VM option '+PrintCompilation'
      VM option '+CompileTheWorld'
      CompileTheWorld : Compiling all classes in /data/sa142/net.jar
      [ ... ]
      CompileTheWorld (77) : net/sf/hibernate/Databinder
      CompileTheWorld (78) : net/sf/hibernate/FlushMode
      157 b net.sf.hibernate.FlushMode::<init> (15 bytes)
      158 b net.sf.hibernate.FlushMode::<clinit> (126 bytes)
      159 b net.sf.hibernate.FlushMode::toString (5 bytes)
      160 b net.sf.hibernate.FlushMode::readResolve (20 bytes)
      # To suppress the following error report, specify this argument
      # after -XX: or in .hotspotrc: SuppressErrorAt=/classFileStream.hpp:47
      #
      # HotSpot Virtual Machine Error, assertion failure
      # Please report this error at
      # http://java.sun.com/cgi-bin/bugreport.cgi
      #
      # Java VM: Java HotSpot(TM) Server VM (1.4.2_04-b05-debug mixed mode)
      #
      # assert(_current + 4 <= _buffer_end, "buffer overflow")
      #
      # Error ID: /export1/jdk142-update/ws/fcs/hotspot/src/share/vm/runtime/classFileStream.hpp, 47 [ Patched ]
      #
      # Problematic Thread: prio=5 tid=0x0003ea98 nid=0x1 runnable
      #

      Heap at VM Abort:
      Heap
       def new generation total 2112K, used 202K [0xf0c00000, 0xf0e20000, 0xf2150000)
        eden space 2048K, 9% used [0xf0c00000, 0xf0c32850, 0xf0e00000)
        from space 64K, 0% used [0xf0e00000, 0xf0e00000, 0xf0e10000)
        to space 64K, 0% used [0xf0e10000, 0xf0e10000, 0xf0e20000)
       tenured generation total 1408K, used 0K [0xf2150000, 0xf22b0000, 0xf4c00000)
         the space 1408K, 0% used [0xf2150000, 0xf2150000, 0xf2150200, 0xf22b0000)
       compacting perm gen total 16384K, used 1498K [0xf4c00000, 0xf5c00000, 0xf8c00000)
         the space 16384K, 9% used [0xf4c00000, 0xf4d76950, 0xf4d76a00, 0xf5c00000)
      Dumping core....
      Abort (core dumped)
      %


      3. 1.4.2_07
      -----------
      % java_g -server -Xbatch -XX:+PrintCompilation -XX:+CompileTheWorld -Xbootclasspath/p:./net.jar
      VM option '+PrintCompilation'
      VM option '+CompileTheWorld'
      CompileTheWorld : Compiling all classes in /data/sa142/net.jar

      CompileTheWorld (1) : Skipping net/sf/cglib/beans/BulkBean
      [ ... ]
      CompileTheWorld (76) : net/sf/hibernate/Criteria
      CompileTheWorld (77) : net/sf/hibernate/Databinder
      CompileTheWorld (78) : net/sf/hibernate/FlushMode
      157 b net.sf.hibernate.FlushMode::<init> (15 bytes)
      158 b net.sf.hibernate.FlushMode::<clinit> (126 bytes)
      159 b net.sf.hibernate.FlushMode::toString (5 bytes)
      160 b net.sf.hibernate.FlushMode::readResolve (20 bytes)
      # To suppress the following error report, specify this argument
      # after -XX: or in .hotspotrc: SuppressErrorAt=/classFileStream.hpp:47
      #
      # HotSpot Virtual Machine Error, assertion failure
      # Please report this error at
      # http://java.sun.com/cgi-bin/bugreport.cgi
      #
      # Java VM: Java HotSpot(TM) Server VM (1.4.2_07-b04-debug mixed mode)
      #
      # assert(_current + 4 <= _buffer_end, "buffer overflow")
      #
      # Error ID: /export1/jdk142-update/ws/fcs/hotspot/src/share/vm/runtime/classFileStream.hpp, 47 [ Patched ]
      #
      # Problematic Thread: prio=5 tid=0x0004d680 nid=0x1 runnable
      #

      Heap at VM Abort:
      Heap
       def new generation total 2112K, used 202K [0xf0c00000, 0xf0e20000, 0xf2150000)
        eden space 2048K, 9% used [0xf0c00000, 0xf0c32850, 0xf0e00000)
        from space 64K, 0% used [0xf0e00000, 0xf0e00000, 0xf0e10000)
        to space 64K, 0% used [0xf0e10000, 0xf0e10000, 0xf0e20000)
       tenured generation total 1408K, used 0K [0xf2150000, 0xf22b0000, 0xf4c00000)
         the space 1408K, 0% used [0xf2150000, 0xf2150000, 0xf2150200, 0xf22b0000)
       compacting perm gen total 16384K, used 1509K [0xf4c00000, 0xf5c00000, 0xf8c00000)
         the space 16384K, 9% used [0xf4c00000, 0xf4d794d0, 0xf4d79600, 0xf5c00000)
      Dumping core....
      Abort (core dumped)
      %

       Excluding net.sf.hibernate.FlushMode methods from compiling did not help
       to prevent the problem from happening.


      ###@###.### 2004-12-21 15:10:13 GMT

        Attachments

          Activity

            People

            Assignee:
            rasbold Chuck Rasbold
            Reporter:
            thlenz Thomas Lenz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: