harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Pervov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-2010) [drlvm] Infinite recursion in vectored exception handler in debug VM in hardware exception with direction flag set
Date Mon, 30 Oct 2006 15:59:20 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-2010?page=all ]

Pavel Pervov updated HARMONY-2010:
----------------------------------

    Attachment: memcpy.zip

Test to reproduce the failure.

To build:
1) javac Memcpy.java
2) cl -LD -I <path to JDK/include> Memcpy.cpp

To test:
<java> Memcpy

RIs generate crash reports, but DRLVM finishes silently.

> [drlvm] Infinite recursion in vectored exception handler in debug VM in hardware exception
with direction flag set
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2010
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2010
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: ia32, msvc 2003, debug
>            Reporter: Pavel Pervov
>         Attachments: memcpy.zip
>
>
> When hardware exception (like access violation) occurs in code where direction flag is
set (after 'std' instruction), exception handler will fall into infinite recursion eventually
finishing VM without any output.
> The example of such code is implementation of memcpy in Microsoft Visual C++:
> -excerpt begin-
>     std
>     rep movsd
>     cld
> -excerpt end-
> Possible solution would be to wrap exception handler into a code which will save flags,
clear direction flag, and then execute the handler.

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

        

Mime
View raw message