JDK-6964232 : JVM should report an error instead of crashing on systems without swapping and no space left in /tmp
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 6u17
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: generic
  • Submitted: 2010-06-25
  • Updated: 2013-10-31
  • Resolved: 2010-11-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6u20Resolved
Related Reports
Relates :  
Description
JVM crashes with SIGBUS on systems without swapping and when no space is left in temp dir (/tmp for example).

JVM should handle the case when /tmp is full more gracefully and/or report a reasonable error rather than crashing.

1. Fill temporary directory (xxxM):
# cd /tmp
# dd if=/dev/zero of=filexxxM.tmp bs=xxxM count=1


2. Run Java (crashes): 
# java -version

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGBUS (0x7) at pc=0x00002ba4c02743cb, pid=32329, tid=1088387392
#
# JRE version: 6.0_17-b04
# Java VM: Java HotSpot(TM) 64-Bit Server VM (14.3-b01 mixed mode linux-amd64 )
# Problematic frame:
# C  [libc.so.6+0x7b3cb]  memset+0xa5b
#
# An error report file with more information is saved as:
# /tmp/hs_err_pid32329.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
Aborted

Comments
PUBLIC COMMENTS As another aspect of this RFE, there should be documentation stating that one should use the proposed workaround options with critical/HA Java processes in Linux.
25-06-2010

WORK AROUND same as CR 6447182 : -XX:-UsePerfData or -XX:+PerfDisableSharedMem
25-06-2010