You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Vladimir Beliaev (JIRA)" <ji...@apache.org> on 2007/12/13 15:55:43 UTC

[jira] Created: (HARMONY-5309) [EUT] 274 NPE in checkAndTagAsMalformed on Linux x86_64

[EUT] 274 NPE in checkAndTagAsMalformed on Linux x86_64
-------------------------------------------------------

                 Key: HARMONY-5309
                 URL: https://issues.apache.org/jira/browse/HARMONY-5309
             Project: Harmony
          Issue Type: Bug
          Components: App-Oriented Bug Reports
         Environment: Linux / x86_64
            Reporter: Vladimir Beliaev


274 tests from EUT suites failed with NPE in the same method on Linux x86_64:

      java.lang.NullPointerException
     at org.eclipse.jdt.core.dom.ASTSyntaxErrorPropagator.checkAndTagAsMalformed(ASTSyntaxErrorPropagator.java:34)
     at org.eclipse.jdt.core.dom.ASTSyntaxErrorPropagator.visit(ASTSyntaxErrorPropagator.java:117)
     at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:208)
     <skipped>

This is not a regressions, still a sensetive difference of EUT behaviour on Linux x86_64 from x86 platforms, so it better be fixed.

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


[jira] Updated: (HARMONY-5309) [drlvm][jit][jet][EUT] 274 NPE in checkAndTagAsMalformed on Linux x86_64

Posted by "Pavel Afremov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-5309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pavel Afremov updated HARMONY-5309:
-----------------------------------

    Attachment: HARMONY-5309_fix2.patch

I think that for  x86-32 not check is required. For x86-64 right check should looks like: 

    int tmp = -jinst.low();
    const int LO_BOUND = INT_MIN/(int)sizeof(void*);
    const int UP_BOUND = INT_MAX/(int)sizeof(void*);
    if (!(LO_BOUND<=tmp && tmp<=UP_BOUND))

So as I understand, realy good fix should looks like in HARMONY-5309_fix2.patch


> [drlvm][jit][jet][EUT] 274 NPE in checkAndTagAsMalformed on Linux x86_64
> ------------------------------------------------------------------------
>
>                 Key: HARMONY-5309
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5309
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Linux / x86_64
>            Reporter: Vladimir Beliaev
>            Assignee: Gregory Shimansky
>         Attachments: HARMONY-5309_fix1.patch, HARMONY-5309_fix2.patch, SwitchTest.java
>
>
> 274 tests from EUT suites failed with NPE in the same method on Linux x86_64:
>       java.lang.NullPointerException
>      at org.eclipse.jdt.core.dom.ASTSyntaxErrorPropagator.checkAndTagAsMalformed(ASTSyntaxErrorPropagator.java:34)
>      at org.eclipse.jdt.core.dom.ASTSyntaxErrorPropagator.visit(ASTSyntaxErrorPropagator.java:117)
>      at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:208)
>      <skipped>
> This is not a regressions, still a sensetive difference of EUT behaviour on Linux x86_64 from x86 platforms, so it better be fixed.

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


[jira] Updated: (HARMONY-5309) [drlvm][jit][jet][EUT] 274 NPE in checkAndTagAsMalformed on Linux x86_64

Posted by "Vladimir Beliaev (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-5309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vladimir Beliaev updated HARMONY-5309:
--------------------------------------

    Patch Info: [Patch Available]

> [drlvm][jit][jet][EUT] 274 NPE in checkAndTagAsMalformed on Linux x86_64
> ------------------------------------------------------------------------
>
>                 Key: HARMONY-5309
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5309
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Linux / x86_64
>            Reporter: Vladimir Beliaev
>         Attachments: HARMONY-5309_fix1.patch, SwitchTest.java
>
>
> 274 tests from EUT suites failed with NPE in the same method on Linux x86_64:
>       java.lang.NullPointerException
>      at org.eclipse.jdt.core.dom.ASTSyntaxErrorPropagator.checkAndTagAsMalformed(ASTSyntaxErrorPropagator.java:34)
>      at org.eclipse.jdt.core.dom.ASTSyntaxErrorPropagator.visit(ASTSyntaxErrorPropagator.java:117)
>      at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:208)
>      <skipped>
> This is not a regressions, still a sensetive difference of EUT behaviour on Linux x86_64 from x86 platforms, so it better be fixed.

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


[jira] Updated: (HARMONY-5309) [drlvm][jit][jet][EUT] 274 NPE in checkAndTagAsMalformed on Linux x86_64

Posted by "Vladimir Beliaev (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-5309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vladimir Beliaev updated HARMONY-5309:
--------------------------------------

    Component/s:     (was: App-Oriented Bug Reports)
                 DRLVM
        Summary: [drlvm][jit][jet][EUT] 274 NPE in checkAndTagAsMalformed on Linux x86_64  (was: [EUT] 274 NPE in checkAndTagAsMalformed on Linux x86_64)

> [drlvm][jit][jet][EUT] 274 NPE in checkAndTagAsMalformed on Linux x86_64
> ------------------------------------------------------------------------
>
>                 Key: HARMONY-5309
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5309
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Linux / x86_64
>            Reporter: Vladimir Beliaev
>         Attachments: HARMONY-5309_fix1.patch, SwitchTest.java
>
>
> 274 tests from EUT suites failed with NPE in the same method on Linux x86_64:
>       java.lang.NullPointerException
>      at org.eclipse.jdt.core.dom.ASTSyntaxErrorPropagator.checkAndTagAsMalformed(ASTSyntaxErrorPropagator.java:34)
>      at org.eclipse.jdt.core.dom.ASTSyntaxErrorPropagator.visit(ASTSyntaxErrorPropagator.java:117)
>      at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:208)
>      <skipped>
> This is not a regressions, still a sensetive difference of EUT behaviour on Linux x86_64 from x86 platforms, so it better be fixed.

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


[jira] Closed: (HARMONY-5309) [drlvm][jit][jet][EUT] 274 NPE in checkAndTagAsMalformed on Linux x86_64

Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-5309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gregory Shimansky closed HARMONY-5309.
--------------------------------------


No response, assuming ok.

> [drlvm][jit][jet][EUT] 274 NPE in checkAndTagAsMalformed on Linux x86_64
> ------------------------------------------------------------------------
>
>                 Key: HARMONY-5309
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5309
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Linux / x86_64
>            Reporter: Vladimir Beliaev
>            Assignee: Gregory Shimansky
>         Attachments: HARMONY-5309_fix1.patch, HARMONY-5309_fix2.patch, SwitchTest.java
>
>
> 274 tests from EUT suites failed with NPE in the same method on Linux x86_64:
>       java.lang.NullPointerException
>      at org.eclipse.jdt.core.dom.ASTSyntaxErrorPropagator.checkAndTagAsMalformed(ASTSyntaxErrorPropagator.java:34)
>      at org.eclipse.jdt.core.dom.ASTSyntaxErrorPropagator.visit(ASTSyntaxErrorPropagator.java:117)
>      at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:208)
>      <skipped>
> This is not a regressions, still a sensetive difference of EUT behaviour on Linux x86_64 from x86 platforms, so it better be fixed.

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


[jira] Updated: (HARMONY-5309) [EUT] 274 NPE in checkAndTagAsMalformed on Linux x86_64

Posted by "Pavel Afremov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-5309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pavel Afremov updated HARMONY-5309:
-----------------------------------

    Attachment: SwitchTest.java

I've created test-reproducer. You can find it in attachment.

> [EUT] 274 NPE in checkAndTagAsMalformed on Linux x86_64
> -------------------------------------------------------
>
>                 Key: HARMONY-5309
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5309
>             Project: Harmony
>          Issue Type: Bug
>          Components: App-Oriented Bug Reports
>         Environment: Linux / x86_64
>            Reporter: Vladimir Beliaev
>         Attachments: SwitchTest.java
>
>
> 274 tests from EUT suites failed with NPE in the same method on Linux x86_64:
>       java.lang.NullPointerException
>      at org.eclipse.jdt.core.dom.ASTSyntaxErrorPropagator.checkAndTagAsMalformed(ASTSyntaxErrorPropagator.java:34)
>      at org.eclipse.jdt.core.dom.ASTSyntaxErrorPropagator.visit(ASTSyntaxErrorPropagator.java:117)
>      at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:208)
>      <skipped>
> This is not a regressions, still a sensetive difference of EUT behaviour on Linux x86_64 from x86 platforms, so it better be fixed.

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


[jira] Commented: (HARMONY-5309) [EUT] 274 NPE in checkAndTagAsMalformed on Linux x86_64

Posted by "Pavel Afremov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-5309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12552882 ] 

Pavel Afremov commented on HARMONY-5309:
----------------------------------------

Evaluating of Jited code in the place of NullPointer Exception throwing, shows that bug is in JET. JET generate incorrect offset for switch table in the case when switch value is large and fits in 32 bits, but offset in the table (value*8) doesn't fit in 32 bits.

In Our case following code is generated:
0x00002aaac347153e:     mov    0xfffffffffffffd88(%rbp),%r11d
0x00002aaac3471545:     cmp    $0x60000106,%r11d
0x00002aaac347154c:     jg     0x2aaac3471585
0x00002aaac3471552:     cmp    $0x600000cc,%r11d
0x00002aaac3471559:     jl     0x2aaac3471585
0x00002aaac347155f:     mov    $0x2aaac3078ad0,%rax
0x00002aaac3471569:     movslq %r11d,%r11
0x00002aaac347156c:     mov    0xfffffffffffff9a0(%rax,%r11,8),%rax
0x00002aaac3471574:     jmpq   *%rax

Where :
(gdb) i r r11
r11            0x600000f0       1610612976

0x600000f0 * 8 generates too large offset 

So SigSegv happened:
Program received signal SIGSEGV, Segmentation fault.
0x00002aaac347156c in ?? ()
0x2aaac347156c: mov    0xfffffffffffff9a0(%rax,%r11,8),%rax


> [EUT] 274 NPE in checkAndTagAsMalformed on Linux x86_64
> -------------------------------------------------------
>
>                 Key: HARMONY-5309
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5309
>             Project: Harmony
>          Issue Type: Bug
>          Components: App-Oriented Bug Reports
>         Environment: Linux / x86_64
>            Reporter: Vladimir Beliaev
>
> 274 tests from EUT suites failed with NPE in the same method on Linux x86_64:
>       java.lang.NullPointerException
>      at org.eclipse.jdt.core.dom.ASTSyntaxErrorPropagator.checkAndTagAsMalformed(ASTSyntaxErrorPropagator.java:34)
>      at org.eclipse.jdt.core.dom.ASTSyntaxErrorPropagator.visit(ASTSyntaxErrorPropagator.java:117)
>      at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:208)
>      <skipped>
> This is not a regressions, still a sensetive difference of EUT behaviour on Linux x86_64 from x86 platforms, so it better be fixed.

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


[jira] Commented: (HARMONY-5309) [EUT] 274 NPE in checkAndTagAsMalformed on Linux x86_64

Posted by "George Timoshenko (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-5309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12553247 ] 

George Timoshenko commented on HARMONY-5309:
--------------------------------------------

the patch is OK.

Don't you think this is better?

    int tmp = -jinst.low()*sizeof(void*); 
    const int LO_BOUND = INT_MIN; 
    const int UP_BOUND = INT_MAX; 
    if (LO_BOUND<=tmp && tmp<=UP_BOUND) 

or even:

   int tmp = -jinst.low()*sizeof(void*); 
   if (INT_MIN<=tmp && tmp<=INT_MAX) 


> [EUT] 274 NPE in checkAndTagAsMalformed on Linux x86_64
> -------------------------------------------------------
>
>                 Key: HARMONY-5309
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5309
>             Project: Harmony
>          Issue Type: Bug
>          Components: App-Oriented Bug Reports
>         Environment: Linux / x86_64
>            Reporter: Vladimir Beliaev
>         Attachments: HARMONY-5309_fix1.patch, SwitchTest.java
>
>
> 274 tests from EUT suites failed with NPE in the same method on Linux x86_64:
>       java.lang.NullPointerException
>      at org.eclipse.jdt.core.dom.ASTSyntaxErrorPropagator.checkAndTagAsMalformed(ASTSyntaxErrorPropagator.java:34)
>      at org.eclipse.jdt.core.dom.ASTSyntaxErrorPropagator.visit(ASTSyntaxErrorPropagator.java:117)
>      at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:208)
>      <skipped>
> This is not a regressions, still a sensetive difference of EUT behaviour on Linux x86_64 from x86 platforms, so it better be fixed.

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


[jira] Commented: (HARMONY-5309) [drlvm][jit][jet][EUT] 274 NPE in checkAndTagAsMalformed on Linux x86_64

Posted by "Pavel Afremov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-5309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12553441 ] 

Pavel Afremov commented on HARMONY-5309:
----------------------------------------

224 of 274 NPE are fixed. 50 are still exist.

> [drlvm][jit][jet][EUT] 274 NPE in checkAndTagAsMalformed on Linux x86_64
> ------------------------------------------------------------------------
>
>                 Key: HARMONY-5309
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5309
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Linux / x86_64
>            Reporter: Vladimir Beliaev
>            Assignee: Gregory Shimansky
>         Attachments: HARMONY-5309_fix1.patch, HARMONY-5309_fix2.patch, SwitchTest.java
>
>
> 274 tests from EUT suites failed with NPE in the same method on Linux x86_64:
>       java.lang.NullPointerException
>      at org.eclipse.jdt.core.dom.ASTSyntaxErrorPropagator.checkAndTagAsMalformed(ASTSyntaxErrorPropagator.java:34)
>      at org.eclipse.jdt.core.dom.ASTSyntaxErrorPropagator.visit(ASTSyntaxErrorPropagator.java:117)
>      at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:208)
>      <skipped>
> This is not a regressions, still a sensetive difference of EUT behaviour on Linux x86_64 from x86 platforms, so it better be fixed.

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


[jira] Commented: (HARMONY-5309) [drlvm][jit][jet][EUT] 274 NPE in checkAndTagAsMalformed on Linux x86_64

Posted by "Pavel Afremov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-5309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12553448 ] 

Pavel Afremov commented on HARMONY-5309:
----------------------------------------

The rest of 50 tests are fixed by changes from HARMONY-5305.

> [drlvm][jit][jet][EUT] 274 NPE in checkAndTagAsMalformed on Linux x86_64
> ------------------------------------------------------------------------
>
>                 Key: HARMONY-5309
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5309
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Linux / x86_64
>            Reporter: Vladimir Beliaev
>            Assignee: Gregory Shimansky
>         Attachments: HARMONY-5309_fix1.patch, HARMONY-5309_fix2.patch, SwitchTest.java
>
>
> 274 tests from EUT suites failed with NPE in the same method on Linux x86_64:
>       java.lang.NullPointerException
>      at org.eclipse.jdt.core.dom.ASTSyntaxErrorPropagator.checkAndTagAsMalformed(ASTSyntaxErrorPropagator.java:34)
>      at org.eclipse.jdt.core.dom.ASTSyntaxErrorPropagator.visit(ASTSyntaxErrorPropagator.java:117)
>      at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:208)
>      <skipped>
> This is not a regressions, still a sensetive difference of EUT behaviour on Linux x86_64 from x86 platforms, so it better be fixed.

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


[jira] Resolved: (HARMONY-5309) [drlvm][jit][jet][EUT] 274 NPE in checkAndTagAsMalformed on Linux x86_64

Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-5309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gregory Shimansky resolved HARMONY-5309.
----------------------------------------

    Resolution: Fixed
      Assignee: Gregory Shimansky

Patch is committed at 605614.

> [drlvm][jit][jet][EUT] 274 NPE in checkAndTagAsMalformed on Linux x86_64
> ------------------------------------------------------------------------
>
>                 Key: HARMONY-5309
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5309
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Linux / x86_64
>            Reporter: Vladimir Beliaev
>            Assignee: Gregory Shimansky
>         Attachments: HARMONY-5309_fix1.patch, SwitchTest.java
>
>
> 274 tests from EUT suites failed with NPE in the same method on Linux x86_64:
>       java.lang.NullPointerException
>      at org.eclipse.jdt.core.dom.ASTSyntaxErrorPropagator.checkAndTagAsMalformed(ASTSyntaxErrorPropagator.java:34)
>      at org.eclipse.jdt.core.dom.ASTSyntaxErrorPropagator.visit(ASTSyntaxErrorPropagator.java:117)
>      at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:208)
>      <skipped>
> This is not a regressions, still a sensetive difference of EUT behaviour on Linux x86_64 from x86 platforms, so it better be fixed.

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


[jira] Updated: (HARMONY-5309) [EUT] 274 NPE in checkAndTagAsMalformed on Linux x86_64

Posted by "Pavel Afremov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-5309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pavel Afremov updated HARMONY-5309:
-----------------------------------

    Attachment: HARMONY-5309_fix1.patch

I found source of the bug. It is in not correct on 100 % ceck in JET
cr_br.cpp line 233:

    int tmp = -jinst.low()/sizeof(void*);
    const int LO_BOUND = INT_MIN/(int)sizeof(void*);
    const int UP_BOUND = INT_MAX/(int)sizeof(void*);
    if (!(LO_BOUND<=tmp && tmp<=UP_BOUND)) 

right check should looks like 

    int tmp = -jinst.low();
    const int LO_BOUND = INT_MIN/(int)sizeof(void*);
    const int UP_BOUND = INT_MAX/(int)sizeof(void*);
    if (!(LO_BOUND<=tmp && tmp<=UP_BOUND))

You can find fix in attached HARMONY-5309_fix1.patch.

But I'm not sure on 100% and review is required. Also this check is not reqired for x86-32 platfor. There right offset should be calculated aotomaticly for any value of jinst.low(), because 32 bits overflow.


> [EUT] 274 NPE in checkAndTagAsMalformed on Linux x86_64
> -------------------------------------------------------
>
>                 Key: HARMONY-5309
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5309
>             Project: Harmony
>          Issue Type: Bug
>          Components: App-Oriented Bug Reports
>         Environment: Linux / x86_64
>            Reporter: Vladimir Beliaev
>         Attachments: HARMONY-5309_fix1.patch, SwitchTest.java
>
>
> 274 tests from EUT suites failed with NPE in the same method on Linux x86_64:
>       java.lang.NullPointerException
>      at org.eclipse.jdt.core.dom.ASTSyntaxErrorPropagator.checkAndTagAsMalformed(ASTSyntaxErrorPropagator.java:34)
>      at org.eclipse.jdt.core.dom.ASTSyntaxErrorPropagator.visit(ASTSyntaxErrorPropagator.java:117)
>      at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:208)
>      <skipped>
> This is not a regressions, still a sensetive difference of EUT behaviour on Linux x86_64 from x86 platforms, so it better be fixed.

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


[jira] Commented: (HARMONY-5309) [drlvm][jit][jet][EUT] 274 NPE in checkAndTagAsMalformed on Linux x86_64

Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-5309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12553355 ] 

Gregory Shimansky commented on HARMONY-5309:
--------------------------------------------

Please note, the test is taken from Eclipse code, so it cannot be included into Harmony code base.

> [drlvm][jit][jet][EUT] 274 NPE in checkAndTagAsMalformed on Linux x86_64
> ------------------------------------------------------------------------
>
>                 Key: HARMONY-5309
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5309
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Linux / x86_64
>            Reporter: Vladimir Beliaev
>         Attachments: HARMONY-5309_fix1.patch, SwitchTest.java
>
>
> 274 tests from EUT suites failed with NPE in the same method on Linux x86_64:
>       java.lang.NullPointerException
>      at org.eclipse.jdt.core.dom.ASTSyntaxErrorPropagator.checkAndTagAsMalformed(ASTSyntaxErrorPropagator.java:34)
>      at org.eclipse.jdt.core.dom.ASTSyntaxErrorPropagator.visit(ASTSyntaxErrorPropagator.java:117)
>      at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:208)
>      <skipped>
> This is not a regressions, still a sensetive difference of EUT behaviour on Linux x86_64 from x86 platforms, so it better be fixed.

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


[jira] Commented: (HARMONY-5309) [EUT] 274 NPE in checkAndTagAsMalformed on Linux x86_64

Posted by "Vladimir Beliaev (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-5309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12551528 ] 

Vladimir Beliaev commented on HARMONY-5309:
-------------------------------------------

To reproduce the issue:

1. download to current directory eclipse-Automated-Tests-3.3.zip and eclipse-SDK-3.3-linux-gtk-x86_64.tar.gz from http://download.eclipse.org/eclipse/downloads/drops/R-3.3-200706251500/ 

2. execute the following (change <HARMONY_JDK_HOME> to your path): 

# prepare resources 
unzip eclipse-Automated-Tests-3.3.zip 
cd eclipse-testing 
unzip eclipse-junit-tests-I20070625-1500.zip
tar xzf ../eclipse-SDK-3.3-linux-gtk-x86_64.tar.gz

# execute the script below:
export JAVA_HOME=<HARMONY_JDK_HOME>
export PATH=$JAVA_HOME/bin:$PATH

${JAVA_HOME}/bin/java \
        -showversion \
        -jar eclipse/plugins/org.eclipse.equinox.launcher_1.0.0.v20070606.jar \
        -application org.eclipse.test.coretestapplication \
        -dev bin \
        -data workspace \
        formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,log.xml \
        -testpluginname org.eclipse.jdt.core.tests.model \
        -classname org.eclipse.jdt.core.tests.dom.RunAllTests \
        2>&1 | tee log.txt

See the results in log.xml (and log.txt).

> [EUT] 274 NPE in checkAndTagAsMalformed on Linux x86_64
> -------------------------------------------------------
>
>                 Key: HARMONY-5309
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5309
>             Project: Harmony
>          Issue Type: Bug
>          Components: App-Oriented Bug Reports
>         Environment: Linux / x86_64
>            Reporter: Vladimir Beliaev
>
> 274 tests from EUT suites failed with NPE in the same method on Linux x86_64:
>       java.lang.NullPointerException
>      at org.eclipse.jdt.core.dom.ASTSyntaxErrorPropagator.checkAndTagAsMalformed(ASTSyntaxErrorPropagator.java:34)
>      at org.eclipse.jdt.core.dom.ASTSyntaxErrorPropagator.visit(ASTSyntaxErrorPropagator.java:117)
>      at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:208)
>      <skipped>
> This is not a regressions, still a sensetive difference of EUT behaviour on Linux x86_64 from x86 platforms, so it better be fixed.

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