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

JVM crashes with an unexpected exception message, when out of memory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Other
    • Icon: P3 P3
    • 1.3.1
    • 1.3.0, 1.3.0_01, 1.4.0
    • hotspot
    • None
    • gc
    • rc1
    • sparc
    • solaris_8

        Sample java code from ISV crashes the VM. It should throw
        an "Out of memory" exception, and exit gracefully. This is
        the behaviour seen under JDK 1.2.2_05a. This happens
        only when -Xincgc is specified, and crashes with both
        -server and -client options.

        sample output
        -------------

        ime since start (ms) : 10941 Delay (in ms) = 90
        [GC 58590K->58873K(59456K), 0.0149205 secs]
        [GC 59381K->59705K(60288K), 0.0149067 secs]
        [GC 60213K->60537K(61120K), 0.0152537 secs]
        [GC 61045K->61369K(61952K), 0.0153932 secs]
        [GC 61877K->62201K(62784K), 0.0158629 secs]
        [GC 62709K->63033K(63616K), 0.0157312 secs]
        [Full GC 63541K->62005K(63616K), 0.0569591 secs]
        Time since start (ms) : 11941 Delay (in ms) = 150
        [Full GC 65162K->62522K(62848K), 0.4960092 secs]
        Time since start (ms) : 13109 Delay (in ms) = 507
        [GC# # An unexpected exception has been detected in native code outside the VM.# Program counter=0xff270c1c
        #
        # Problematic Thread: prio=5 tid=0xca3e0 nid=0x4 runnable
        #
        Abort (core dumped

        To recreate the problem run with the following options:
        ~/downloads/products/j2re1_3_0/bin/java -server -Xincgc -verbosegc -DMemtest.greadyRR=true Memtest

              jloizeausunw Jane Loizeaux (Inactive)
              duke J. Duke
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: