JDK-4345034 : linux: hotspot vm crashes with -version on Suse 6.4
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 1.3.0,1.4.0
  • Priority: P2
  • Status: Closed
  • Resolution: Won't Fix
  • OS: linux,linux_2.2
  • CPU: x86
  • Submitted: 2000-06-13
  • Updated: 2000-07-01
  • Resolved: 2000-07-01
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Description
java -version 
on Suse 6.4 generates a segmentation violation

java -classic -version is ok

Also vanilla kernels with Suse 6.4 are also ok so it is a difference in
the SUSE kernel distribution

Comments
SUGGESTED FIX Apparently this may be a result of Andrea Arcangeli's silent-stack-overflow-3 patch The other possible workaround it to change hotspot to use 1MB stack size. I am not sure that can be worked out. ###@###.### 2000-06-30
30-06-2000

EVALUATION Can anyone provide more information about Andrea Arcangeli's silent-stack-overflow-3 patch. There is some hacking code in hotspot to deal with stack overflow. However, I am not sure where the conflict came from. ###@###.### 2000-06-14 This bug is caused by Suse made some incompatible change to the kernel which prevent us from installing guard page and altstack, which are required for detecting stack overflow error. As far as I know, SuSe will update their kernel to avoid this problem. From HotSpot, there is nothing we can about this problem. Please use the suggested workaround to avoid this problem. ###@###.### 2000-06-30
30-06-2000

WORK AROUND Thanks to the SUSE engineering team, they came up with the following work around echo 0 > /proc/sys/vm/heap-stack-gap The hosspot install guard page 512KB from stack base. But SuSe Linux requires no vma within 512KB from stack base. There are two solutions: a) We increase stack size, and move guard page 1MB from stack base; b) SuSe use smaller heap-stack-gap. I think SuSe will make this change. ###@###.### 2000-06-27
27-06-2000