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

SIGXFSZ kills VM

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 5.0u9
    • Fix Version/s: hs10
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b08
    • CPU:
      x86
    • OS:
      linux

      Backports

        Description

        J2SE Version (please include all output from java -version flag):
          1.5.0_09

        Does this problem occur on J2SE 1.3, 1.4.x or 1.5? Yes / No (pick one)
          Yes


        Operating System Configuration Information (be specific):
          Linux


        Bug Description:
          When writing very large files on some Systems, the JVM is exiting stating
          that 'File size limit exceeded'. On many Linux systems there is a file called
          /etc/security/limits.conf which by default puts a hard limit on users file
          sizes to 100Mb.

          When Clients are uploading Files, we don't want the Server to crash because
          of a very large file. We would expect Java to throw an IOException when this
          signal is received instead of exiting the JVM.


        Steps to Reproduce (be specific):
          Here is a test file which has been tested on Linux using jre 1.5.0_09
          with the limits.conf having a small hard file size limit of 1000 KBs

        import static java.lang.System.*;
        import java.io.*;

        public class Test {
         public static void main(String[] args) {
           try {
             new FileOutputStream(new File("test.txt")).write(new byte[10000000]);
           }
           catch (Throwable ex) {
             ex.printStackTrace();
           }
           out.println("Done");
         }
        }

          The first 1024000 bytes are written to the file, then the JVM simply exits
          stating that 'File size limit exceeded'. There is no error log file (looked in
          all the normal places and ran a locate hs_err_pid to double check).
          The word Done is never displayed.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                acorn Karen Kinnear (Inactive)
                Reporter:
                tyao Ting-Yun Ingrid Yao (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: