harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vera Petrashkova (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-1973) [drlvm][jvmti]Some jvmti methorods return JVMTI_ERROR_INTERNAL on Jitrino/OPT
Date Thu, 26 Oct 2006 09:03:18 GMT
[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


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

        

Mime
View raw message