Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Aug 2009 00:42:30 GMT
From:      jmak <jonmakela@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/137406: eclipse 3.4.2_1 with eclipse-EPIC and Diable crashes on java divide by zero
Message-ID:  <200908040042.n740gUoU014043@www.freebsd.org>
Resent-Message-ID: <200908040050.n740o3om023612@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         137406
>Category:       ports
>Synopsis:       eclipse 3.4.2_1 with eclipse-EPIC and Diable crashes on java divide by zero
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 04 00:50:03 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     jmak
>Release:        7.2-RELEASE GENERIC #0
>Organization:
>Environment:
FreeBSD dbox 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May  1 08:49:13 UTC 2009     root@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
additional environment:
eclipse-3.4.2_1
diablo-jdk-1.6.0.07.02_5
jdk-1.6.0.3p4_11:
apache-ant-1.7.1
eclipse-EPIC-0.6.13_1

when entering 0/0 in a method call such as System.exit(), Eclipse crashes. This occurs with both JDKs.
>How-To-Repeat:
1. Run Eclipse
eclipse -vm /usr/local/jdk1.6.0/bin/java
-OR-
eclipse -vm /usr/local/diablo-jdk1.6.0/bin/java
It also works with the default java on my system.
2. Create a new 'Java Project'.
3. Create a Java Class, name unimportant.
4. Create a main(), e.g.
public class Test {
	public static void main (String args[]) {
	}
}
5. In main, type "System.exit(0/0);" or a call to another method with a parameter of int. Note: it is important to *type* it, copy+paste does not work.
6. By the end of that line, eclipse should have crashed with no command line output in ordinary or -debug mode.
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908040042.n740gUoU014043>