Name: dkC103137 Date: 04/21/2000
Hotspot Client VM (build 1.3-internal-release, mixed mode),
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0beta-b01),
crashes while dividing int by int zero, see test source and diagnostics below.
However, floating point division by zero works OK.
You need compile the test.java file with oldjavac, because javac crashes
while compiling the test.
The bug can be reproduced in
/net/sqesvr/vsn/GammaBase/Bugs/<this bug number>
directory, using doit.sh script.
-------------------------- test.java ---------------------------------
public class test {
public static void main(String args[]) {
int j;
try {
j = 1/0;
}
catch (ArithmeticException error) {
System.out.println("int is divided by 0");
}
}
}
-------------------------- output ------------------------------------
% ~/localjdk1.3/linux/bin/java test
caught SIGFPE, info 0x0.
#
# HotSpot Virtual Machine Error, Unexpected Signal 8
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# occurred at pc=48854f74
#
# Error ID: /export/home/hz/ws/build/linux/../../src/os/linux/vm/os_linux.cpp, 1496
#
# Problematic Thread: prio=1 tid=0x805e278 nid=0x400 runnable
#
Current thread is 0x400
Dumping core ...
Abort
%
======================================================================