From owner-freebsd-java Sun Aug 25 19:15:11 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 26DB037B400 for ; Sun, 25 Aug 2002 19:15:09 -0700 (PDT) Received: from modusponens.dnsalias.org (pool-151-203-187-83.wma.east.verizon.net [151.203.187.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id 53D9043E3B for ; Sun, 25 Aug 2002 19:15:08 -0700 (PDT) (envelope-from jay@eziba.com) Received: from eziba.com (localhost [127.0.0.1]) by modusponens.dnsalias.org (8.12.5/8.12.5) with ESMTP id g7Q2IaJF025263; Sun, 25 Aug 2002 22:18:37 -0400 (EDT) (envelope-from jay@eziba.com) Message-ID: <3D698FFC.3040904@eziba.com> Date: Sun, 25 Aug 2002 22:18:36 -0400 From: Jay Sachs User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.0.0) Gecko/20020606 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Archie Cobbs Cc: freebsd-java@FreeBSD.ORG Subject: Re: FreeBSD-specific jikes problem References: <200208232330.g7NNUod23140@arch20m.dellroad.org> X-Enigmail-Version: 0.49.5.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Freshly -supped ports tree, and -stable as of Aug 7. Attempt 1: I build the port with no optimization and debugging on, as follows: make CXXFLAGS='-g -pipe' No core dump, just a (jikes) warning about use of '$' in an identifier. So apparently the optimization in the 4.6-stable c++ compiler is a bit flakey. Attempt 2: Turn on optimization, building jikes as follows: make CXXFLAGS='-g -O -pipe' Ok, got core dump. Ran gdb, and the stack was filled with repetitions of #177 0x82071d2 in Semantic::ProcessBinaryExpression (this=0x8d18000, expr=0x8d1e474) at expr.cpp:6640 #178 0x81f30c8 in Semantic::ProcessPLUS (this=0x8d18000, expr=0x8d1e4c0) at semantic.h:1398 883 frames in total. So it looks like the optimizer inserted an infinite loop. It looks like the gcc 2.95.4 import of June 20 could be the culprit. The RELENG_4_6 branches (4.6-RELEASE, 4.6.1, 4.6.2 etc) do NOT have 2.95.4 imported, so if someone could test one of those systems we could pretty much nail down that it's a 2.95.4 optimizer bug. jay > Hi, > > If anyone who knows C++ and is interested in fixing a jikes core dump > problem, please take a look at this bug: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=41961 > > This bug does *not* occur on Linux, so it appears that the bug > may actually be part of FreeBSD rather than jikes. > > I know zero C++ and so can't do much about it.. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message