[Bug 1191] New: JRE crashes when out of memory - "Failed to write core dump."

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Fri Oct 5 16:52:32 PDT 2012


http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1191

          Priority: P3
            Bug ID: 1191
                CC: unassigned at icedtea.classpath.org
          Assignee: gnu.andrew at redhat.com
           Summary: JRE crashes when out of memory - "Failed to write core
                    dump."
          Severity: normal
    Classification: Unclassified
                OS: Linux
          Reporter: lyubomir.p.k at gmail.com
          Hardware: x86_64
            Status: NEW
           Version: unspecified
         Component: IcedTea
           Product: IcedTea

Created attachment 765
  --> http://icedtea.classpath.org/bugzilla/attachment.cgi?id=765&action=edit
Log file written on crash

Running several instances of the following code:

    package tool;
    import javax.swing.*;

    public class BAT {
        public static void main(String[] args) {
            JFrame frame = new JFrame();
            frame.setSize(400, 300);
            frame.setVisible(true);
        }
    }

either causes this exception:

    Exception in thread "main" java.lang.OutOfMemoryError: unable to create new
native thread

or this error:

    Error occurred during initialization of VM
    java.lang.OutOfMemoryError: unable to create new native thread

In the latter case, if I try to run one more instance, I am notified of a crash
and a log is written similar to the one attached.


- Additional notes:

Not sure how to determine component version. This is what I have installed
(currently latest in the Arch Linux repositories):

    jdk7-openjdk 7.u7_2.3.2-2
    jre7-openjdk 7.u7_2.3.2-2
    jre7-openjdk-headless 7.u7_2.3.2-2
    icedtea-web-java7 1.3-1
    icedtea-web-java7-doc 1.3-1

and this is from the logs:

    JRE version: 7.0_07-b30
    Java VM: OpenJDK 64-Bit Server VM (23.2-b09 mixed mode linux-amd64
compressed oops)

I ran the code using the "Run" button in Eclipse, then closed the new window
and ran it again - repeat several times.

My machine has 3 GiB of physical RAM.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20121005/69c1d6b1/attachment.html 


More information about the distro-pkg-dev mailing list