harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gregory Shimansky (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-3585) [drlvm][jni] shutdown.TestFatalError fails on interpreter
Date Thu, 24 May 2007 15:29:16 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-3585?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Gregory Shimansky resolved HARMONY-3585.
----------------------------------------

    Resolution: Fixed

The patch changes interface with interpreter to pass file descriptor instead of FILE* to stack_dump
functions. This workarounds the problem on windows that recognizes stdout in different DLLs
differently.

Patch applied at 541322. The shutdown.TestFatalError test works on all platforms both on JIT
and interpreter.

> [drlvm][jni] shutdown.TestFatalError fails on interpreter
> ---------------------------------------------------------
>
>                 Key: HARMONY-3585
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3585
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows
>            Reporter: Pavel Rebriy
>         Assigned To: Gregory Shimansky
>         Attachments: shutdown_TestFatalError_exclude.patch
>
>
> Test shutdown.TestFatalError fails on interpreter after Gregory Shimansky commit revisions
525916 & 525918.
> Gregory changed interface between interpreter and vmcore component. Interpreter accepts
file stream from vmcore now. Interpreter fails when it uses "stdout" stream  from vmcore.
> The problem is in windows runtime. Interpreter library and vmcore library are linked
with their own static runtimes. That is "stdout" stream for vmcore differs from interpreter
one. Lock mechanism for "stdout" stream is different than file stream, so runtime perceives
what stream is passed as the parameter and calls file lock or "stdout" lock. If "stdout" stream
structure came from different library this check fails and runtime tries to call file lock
not "stdout" stream lock.
> The solution is correct build system to use dynamic runtime for all libraries in DRLVM
and classlib.
> The test shutdown.TestFatalError should be excluded from Windows system.

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


Mime
View raw message