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/12 08:48:36 UTC

[jira] Created: (HARMONY-1835) [drlvm][jvmti] Harmony crashes on JVMTI method NotifyFramePop when it shoulf return JVMTI_ERROR_NO_MORE_FRAMES

[drlvm][jvmti] Harmony crashes on JVMTI method NotifyFramePop when it shoulf return JVMTI_ERROR_NO_MORE_FRAMES
--------------------------------------------------------------------------------------------------------------

                 Key: HARMONY-1835
                 URL: http://issues.apache.org/jira/browse/HARMONY-1835
             Project: Harmony
          Issue Type: Bug
          Components: DRLVM
         Environment: Windows and Linux
            Reporter: Vera Petrashkova


According to J2SE JVMTI specifications:
    jvmtiError NotifyFramePop(jvmtiEnv* env, jthread thread, jint depth)
 
returns JVMTI_ERROR_NO_MORE_FRAMES (31) when there are no Java programming language or JNI stack frames at the specified depth. 

But in this case Harmony crashes.
To reproduce this bug run attached test NotifyFramePopTest and use test libraries:
     java -cp . -agentlib:NotifyFramePopTest  NotifyFramePopTest

 
 
Output on RI:
----------------------
        check: Agent_OnLoad was called with options = NULL
        check: Agent_OnLoad was called with reserved = NULL
-------------------------------------------------
test NotifyFramePopTest is started
{
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode)
        check: Exception was called with location = NULL
        native: GetMethodName result = 0 (must be zero)
        native: method name is special_method
        native: NotifyFramePop result = 31 (must be JVMTI_ERROR_NO_MORE_FRAMES (31))
 
        Test of function NotifyFramePop             :  passed
} /* test NotifyFramePop is finished */

 

Output on Harmony:
----------------------
- On Windows:
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 = r454551, (Oct 11 2006), Windows/ia32/msvc 1310, release build
http://incubator.apache.org/harmony

An unhandled error (4) has occurred.
HyGeneric_Signal_Number=00000004
ExceptionCode=c0000005
ExceptionAddress=0056182A
ContextFlags=0001003f
Handler1=00401010
Handler2=11105F80
InaccessibleAddress=00000000
EDI=010920FC
ESI=010DD650
EAX=00000000
EBX=00000000
ECX=00EF5210
EDX=00EF54B4
EIP=0056182A
ESP=0013F9CC
EBP=00EF5210
Module=H:\share\binaries\builds\combined\20061011\drl_20061011_win_ia32_0002_msvc_r_H\bin\default\harmonyvm.dll
Module_base_address=00510000
Offset_in_DLL=0005182a

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
 
- On Linux: 
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 = r454551, (Oct 11 2006), Linux/ia32/icc 900, release build
http://incubator.apache.org/harmony

An unhandled error (4) has occurred.
HyGeneric_Signal_Number=00000004
Signal_Number=0000000b
Error_Value=00000000
Signal_Code=00000001
Handler1=0804A860
Handler2=400264C1
InaccessibleAddress=00000000
EDI=40E9CF04
ESI=08076210
EAX=0808E028
EBX=40E45BB4
ECX=00000000
EDX=BFFFE528
EIP=40C272ED
ES=0000007B
DS=0000007B
ESP=BFFFE510
EFlags=00010206
CS=00000073
SS=0000007B
EBP=0808E028
Module=/nfs/ins/proj/drl/share/binaries/builds/combined/20061011/drl_20061011_lnx_ia32_0002_icc_r_H/bin/default/libharmonyvm.so
Module_base_address=40AAC000
Symbol=_ZN12DebugUtilsTI4InitEv
Symbol_address=40C272A8
Aborted


-- 
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-1835) [drlvm][jvmti] Harmony crashes on JVMTI method NotifyFramePop when it shoulf return JVMTI_ERROR_NO_MORE_FRAMES

Posted by "Vera Petrashkova (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1835?page=all ]

Vera Petrashkova updated HARMONY-1835:
--------------------------------------

    Attachment: NotifyFramePop.zip

Test source code, class and libraries

> [drlvm][jvmti] Harmony crashes on JVMTI method NotifyFramePop when it shoulf return JVMTI_ERROR_NO_MORE_FRAMES
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1835
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1835
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows and Linux
>            Reporter: Vera Petrashkova
>         Attachments: NotifyFramePop.zip
>
>
> According to J2SE JVMTI specifications:
>     jvmtiError NotifyFramePop(jvmtiEnv* env, jthread thread, jint depth)
>  
> returns JVMTI_ERROR_NO_MORE_FRAMES (31) when there are no Java programming language or JNI stack frames at the specified depth. 
> But in this case Harmony crashes.
> To reproduce this bug run attached test NotifyFramePopTest and use test libraries:
>      java -cp . -agentlib:NotifyFramePopTest  NotifyFramePopTest
>  
>  
> Output on RI:
> ----------------------
>         check: Agent_OnLoad was called with options = NULL
>         check: Agent_OnLoad was called with reserved = NULL
> -------------------------------------------------
> test NotifyFramePopTest is started
> {
> java version "1.5.0_06"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
> Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode)
>         check: Exception was called with location = NULL
>         native: GetMethodName result = 0 (must be zero)
>         native: method name is special_method
>         native: NotifyFramePop result = 31 (must be JVMTI_ERROR_NO_MORE_FRAMES (31))
>  
>         Test of function NotifyFramePop             :  passed
> } /* test NotifyFramePop is finished */
>  
> Output on Harmony:
> ----------------------
> - On Windows:
> 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 = r454551, (Oct 11 2006), Windows/ia32/msvc 1310, release build
> http://incubator.apache.org/harmony
> An unhandled error (4) has occurred.
> HyGeneric_Signal_Number=00000004
> ExceptionCode=c0000005
> ExceptionAddress=0056182A
> ContextFlags=0001003f
> Handler1=00401010
> Handler2=11105F80
> InaccessibleAddress=00000000
> EDI=010920FC
> ESI=010DD650
> EAX=00000000
> EBX=00000000
> ECX=00EF5210
> EDX=00EF54B4
> EIP=0056182A
> ESP=0013F9CC
> EBP=00EF5210
> Module=H:\share\binaries\builds\combined\20061011\drl_20061011_win_ia32_0002_msvc_r_H\bin\default\harmonyvm.dll
> Module_base_address=00510000
> Offset_in_DLL=0005182a
> This application has requested the Runtime to terminate it in an unusual way.
> Please contact the application's support team for more information.
>  
> - On Linux: 
> 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 = r454551, (Oct 11 2006), Linux/ia32/icc 900, release build
> http://incubator.apache.org/harmony
> An unhandled error (4) has occurred.
> HyGeneric_Signal_Number=00000004
> Signal_Number=0000000b
> Error_Value=00000000
> Signal_Code=00000001
> Handler1=0804A860
> Handler2=400264C1
> InaccessibleAddress=00000000
> EDI=40E9CF04
> ESI=08076210
> EAX=0808E028
> EBX=40E45BB4
> ECX=00000000
> EDX=BFFFE528
> EIP=40C272ED
> ES=0000007B
> DS=0000007B
> ESP=BFFFE510
> EFlags=00010206
> CS=00000073
> SS=0000007B
> EBP=0808E028
> Module=/nfs/ins/proj/drl/share/binaries/builds/combined/20061011/drl_20061011_lnx_ia32_0002_icc_r_H/bin/default/libharmonyvm.so
> Module_base_address=40AAC000
> Symbol=_ZN12DebugUtilsTI4InitEv
> Symbol_address=40C272A8
> Aborted

-- 
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