Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 9257 invoked from network); 26 Oct 2006 09:06:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Oct 2006 09:06:21 -0000 Received: (qmail 95499 invoked by uid 500); 26 Oct 2006 09:06:33 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 95466 invoked by uid 500); 26 Oct 2006 09:06:32 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 95455 invoked by uid 99); 26 Oct 2006 09:06:32 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Oct 2006 02:06:32 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Oct 2006 02:06:18 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A3E897142CE for ; Thu, 26 Oct 2006 02:05:17 -0700 (PDT) Message-ID: <7899332.1161853517669.JavaMail.root@brutus> Date: Thu, 26 Oct 2006 02:05:17 -0700 (PDT) From: "Vera Petrashkova (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Updated: (HARMONY-1973) [drlvm][jvmti]Some jvmti methorods return JVMTI_ERROR_INTERNAL on Jitrino/OPT In-Reply-To: <31902263.1161853398457.JavaMail.root@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 [ http://issues.apache.org/jira/browse/HARMONY-1973?page=all ] Vera Petrashkova updated HARMONY-1973: -------------------------------------- Attachment: getLocalInt.zip getLOcalInt.zip file contains test source code, class file and libraries > [drlvm][jvmti]Some jvmti methorods return JVMTI_ERROR_INTERNAL on Jitrino/OPT > ----------------------------------------------------------------------------- > > Key: HARMONY-1973 > URL: http://issues.apache.org/jira/browse/HARMONY-1973 > Project: Harmony > Issue Type: Bug > Components: DRLVM > Environment: Windows and Linux > Reporter: Vera Petrashkova > Attachments: getLocalInt.zip > > > The following JVMTI methods return JVMTI_ERROR_INTERNAL on Jitrino in OPT mode: > SetBreakPoint > Get[Set]LocalInt > Get[Set]LocalFloat > Get[Set]LocalDouble > Get[Set]LocalLong > Get[Set]LocalObject > > SetBreakPoint returns ERROR code when this method uses appropriate arguments. > Get[Set]LocalXXXXXX methods return ERROR code > - when all used arguments are correct and method should return JVMTI_ERROR_NONE > - if incorrect "slot" parameter is used and JVMTI_ERROR_INVALID_SLOT should be returned > - if variable is not appropriate type for the function is used and > JVMTI_ERROR_TYPE_MISMATCH is expected. > To reproduce this bug run test from attachment. > This test getLI uses GetLocalInt(...) method using incorrect slot. It expects that VM returns > JVMTI_ERROR_INVALID_SLOT. But Harmony returns JVMTI_ERROR_INTERNAL. > Output on Harmony (Jitrino/OPT): > ----------------------------------------------- > java -cp . -Xem:opt -agentlib:getLI getLI > > 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 = r467316, (Oct 25 2006), Windows/ia32/msvc 1310, release build > http://incubator.apache.org/harmony > check: Agent_OnLoad was called with options = NULL > check: Agent_OnLoad was called with reserved = NULL > -----Test GetLocalInt with wrong slot started ----- > JIT 00EF4C20 get_bc_location_for_native returned error 2 for exception method java/io/Byte > ArrayOutputStream.write(I)V location 0123F66E > JIT 00EF4C20 get_bc_location_for_native returned error 2 for catch method java/io/ByteArrayOutputStream.write(I)V location 0123F635 > check: Exception was called with location = NULL > check: Exception was called with catch_location = NULL > JIT 00EF4C20 get_bc_location_for_native returned error 2 for exception method java/io/ByteArrayOutputStream.write(I)V location 0123F635 > JIT 00EF4C20 get_bc_location_for_native returned error 2 for exception method getLI.test()V location 01246E5F > JIT 00EF4C20 get_bc_location_for_native returned error 2 for catch method getLI.test()V lo > cation 01246E5F > check: Exception was called with location = NULL > check: Exception was called with catch_location = NULL > native: GetLocalInt result = 113 (must be JVMTI_ERROR_INVALID_SLOT (35) ) > JIT 00EF4C20 get_bc_location_for_native returned error 2 for exception method getLI.test()V location 01246E5F > ----Test GetLocalInt with wrong slot failed ---- test: 0 util: 1 > > Output on Harmony (Jitrino/JET): > ------------------------------------------------- > java -cp . -Xem:jet -agentlib:getLI getLI > > 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 = r467316, (Oct 25 2006), Windows/ia32/msvc 1310, release build > http://incubator.apache.org/harmony > check: Agent_OnLoad was called with options = NULL > check: Agent_OnLoad was called with reserved = NULL > -----Test GetLocalInt with wrong slot started ----- > native: GetLocalInt result = 35 (must be JVMTI_ERROR_INVALID_SLOT (35) ) > ----Test GetLocalInt with wrong slot passed ---- > -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira