From owner-freebsd-java@FreeBSD.ORG Thu Jul 28 16:29:25 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 35CBE106564A for ; Thu, 28 Jul 2011 16:29:25 +0000 (UTC) (envelope-from tiernan.messmer@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id E6A948FC0A for ; Thu, 28 Jul 2011 16:29:24 +0000 (UTC) Received: by gxk28 with SMTP id 28so2480976gxk.13 for ; Thu, 28 Jul 2011 09:29:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=5VjAbP92w0BK4KvvXXUUvDwNNpt9r7zJa5BuqhRf1vU=; b=edAeE+7SE0I1nft4Lu8NV+g59FAlplA11xKM46pXm9LArtuEsPBF7PZxHVelZldxgd kBs+vj6Sk4Gispex9j+zbSiRqsj9or2ykWTdU9id5DDK3tV/iJDeSaqPD/aUXtBxc0b2 CSApyXLcWV+ZKd84T7YECNeuG55y2TVDlP65s= Received: by 10.142.169.4 with SMTP id r4mr81254wfe.423.1311869232597; Thu, 28 Jul 2011 09:07:12 -0700 (PDT) Received: from [10.190.38.50] (ppp188-110.static.internode.on.net [150.101.188.110]) by mx.google.com with ESMTPS id m12sm662596wfh.19.2011.07.28.09.07.10 (version=SSLv3 cipher=OTHER); Thu, 28 Jul 2011 09:07:11 -0700 (PDT) Message-ID: <4E31891E.40709@gmail.com> Date: Fri, 29 Jul 2011 02:06:54 +1000 From: Tiernan Messmer User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: Kees Jan Koster References: <66A45AAC-2406-4D61-ADE9-EA860B5B2740@gmail.com> In-Reply-To: <66A45AAC-2406-4D61-ADE9-EA860B5B2740@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 16:29:25 -0000 Indeed I encountered the same issues on the non-diablo JDK as well. 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: .if ${MACHINE_ARCH} == "amd64" .PATH: ${.CURDIR}/contrib/gcc_gvmat64 SRCS+= gvmat64.S CFLAGS+= -DASMV -DNO_UNDERLINE .endif Then rebuild world (or just src/lib/libz if you're feeling lucky). 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. Hope this helps. ~Tiernan Messmer On 2011-07-29 0156, Kees Jan Koster wrote: > Guys, > > I found another segfault, much like the one reported by Tiernan in http://lists.freebsd.org/pipermail/freebsd-java/2011-April/009197.html > > 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. > > Any advise on how to proceed? > > > This is with Java from /usr/ports/java/jdk16 > > 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) > > # > # An unexpected error has been detected by Java Runtime Environment: > # > # SIGSEGV (0xb) at pc=0x0000000801f582a1, pid=78977, tid=0x3349400 > # > # 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 > # > > More data and core file on request. > -- > Kees Jan > > http://java-monitor.com/ > kjkoster@kjkoster.org > +31651838192 > > Change is good. Granted, it is good in retrospect, but change is good. >