From owner-freebsd-java@FreeBSD.ORG Thu Jul 28 22:01:07 2011 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AFF83106566B for ; Thu, 28 Jul 2011 22:01:07 +0000 (UTC) (envelope-from kjkoster@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 455EE8FC17 for ; Thu, 28 Jul 2011 22:01:06 +0000 (UTC) Received: by wwe6 with SMTP id 6so2904723wwe.31 for ; Thu, 28 Jul 2011 15:01:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=MoN4oRYq36Nt/JI2tYzMmpdy9KtUEt9MGn4nSmfLwU0=; b=scp+8JYN0rElRDto/OPaEV5QimEW7eBky3AFijGmXPFQ4+u+c+FbM9S6+NaLJdKRDB dcnu32tZh46bH0YTpkvCD4k9ZhETB1LlRkLnz4f9K4Ly0OhPD5TdTszn/MnAMFMdtE85 3zOYypS3LEkUpgqNaPzYXGQmfvFJPCeBl7Sv0= Received: by 10.227.24.131 with SMTP id v3mr679889wbb.11.1311890466023; Thu, 28 Jul 2011 15:01:06 -0700 (PDT) Received: from [192.168.1.73] (195-23-89-192.net.novis.pt [195.23.89.192]) by mx.google.com with ESMTPS id o19sm1198868wbh.60.2011.07.28.15.01.04 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 28 Jul 2011 15:01:05 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Kees Jan Koster In-Reply-To: <4E31891E.40709@gmail.com> Date: Fri, 29 Jul 2011 00:01:03 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <598EAC72-7D58-4D96-BC9E-6CFB5EEDE4AB@gmail.com> References: <66A45AAC-2406-4D61-ADE9-EA860B5B2740@gmail.com> <4E31891E.40709@gmail.com> To: Tiernan Messmer X-Mailer: Apple Mail (2.1084) Cc: pieter@degoeje.nl, freebsd-java@freebsd.org Subject: Re: Java Segfault with X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jul 2011 22:01:07 -0000 Dear Tiernan, Thank you for the suggested fix. Other than running Minecraft, do you = have any way to reproduce this? Also, can you please dig a little to find where you found this? I'd like = to file a bug report for this. If you can't there is no man overboard, = but I like to be thorough. Kees Jan On 28 Jul 2011, at 18:06, Tiernan Messmer wrote: > Indeed I encountered the same issues on the non-diablo JDK as well. >=20 > In the end I found a fix somewhere (can't find it off hand) but what = solved it for me was to edit src/lib/libz/Makefile and comment the = following: >=20 > .if ${MACHINE_ARCH} =3D=3D "amd64" > .PATH: ${.CURDIR}/contrib/gcc_gvmat64 > SRCS+=3D gvmat64.S > CFLAGS+=3D -DASMV -DNO_UNDERLINE > .endif >=20 > Then rebuild world (or just src/lib/libz if you're feeling lucky). >=20 > I've since moved the server in question onto an old 32bit box (the = 64bit one was no longer available) and didn't encounter the issue again, = so I suspect it only affects the 64bit optimised assembly version of = longest_match. >=20 > Hope this helps. >=20 > ~Tiernan Messmer >=20 >=20 > On 2011-07-29 0156, Kees Jan Koster wrote: >> Guys, >>=20 >> I found another segfault, much like the one reported by Tiernan in = http://lists.freebsd.org/pipermail/freebsd-java/2011-April/009197.html >>=20 >> Pieter, I think this is not an issue with Diablo since I don't use = that JDK. Rarther, I think this is an issue with the zip library. >>=20 >> Any advise on how to proceed? >>=20 >>=20 >> This is with Java from /usr/ports/java/jdk16 >>=20 >> java version "1.6.0_03-p4" >> Java(TM) SE Runtime Environment (build = 1.6.0_03-p4-kjkoster_14_jul_2011_20_52-b00) >> Java HotSpot(TM) 64-Bit Server VM (build = 1.6.0_03-p4-kjkoster_14_jul_2011_20_52-b00, mixed mode) >>=20 >> # >> # An unexpected error has been detected by Java Runtime Environment: >> # >> # SIGSEGV (0xb) at pc=3D0x0000000801f582a1, pid=3D78977, = tid=3D0x3349400 >> # >> # Java VM: Java HotSpot(TM) 64-Bit Server VM = (1.6.0_03-p4-kjkoster_14_jul_2011_20_52-b00 mixed mode) >> # Problematic frame: >> # C [libz.so.5+0xa2a1] longest_match+0x1a1 >> # >> # Please submit bug reports to freebsd-java@FreeBSD.org >> # >>=20 >> More data and core file on request. >> -- >> Kees Jan >>=20 >> http://java-monitor.com/ >> kjkoster@kjkoster.org >> +31651838192 >>=20 >> Change is good. Granted, it is good in retrospect, but change is = good. >>=20 >=20 -- Kees Jan http://java-monitor.com/ kjkoster@kjkoster.org +31651838192 Human beings make life so interesting. Do you know that in a universe so = full of wonders, they have managed to invent boredom. Quite astonishing... -- Terry = Pratchett