From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10266 invoked by alias); 8 Oct 2012 20:35:29 -0000 Received: (qmail 10096 invoked by uid 22791); 8 Oct 2012 20:35:27 -0000 X-SWARE-Spam-Status: No, hits=-5.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_GC,TW_XF X-Spam-Check-By: sourceware.org Received: from mail-da0-f47.google.com (HELO mail-da0-f47.google.com) (209.85.210.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 08 Oct 2012 20:35:22 +0000 Received: by mail-da0-f47.google.com with SMTP id s35so1801172dak.20 for ; Mon, 08 Oct 2012 13:35:21 -0700 (PDT) Received: by 10.66.78.6 with SMTP id x6mr45904068paw.41.1349728521764; Mon, 08 Oct 2012 13:35:21 -0700 (PDT) Received: from dl.caveonetworks.com (64.2.3.195.ptr.us.xo.net. [64.2.3.195]) by mx.google.com with ESMTPS id ka4sm11183281pbc.61.2012.10.08.13.35.20 (version=SSLv3 cipher=OTHER); Mon, 08 Oct 2012 13:35:20 -0700 (PDT) Message-ID: <50733907.9080108@gmail.com> Date: Mon, 08 Oct 2012 20:35:00 -0000 From: David Daney User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120828 Thunderbird/15.0 MIME-Version: 1.0 To: Kurt Miller CC: java@gcc.gnu.org Subject: Re: gcj 4.6 on OpenBSD/x86 References: <201210081607.04804.kurt@intricatesoftware.com> In-Reply-To: <201210081607.04804.kurt@intricatesoftware.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org X-SW-Source: 2012-10/txt/msg00001.txt.bz2 On 10/08/2012 01:07 PM, Kurt Miller wrote: > Hi, > > Previously I ported gcj in gcc 4.2.4 to OpenBSD. I currently use it to build classpath-0.98 and bootstrap Oracle's 1.6 JVM using classpath and jamvm. I'm now working on gcj from gcc 4.6.3 on x86 and have run into an issue that I could use some help with. > > gjar is segfaulting while throwing a ClassCastException from frame 3. Here is some debugging output showing the state and some variables leading up to the segfault. I'm not sure where to go from here. I can't seem to find the root cause of this issue other than something is wrong with 'obj' in frame 3 and obj->getClass()->getName() fails. Any ideas on how to proceed with the debugging on this issue? > > Core was generated by `egjar'. > Program terminated with signal 11, Segmentation fault. > #0 0x0c392970 in _Jv_NewStringUTF (bytes=0xfc408b05
) > at /usr/obj/i386/ports/gcc-4.6.3/gcc-4.6.3/libjava/java/lang/natString.cc:245 > 245 int size = strlen (bytes); > > I haven't studied it closely, but it would appear that 'bytes=0xfc408b05
' indicates a real problem. If it is truly a bad pointer value, you need to figure out where it came from and fix it. David Daney