Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 22599 invoked from network); 5 Sep 2009 17:19:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Sep 2009 17:19:21 -0000 Received: (qmail 25414 invoked by uid 500); 5 Sep 2009 17:19:20 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 25332 invoked by uid 500); 5 Sep 2009 17:19:20 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 25321 invoked by uid 99); 5 Sep 2009 17:19:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Sep 2009 17:19:20 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of t.p.ellison@gmail.com designates 72.14.220.153 as permitted sender) Received: from [72.14.220.153] (HELO fg-out-1718.google.com) (72.14.220.153) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Sep 2009 17:19:09 +0000 Received: by fg-out-1718.google.com with SMTP id e12so1274914fga.0 for ; Sat, 05 Sep 2009 10:18:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=m08qUi07e+VzMK20VgchowfRK0EGgzU+qeJzHD715gQ=; b=kJl5rHdGDUowopVDuHFMeanURrFiqqqV4rKbepNm2PYkUvDUsag9VLbGkRprl+wXej kBHb1B4O2ccz7rLyenZWGuqXzf1eF8zSqY78RhFhn2oWnT8/pIZuQcCT9Y8d5bz8E8r+ 9eiJZkI/tjpqX0UFN/lGvp6UDHvN3Kuy4i1s8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=vhH81deORVtMgj8UjqIZIalAM2P8chjwMuXCGnGTwckgy2n17ItC9Xmqtifp0Evgzg NKTy3bBsBsQwIZV1iIA3tsVSl+4VYtysdYhPbzfgSv5rLwA7d9Fw0HrkHQrFjmx5wcty 5f8oHjFjcTaOHuaIgVmj/UWAyee8bJwtVhR5Y= Received: by 10.86.12.2 with SMTP id 2mr6232286fgl.12.1252171128807; Sat, 05 Sep 2009 10:18:48 -0700 (PDT) Received: from ?192.168.0.3? ([89.243.64.68]) by mx.google.com with ESMTPS id d4sm4532783fga.13.2009.09.05.10.18.47 (version=SSLv3 cipher=RC4-MD5); Sat, 05 Sep 2009 10:18:47 -0700 (PDT) Message-ID: <4AA29D71.1020308@gmail.com> Date: Sat, 05 Sep 2009 18:18:41 +0100 From: Tim Ellison User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: dev@harmony.apache.org Subject: Re: [jira] Commented: (HARMONY-6316) Errors and hang when running Commons Math 2.0 test suite References: <1256156999.1252112577640.JavaMail.jira@brutus> In-Reply-To: <1256156999.1252112577640.JavaMail.jira@brutus> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Sebb, Can you try running with the JIT disabled (-Xint) and see if the test fails the same way? Thanks, Tim On 05/Sep/2009 02:02, Sebb (JIRA) wrote: > [ https://issues.apache.org/jira/browse/HARMONY-6316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12751680#action_12751680 ] > > Sebb commented on HARMONY-6316: > ------------------------------- > > I've been investigating the ArrayIndexOutOfBoundsException in the test EigenDecompositionImplTest.testBigMatrix(). > > In the file linear/EigenDecompositionImpl.java at line 1586 there is the following for loop: > > for (int i4 = 4 * end - 10 + pingPong; i4 >= 4 * start + 2 + pingPong; i4 -= 4) { > > I found that changing this to: > > final int dummy = 1; > for (int i4 = 4 * end - 10 + pingPong; i4 >= 4 * start + 2+ pingPong; i4 -= 4) { > > prevents the array bound error from occurring. > > This suggests to me that the JVM is perhaps re-using a work register without saving/restoring it. > The additional assignment statement somehow causes the JVM to be stricter about register usage. > > I tried catching the AIOBE and printing the index. > It was a large number (406591607) , but the other variables still had their original values. > This again suggests the JVM may be using a stale cached value for the for loop calculations. > > I suspect this may be a similar problem to the testAngles() failure. > >> Errors and hang when running Commons Math 2.0 test suite >> -------------------------------------------------------- >> >> Key: HARMONY-6316 >> URL: https://issues.apache.org/jira/browse/HARMONY-6316 >> Project: Harmony >> Issue Type: Bug >> Affects Versions: 5.0M11 >> Environment: Maven 2.1.0 >> Win XP/SP3 >> Harmony svn = r782693, (Jun 12 2009), Windows/ia32/msvc 1310, release build >> Reporter: Sebb >> Attachments: HarmonyDoubleBug.java, surefire-log.txt, surefire-reports.zip >> >> >> I tried testing Commons Math 2.0 against Harmony r782693, (Jun 12 2009) and found a few strange bugs where variables appeared to have "impossible" values, causing array index out of bounds errors. >> Also, at least one test hangs: >> Running org.apache.commons.math.geometry.RotationTest. >> See attached Surefire output. >