Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 93939 invoked from network); 27 Feb 2007 00:41:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Feb 2007 00:41:28 -0000 Received: (qmail 42223 invoked by uid 500); 27 Feb 2007 00:41:36 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 42196 invoked by uid 500); 27 Feb 2007 00:41:36 -0000 Mailing-List: contact commits-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 commits@harmony.apache.org Received: (qmail 42187 invoked by uid 99); 27 Feb 2007 00:41:36 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Feb 2007 16:41:36 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Feb 2007 16:41:26 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id DF190714044 for ; Mon, 26 Feb 2007 16:41:05 -0800 (PST) Message-ID: <4914408.1172536865911.JavaMail.jira@brutus> Date: Mon, 26 Feb 2007 16:41:05 -0800 (PST) From: "Naveen Neelakantam (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-3222) assertion fires with DaCapo eclipse (jitrino built in debug) In-Reply-To: <15653787.1172102165699.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-3222?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Naveen Neelakantam updated HARMONY-3222: ---------------------------------------- Attachment: imm_cast_bug.patch This patch (imm_cast_bug) fixes the issue. The problem is with casting. Basically the following was occuring: in32 cast to uint32 cast to int64 As a result, negative constants would become large positive constants: -1 cast to 4294967295 cast to 4294967295 If this casted value was used to dereference an array it would be multipled by the array element size (let's say 4), which would exceed the maximum value that could fit in a 32-bit integer: 4294967295* 4 = 17179869180 > assertion fires with DaCapo eclipse (jitrino built in debug) > ------------------------------------------------------------ > > Key: HARMONY-3222 > URL: https://issues.apache.org/jira/browse/HARMONY-3222 > Project: Harmony > Issue Type: Bug > Components: DRLVM > Environment: RHEL4 update 4, core 2 duo, gcc 4.1.0 > Reporter: Naveen Neelakantam > Attachments: imm_cast_bug.patch > > > To see the assert, jitrino must be built in debug mode and the -Xem:server option must be used > > java -showversion -Xem:server -jar dacapo-2006-10-MR1.jar eclipse > Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors, as applicable. > java version "1.5.0" > pre-alpha : not complete or compatible > svn = r510120, (Feb 21 2007), Linux/ia32/gcc 4.1.0, debug build > http://incubator.apache.org/harmony > ===== DaCapo eclipse starting ===== > > > > > org.apache.ant (not open) opening cleaning building > org.junit (not open) opening cleaning building > java: /home/zilles/neelakan/Sandbox/Harmony/test/working_vm/vm/jitrino/src/codegenerator/ia32/Ia32Inst.cpp:92: void Jitrino::Ia32::Opnd::setMemOpndSubOpnd(Jitrino::Ia32::MemOpndSubOpndKind, Jitrino::Ia32::Opnd*): Assertion `(so != MemOpndSubOpndKind_Displacement) || (2147483647 >= opnd->getImmValue() && (-2147483647 - 1) <= opnd->getImmValue())' failed. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.