You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Pavel Pervov (JIRA)" <ji...@apache.org> on 2006/11/03 15:09:17 UTC
[jira] Updated: (HARMONY-2010) [drlvm] Infinite recursion in
vectored exception handler in debug VM in hardware exception with direction
flag set
[ http://issues.apache.org/jira/browse/HARMONY-2010?page=all ]
Pavel Pervov updated HARMONY-2010:
----------------------------------
Patch Info: [Patch Available]
> [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: exception_wrapper.patch, 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