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-4335) [buildtest][vts] Test vm/jvmti/funcs/GetMethodName/GetMethodName0102/GetMethodName0102.xml crashes on printing wrong data
Date Wed, 04 Jul 2007 10:03:04 GMT
[buildtest][vts] Test vm/jvmti/funcs/GetMethodName/GetMethodName0102/GetMethodName0102.xml
crashes on printing wrong data

                 Key: HARMONY-4335
                 URL: https://issues.apache.org/jira/browse/HARMONY-4335
             Project: Harmony
          Issue Type: Bug
          Components: build - test - ci
            Reporter: Vera Petrashkova
         Attachments: GetMethodName0102.patch

Test vm/jvmti/funcs/GetMethodName/GetMethodName0102/GetMethodName0102.xml checks that 
GetMethodName method returns JVMTI_ERROR_INVALID_METHODID (23) when used parameter is not
It invokes this method with incorrect argument and then tries to report data which were not

See source code:
void JNICALL callbackException(prms_EXCPT)

    if (flag) return;

    char* name;
    char* signature;
    char* generic;
    jvmtiError result;
    jvmtiPhase phase;

    result = jvmti_env->GetPhase(&phase);
    if ((result != JVMTI_ERROR_NONE) || (phase != JVMTI_PHASE_LIVE)) return;
    fprintf(stderr, "\tnative: GetPhase result = %d (must be zero) \n", result);
    fprintf(stderr, "\tnative: current phase is %d (must be 4 (LIVE-phase)) \n", phase);

    result = jvmti_env->GetMethodName((jmethodID)jvmti_env, &name, &signature,
    fprintf(stderr, "\tnative: GetMethodName result = %d (must be JVMTI_ERROR_INVALID_METHODID
(23)) \n", result);
    fprintf(stderr, "\tnative: method name is %s \n", name);                           <<<<
should be removed
    fprintf(stderr, "\tnative: signature name is %s \n", signature);                    <<<<
should be removed
    fprintf(stderr, "\tnative: generic name is %s \n", generic);                         <<<<
should be removed

    if (result != JVMTI_ERROR_INVALID_METHODID) return;

    flag = true;
    util = true;
    test = true;
As the result RI return correct error code and then crashes when it tries to report undefined
information about the method.

This problem which causes the failure of this test on Harmony 
is now listed in drlvm known issues and limitations on the Harmony
page http://wiki.apache.org/harmony/KnownNonBugIssuesAndLimitations

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message