harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Rebriy (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-3476) [drlvm][winx64][jit] HUT does not run on pure opt in debug mode
Date Fri, 23 Mar 2007 11:30:36 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-3476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12483533
] 

Pavel Rebriy commented on HARMONY-3476:
---------------------------------------

Here is a mini test to reproduce:

public class FileUtils {
    private static char[] escapedChar1 = new char[256];
    private static char[] escapedChar2 = new char[256];

    static {
        escapedChar1[0x7f] = '7';
        escapedChar2[0x7f] = 'F';
        char[] escChs = {'<', '>', '#', '%', '"', '{', '}',
            '|', '\\', '^', '~', '[', ']', '`'};
        for (int i = 0; i < escChs.length; i++) {
            System.out.println("i = " + i);
            int ch = escChs[i];
            System.out.println("ch = " + ch);
            escapedChar1[ch] = Character.forDigit(ch >> 4, 16);
            escapedChar2[ch] = Character.forDigit(ch & 0xf, 16);
        }
    }

    public static void main(String[] args) {
        System.out.println("Test passed");
    }
}

It fails on JIT OPT with NPE.


> [drlvm][winx64][jit] HUT does not run on pure opt in debug mode
> ---------------------------------------------------------------
>
>                 Key: HARMONY-3476
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3476
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: windows/em64t
>            Reporter: Vladimir Beliaev
>
> The HUT (classlib tests) failed to run on fresh version of debug DRLVM in OPT mode (-Xem:opt).
> The issue is NOT reproducible in release mode, or in debug mode with JET or Interpreter
or "Mixed" execution engine.
> To reproduce:
> 1. build fresh Harmoby in debug mode
> 2. edit 
>         <trunk>/working_vm/build/deploy/jdk/jre/bin/default/harmonyvm.properties
>      add the followjng argument (line) in it 
>         -Xem:opt 
> 3. run tests for any module:
>     $ cd <trunk>/working_classlib
>     $ ant -Dbuild.module=luni -Dtest.jre.home="../working_vm/build/deploy/jdk/jre" test
> That's it...
> The part of error output is:
> run-tests:
>      [echo] Running LUNI JUnit Tests
>     [mkdir] Created dir: D:\users\vbeliaev\trunk-debug-20070322\working_classlib\build\test_report
>     [junit] Running tests.api.java.util.WeakHashMapTest
>     [junit] Uncaught exception in main:
>     [junit] java.lang.ExceptionInInitializerError
>     [junit]     at org.apache.tools.ant.Project.<clinit>(Project.java:119)
>     [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java)
>     [junit] Caused by: java.lang.NullPointerException
>     [junit]     at org.apache.tools.ant.util.FileUtils.<clinit>(FileUtils.java)
>     [junit]     at org.apache.tools.ant.Project.<clinit>(Project.java:119)
>     [junit]     ... 1 more
>     [junit] Tests FAILED
> Thanks
> Vladimir Beliaev

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


Mime
View raw message