From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3835 invoked by alias); 8 Oct 2012 22:10:45 -0000 Received: (qmail 3817 invoked by uid 22791); 8 Oct 2012 22:10:44 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RP_MATCHES_RCVD,TW_GC,TW_XF X-Spam-Check-By: sourceware.org Received: from mail1.intricatesoftware.com (HELO mail1.intricatesoftware.com) (96.56.4.132) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 08 Oct 2012 22:10:39 +0000 Received: from localhost (relay@mail1.intricatesoftware.com [127.0.0.1]) by mail1.intricatesoftware.com (8.14.5/8.14.3) with ESMTP id q98MARl7027016; Mon, 8 Oct 2012 18:10:30 -0400 (EDT) From: Kurt Miller To: David Daney Subject: Re: gcj 4.6 on OpenBSD/x86 Date: Mon, 08 Oct 2012 22:10:00 -0000 User-Agent: KMail/1.9.10 Cc: java@gcc.gnu.org References: <201210081607.04804.kurt@intricatesoftware.com> <50733907.9080108@gmail.com> In-Reply-To: <50733907.9080108@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201210081809.37286.kurt@intricatesoftware.com> X-SMTP-Vilter-Version: 1.3.6 X-SMTP-Vilter-Virus-Backend: clamd X-SMTP-Vilter-Status: clean X-SMTP-Vilter-clamd-Virus-Status: clean X-Spamd-Symbols: ALL_TRUSTED,BAYES_00 X-SMTP-Vilter-Spam-Backend: spamd X-Spam-Score: -2.9 X-Spam-Threshold: 5.0 X-Spam-Probability: -0.6 X-SMTP-Vilter-Unwanted-Backend: attachment X-SMTP-Vilter-attachment-Unwanted-Status: clean 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/msg00002.txt.bz2 On Monday 08 October 2012 04:35:19 pm David Daney wrote: > 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. Indeed. I've done that already and included the details in the initial email. Frame 3 is throwing an exception where obj->getClass()->getName() is called. 'obj' is the likely source of the problem but the debugger believes it is an incomplete type and I can't inspect it; see the end of initial email. Thanks, -Kurt