Subject: pkg/32055: Java 1.4.2 and 1.5.0 mmap fsckup
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <tonnerre@thundrix.ch>
List: pkgsrc-bugs
Date: 11/12/2005 08:10:00
>Number: 32055
>Category: pkg
>Synopsis: Java 1.4.2 and 1.5.0 mmap fsckup
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Nov 12 08:10:00 +0000 2005
>Originator: Tonnerre Lombard
>Release: 3.0_BETA
>Organization:
/chaos/control
>Environment:
NetBSD jerome.home.thundrix.ch 3.0_BETA NetBSD 3.0_BETA (TONNERRE) #4: Sun Oct 9 04:38:08 CEST 2005 root@jerome.home.thundrix.ch:/usr/src/sys/arch/i386/compile/TONNERRE i386
>Description:
Neither Java 1.5.0 nor Java 1.4.2, neither compiled on your own nor using Linux emulation, work under NetBSD 3.0_BETA (Haven't checked 2.1 yet).
The problem appearing in the ktruss output is always the same one: mmap returning ENOMEM
Linux emulation:
old_mmap(0xbfbfc6b0) Err#-12
Native NetBSD code:
mmap(0, 0x8000000, 0, 0x1042, 0xffffffff, 0, 0, 0) Err#12 ENOMEM
It appears that Java is trying to mmap 2G of RAM?!
>How-To-Repeat:
- install any Java JRE/JDK from pkgsrc
- ktruss java -version
>Fix: