You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Naveen Neelakantam (JIRA)" <ji...@apache.org> on 2007/02/22 00:56:05 UTC

[jira] Created: (HARMONY-3222) assertion fires with DaCapo eclipse (jitrino built in debug)

assertion fires with DaCapo eclipse (jitrino built in debug)
------------------------------------------------------------

                 Key: HARMONY-3222
                 URL: https://issues.apache.org/jira/browse/HARMONY-3222
             Project: Harmony
          Issue Type: Bug
          Components: DRLVM
         Environment: RHEL4 update 4, core 2 duo, gcc 4.1.0
            Reporter: Naveen Neelakantam


To see the assert, jitrino must be built in debug mode and the -Xem:server option must be used

> java -showversion -Xem:server -jar dacapo-2006-10-MR1.jar eclipse
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 = r510120, (Feb 21 2007), Linux/ia32/gcc 4.1.0, debug build
http://incubator.apache.org/harmony
===== DaCapo eclipse starting =====
<setting up workspace...>
<creating projects..............................................................>
<running tests at level 0...>
<performing build tests...>
        org.apache.ant (not open) opening cleaning building
        org.junit (not open) opening cleaning building
java: /home/zilles/neelakan/Sandbox/Harmony/test/working_vm/vm/jitrino/src/codegenerator/ia32/Ia32Inst.cpp:92: void Jitrino::Ia32::Opnd::setMemOpndSubOpnd(Jitrino::Ia32::MemOpndSubOpndKind, Jitrino::Ia32::Opnd*): Assertion `(so != MemOpndSubOpndKind_Displacement) || (2147483647 >= opnd->getImmValue() && (-2147483647 - 1) <= opnd->getImmValue())' failed.


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


[jira] Resolved: (HARMONY-3222) [drlvm][jit] assertion fires with DaCapo eclipse (jitrino built in debug)

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

Alexey Varlamov resolved HARMONY-3222.
--------------------------------------

    Resolution: Fixed

Fixed at r512134, thanks!

> [drlvm][jit] assertion fires with DaCapo eclipse (jitrino built in debug)
> -------------------------------------------------------------------------
>
>                 Key: HARMONY-3222
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3222
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: RHEL4 update 4, core 2 duo, gcc 4.1.0
>            Reporter: Naveen Neelakantam
>         Assigned To: Alexey Varlamov
>         Attachments: imm_cast_bug.patch
>
>
> To see the assert, jitrino must be built in debug mode and the -Xem:server option must be used
> > java -showversion -Xem:server -jar dacapo-2006-10-MR1.jar eclipse
> 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 = r510120, (Feb 21 2007), Linux/ia32/gcc 4.1.0, debug build
> http://incubator.apache.org/harmony
> ===== DaCapo eclipse starting =====
> <setting up workspace...>
> <creating projects..............................................................>
> <running tests at level 0...>
> <performing build tests...>
>         org.apache.ant (not open) opening cleaning building
>         org.junit (not open) opening cleaning building
> java: /home/zilles/neelakan/Sandbox/Harmony/test/working_vm/vm/jitrino/src/codegenerator/ia32/Ia32Inst.cpp:92: void Jitrino::Ia32::Opnd::setMemOpndSubOpnd(Jitrino::Ia32::MemOpndSubOpndKind, Jitrino::Ia32::Opnd*): Assertion `(so != MemOpndSubOpndKind_Displacement) || (2147483647 >= opnd->getImmValue() && (-2147483647 - 1) <= opnd->getImmValue())' failed.

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


[jira] Assigned: (HARMONY-3222) assertion fires with DaCapo eclipse (jitrino built in debug)

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

Alexey Varlamov reassigned HARMONY-3222:
----------------------------------------

    Assignee: Alexey Varlamov

> assertion fires with DaCapo eclipse (jitrino built in debug)
> ------------------------------------------------------------
>
>                 Key: HARMONY-3222
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3222
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: RHEL4 update 4, core 2 duo, gcc 4.1.0
>            Reporter: Naveen Neelakantam
>         Assigned To: Alexey Varlamov
>         Attachments: imm_cast_bug.patch
>
>
> To see the assert, jitrino must be built in debug mode and the -Xem:server option must be used
> > java -showversion -Xem:server -jar dacapo-2006-10-MR1.jar eclipse
> 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 = r510120, (Feb 21 2007), Linux/ia32/gcc 4.1.0, debug build
> http://incubator.apache.org/harmony
> ===== DaCapo eclipse starting =====
> <setting up workspace...>
> <creating projects..............................................................>
> <running tests at level 0...>
> <performing build tests...>
>         org.apache.ant (not open) opening cleaning building
>         org.junit (not open) opening cleaning building
> java: /home/zilles/neelakan/Sandbox/Harmony/test/working_vm/vm/jitrino/src/codegenerator/ia32/Ia32Inst.cpp:92: void Jitrino::Ia32::Opnd::setMemOpndSubOpnd(Jitrino::Ia32::MemOpndSubOpndKind, Jitrino::Ia32::Opnd*): Assertion `(so != MemOpndSubOpndKind_Displacement) || (2147483647 >= opnd->getImmValue() && (-2147483647 - 1) <= opnd->getImmValue())' failed.

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


[jira] Commented: (HARMONY-3222) assertion fires with DaCapo eclipse (jitrino built in debug)

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

Naveen Neelakantam commented on HARMONY-3222:
---------------------------------------------

actually, the assert  also fires without the -Xem:server option:

>java -showversion -jar dacapo-2006-10-MR1.jar eclipse
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 = r510120, (Feb 21 2007), Linux/ia32/gcc 4.1.0, debug build
http://incubator.apache.org/harmony
===== DaCapo eclipse starting =====
<setting up workspace...>
<creating projects..............................................................>
<running tests at level 0...>
<performing build tests...>
        org.apache.ant (not open) opening cleaning building
        org.junit (not open) opening cleaning building
        org.eclipse.osgi (not open) opening cleaning building
<performing type hierarchy tests...>
        Hierarchy: org.eclipse.help.internal HelpPlugin
java: /home/zilles/neelakan/Sandbox/Harmony/test/working_vm/vm/jitrino/src/codegenerator/ia32/Ia32Inst.cpp:92: void Jitrino::Ia32::Opnd::setMemOpndSubOpnd(Jitrino::Ia32::MemOpndSubOpndKind, Jitrino::Ia32::Opnd*): Assertion `(so != MemOpndSubOpndKind_Displacement) || (2147483647 >= opnd->getImmValue() && (-2147483647 - 1) <= opnd->getImmValue())' failed.


> assertion fires with DaCapo eclipse (jitrino built in debug)
> ------------------------------------------------------------
>
>                 Key: HARMONY-3222
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3222
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: RHEL4 update 4, core 2 duo, gcc 4.1.0
>            Reporter: Naveen Neelakantam
>
> To see the assert, jitrino must be built in debug mode and the -Xem:server option must be used
> > java -showversion -Xem:server -jar dacapo-2006-10-MR1.jar eclipse
> 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 = r510120, (Feb 21 2007), Linux/ia32/gcc 4.1.0, debug build
> http://incubator.apache.org/harmony
> ===== DaCapo eclipse starting =====
> <setting up workspace...>
> <creating projects..............................................................>
> <running tests at level 0...>
> <performing build tests...>
>         org.apache.ant (not open) opening cleaning building
>         org.junit (not open) opening cleaning building
> java: /home/zilles/neelakan/Sandbox/Harmony/test/working_vm/vm/jitrino/src/codegenerator/ia32/Ia32Inst.cpp:92: void Jitrino::Ia32::Opnd::setMemOpndSubOpnd(Jitrino::Ia32::MemOpndSubOpndKind, Jitrino::Ia32::Opnd*): Assertion `(so != MemOpndSubOpndKind_Displacement) || (2147483647 >= opnd->getImmValue() && (-2147483647 - 1) <= opnd->getImmValue())' failed.

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


[jira] Closed: (HARMONY-3222) [drlvm][jit] assertion fires with DaCapo eclipse (jitrino built in debug)

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

Naveen Neelakantam closed HARMONY-3222.
---------------------------------------


I noticed that you fixed the IPF code selector as well.  :-)

Sorry about that, I just realized that my patch broke IPF, but you caught it.

All is well now.

> [drlvm][jit] assertion fires with DaCapo eclipse (jitrino built in debug)
> -------------------------------------------------------------------------
>
>                 Key: HARMONY-3222
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3222
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: RHEL4 update 4, core 2 duo, gcc 4.1.0
>            Reporter: Naveen Neelakantam
>         Assigned To: Alexey Varlamov
>         Attachments: imm_cast_bug.patch
>
>
> To see the assert, jitrino must be built in debug mode and the -Xem:server option must be used
> > java -showversion -Xem:server -jar dacapo-2006-10-MR1.jar eclipse
> 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 = r510120, (Feb 21 2007), Linux/ia32/gcc 4.1.0, debug build
> http://incubator.apache.org/harmony
> ===== DaCapo eclipse starting =====
> <setting up workspace...>
> <creating projects..............................................................>
> <running tests at level 0...>
> <performing build tests...>
>         org.apache.ant (not open) opening cleaning building
>         org.junit (not open) opening cleaning building
> java: /home/zilles/neelakan/Sandbox/Harmony/test/working_vm/vm/jitrino/src/codegenerator/ia32/Ia32Inst.cpp:92: void Jitrino::Ia32::Opnd::setMemOpndSubOpnd(Jitrino::Ia32::MemOpndSubOpndKind, Jitrino::Ia32::Opnd*): Assertion `(so != MemOpndSubOpndKind_Displacement) || (2147483647 >= opnd->getImmValue() && (-2147483647 - 1) <= opnd->getImmValue())' failed.

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


[jira] Updated: (HARMONY-3222) assertion fires with DaCapo eclipse (jitrino built in debug)

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

Naveen Neelakantam updated HARMONY-3222:
----------------------------------------

    Attachment: imm_cast_bug.patch

This patch (imm_cast_bug) fixes the issue.  The problem is with casting.  Basically the following was occuring:

in32 cast to uint32 cast to int64

As a result, negative constants would become large positive constants:

-1 cast to 4294967295 cast to 4294967295

If this casted value was used to dereference an array it would be multipled by the array element size (let's say 4),  which would exceed the maximum value that could fit in a 32-bit integer:

4294967295* 4 = 17179869180

> assertion fires with DaCapo eclipse (jitrino built in debug)
> ------------------------------------------------------------
>
>                 Key: HARMONY-3222
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3222
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: RHEL4 update 4, core 2 duo, gcc 4.1.0
>            Reporter: Naveen Neelakantam
>         Attachments: imm_cast_bug.patch
>
>
> To see the assert, jitrino must be built in debug mode and the -Xem:server option must be used
> > java -showversion -Xem:server -jar dacapo-2006-10-MR1.jar eclipse
> 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 = r510120, (Feb 21 2007), Linux/ia32/gcc 4.1.0, debug build
> http://incubator.apache.org/harmony
> ===== DaCapo eclipse starting =====
> <setting up workspace...>
> <creating projects..............................................................>
> <running tests at level 0...>
> <performing build tests...>
>         org.apache.ant (not open) opening cleaning building
>         org.junit (not open) opening cleaning building
> java: /home/zilles/neelakan/Sandbox/Harmony/test/working_vm/vm/jitrino/src/codegenerator/ia32/Ia32Inst.cpp:92: void Jitrino::Ia32::Opnd::setMemOpndSubOpnd(Jitrino::Ia32::MemOpndSubOpndKind, Jitrino::Ia32::Opnd*): Assertion `(so != MemOpndSubOpndKind_Displacement) || (2147483647 >= opnd->getImmValue() && (-2147483647 - 1) <= opnd->getImmValue())' failed.

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


[jira] Updated: (HARMONY-3222) assertion fires with DaCapo eclipse (jitrino built in debug)

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

Naveen Neelakantam updated HARMONY-3222:
----------------------------------------

    Estimated Complexity: Novice  (was: Unknown)
              Patch Info: [Patch Available]

> assertion fires with DaCapo eclipse (jitrino built in debug)
> ------------------------------------------------------------
>
>                 Key: HARMONY-3222
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3222
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: RHEL4 update 4, core 2 duo, gcc 4.1.0
>            Reporter: Naveen Neelakantam
>         Attachments: imm_cast_bug.patch
>
>
> To see the assert, jitrino must be built in debug mode and the -Xem:server option must be used
> > java -showversion -Xem:server -jar dacapo-2006-10-MR1.jar eclipse
> 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 = r510120, (Feb 21 2007), Linux/ia32/gcc 4.1.0, debug build
> http://incubator.apache.org/harmony
> ===== DaCapo eclipse starting =====
> <setting up workspace...>
> <creating projects..............................................................>
> <running tests at level 0...>
> <performing build tests...>
>         org.apache.ant (not open) opening cleaning building
>         org.junit (not open) opening cleaning building
> java: /home/zilles/neelakan/Sandbox/Harmony/test/working_vm/vm/jitrino/src/codegenerator/ia32/Ia32Inst.cpp:92: void Jitrino::Ia32::Opnd::setMemOpndSubOpnd(Jitrino::Ia32::MemOpndSubOpndKind, Jitrino::Ia32::Opnd*): Assertion `(so != MemOpndSubOpndKind_Displacement) || (2147483647 >= opnd->getImmValue() && (-2147483647 - 1) <= opnd->getImmValue())' failed.

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


[jira] Updated: (HARMONY-3222) [drlvm][jit] assertion fires with DaCapo eclipse (jitrino built in debug)

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

Alexey Varlamov updated HARMONY-3222:
-------------------------------------

    Summary: [drlvm][jit] assertion fires with DaCapo eclipse (jitrino built in debug)  (was: assertion fires with DaCapo eclipse (jitrino built in debug))

> [drlvm][jit] assertion fires with DaCapo eclipse (jitrino built in debug)
> -------------------------------------------------------------------------
>
>                 Key: HARMONY-3222
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3222
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: RHEL4 update 4, core 2 duo, gcc 4.1.0
>            Reporter: Naveen Neelakantam
>         Assigned To: Alexey Varlamov
>         Attachments: imm_cast_bug.patch
>
>
> To see the assert, jitrino must be built in debug mode and the -Xem:server option must be used
> > java -showversion -Xem:server -jar dacapo-2006-10-MR1.jar eclipse
> 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 = r510120, (Feb 21 2007), Linux/ia32/gcc 4.1.0, debug build
> http://incubator.apache.org/harmony
> ===== DaCapo eclipse starting =====
> <setting up workspace...>
> <creating projects..............................................................>
> <running tests at level 0...>
> <performing build tests...>
>         org.apache.ant (not open) opening cleaning building
>         org.junit (not open) opening cleaning building
> java: /home/zilles/neelakan/Sandbox/Harmony/test/working_vm/vm/jitrino/src/codegenerator/ia32/Ia32Inst.cpp:92: void Jitrino::Ia32::Opnd::setMemOpndSubOpnd(Jitrino::Ia32::MemOpndSubOpndKind, Jitrino::Ia32::Opnd*): Assertion `(so != MemOpndSubOpndKind_Displacement) || (2147483647 >= opnd->getImmValue() && (-2147483647 - 1) <= opnd->getImmValue())' failed.

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


[jira] Commented: (HARMONY-3222) assertion fires with DaCapo eclipse (jitrino built in debug)

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

Alexey Varlamov commented on HARMONY-3222:
------------------------------------------

Err, I made the very same fix - unfortunately was not able to comment and attach it yesterday due to JIRA outage. Anyway, nice to have this fixed - just surprised to find such defects this late.

> assertion fires with DaCapo eclipse (jitrino built in debug)
> ------------------------------------------------------------
>
>                 Key: HARMONY-3222
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3222
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: RHEL4 update 4, core 2 duo, gcc 4.1.0
>            Reporter: Naveen Neelakantam
>         Attachments: imm_cast_bug.patch
>
>
> To see the assert, jitrino must be built in debug mode and the -Xem:server option must be used
> > java -showversion -Xem:server -jar dacapo-2006-10-MR1.jar eclipse
> 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 = r510120, (Feb 21 2007), Linux/ia32/gcc 4.1.0, debug build
> http://incubator.apache.org/harmony
> ===== DaCapo eclipse starting =====
> <setting up workspace...>
> <creating projects..............................................................>
> <running tests at level 0...>
> <performing build tests...>
>         org.apache.ant (not open) opening cleaning building
>         org.junit (not open) opening cleaning building
> java: /home/zilles/neelakan/Sandbox/Harmony/test/working_vm/vm/jitrino/src/codegenerator/ia32/Ia32Inst.cpp:92: void Jitrino::Ia32::Opnd::setMemOpndSubOpnd(Jitrino::Ia32::MemOpndSubOpndKind, Jitrino::Ia32::Opnd*): Assertion `(so != MemOpndSubOpndKind_Displacement) || (2147483647 >= opnd->getImmValue() && (-2147483647 - 1) <= opnd->getImmValue())' failed.

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