From owner-freebsd-java@freebsd.org Sun May 7 09:54:03 2017 Return-Path: Delivered-To: freebsd-java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D3988D6213B for ; Sun, 7 May 2017 09:54:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id AC1A76A0 for ; Sun, 7 May 2017 09:54:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id A2C04D6213A; Sun, 7 May 2017 09:54:03 +0000 (UTC) Delivered-To: java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A20ECD62139 for ; Sun, 7 May 2017 09:54:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 68C9169D for ; Sun, 7 May 2017 09:54:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v479s3oM064270 for ; Sun, 7 May 2017 09:54:03 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: java@FreeBSD.org Subject: [Bug 215286] [java/openjdk8] Java crashes/exits on i386 as soon as kernel parameters KVA_PAGES = 512 and KSTACK_PAGES = 4 set for ZFS Date: Sun, 07 May 2017 09:54:03 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: 1983-01-06@gmx.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: java@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_severity Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 May 2017 09:54:04 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215286 Michael Osipov <1983-01-06@gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Affects Only Me |Affects Many People --- Comment #2 from Michael Osipov <1983-01-06@gmx.net> --- I was finally able to locate the cause of this. Tried on two different setu= ps: Machine 1: Pentium 4 1.4 GHz and 2 GiB RAM. > FreeBSD bsd1home 11.0-STABLE FreeBSD 11.0-STABLE #0 r317824: Sat May 6 2= 2:35:35 CEST 2017 mosipov@bsd1home:/usr/obj/usr/src/sys/GENERIC i386 > openjdk version "1.8.0_131" > OpenJDK Runtime Environment (build 1.8.0_131-b11) > OpenJDK Server VM (build 25.131-b11, mixed mode) to make sure that the machine is not faulty, I have set up the same in VirtualBox, 32 bit with 2 GiB, machine 2: > FreeBSD freebsd11-32bit 11.0-STABLE FreeBSD 11.0-STABLE #1 r317854: Fri M= ay 5 23:55:01 CEST 2017 root@freebsd11-32bit:/usr/obj/usr/src/sys/GENE= RIC i386 > openjdk version "1.8.0_131" > OpenJDK Runtime Environment (build 1.8.0_131-b11) > OpenJDK Server VM (build 25.131-b11, mixed mode) Then run as root: $ pkg install openjdk7 openjdk8 git maven33 $ git clone https://git-wip-us.apache.org/repos/asf/maven.git $ cd maven $ mvn clean package It shall run flawlessly on Java 8 Now create a custom kernel config ZFS: include GENERIC ident BSD1HOME options KVA_PAGES=3D512 options KSTACK_PAGES=3D4 Compile the kernel with that and rerun the mvn command, you'll see crashes like: > # There is insufficient memory for the Java Runtime Environment to contin= ue. > # Native memory allocation (malloc) failed to allocate 146808 bytes for C= hunk::new > # An error report file with more information is saved as: > # /usr/home/mosipov/Projekte/maven/hs_err_pid934.log > # > # Compiler replay data is saved as: > # /usr/home/mosipov/Projekte/maven/replay_pid934.log or hard SIGSEGV with AsyncGetCallTrace+0x6cefc. Updated files in http://home.apache.org/~michaelo/freebsd/issue-215286/. Surprisingly, OpenJDK 7 works flawlessly. There must be some broken interaction between KVA_PAGES =3D 512/KSTACK_PAGE= S =3D 4 and Java 8. --=20 You are receiving this mail because: You are the assignee for the bug.=