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] Created: (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:53:22 GMT
[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


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