You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Vera Petrashkova (JIRA)" <ji...@apache.org> on 2006/10/26 11:03:18 UTC
[jira] Created: (HARMONY-1973) [drlvm][jvmti]Some jvmti methorods
return JVMTI_ERROR_INTERNAL on Jitrino/OPT
[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
[jira] Commented: (HARMONY-1973) [drlvm][jvmti]Some jvmti methorods
return JVMTI_ERROR_INTERNAL on Jitrino/OPT
Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1973?page=comments#action_12444851 ]
Gregory Shimansky commented on HARMONY-1973:
--------------------------------------------
Vera, JVMTI uses its own special EM configuration, so if you specify another one there is no surprise that it doesn't work. Jitrino.OPT doesn't support a lot of functions which are necessary for JVMTI implementation, and returns errors when these functions are called. That's the reason for internal error.
I suggest closing this issue as invalid.
> [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
[jira] Updated: (HARMONY-1973) [drlvm][jvmti]Some jvmti methorods
return JVMTI_ERROR_INTERNAL on Jitrino/OPT
Posted by "Vera Petrashkova (JIRA)" <ji...@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