You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexey Varlamov (JIRA)" <ji...@apache.org> on 2007/10/19 08:55:50 UTC

[jira] Created: (HARMONY-4973) [drlvm][build] use dynamic version of C runtime

[drlvm][build] use dynamic version of C runtime
-----------------------------------------------

                 Key: HARMONY-4973
                 URL: https://issues.apache.org/jira/browse/HARMONY-4973
             Project: Harmony
          Issue Type: Bug
          Components: DRLVM
         Environment: All Windows
            Reporter: Alexey Varlamov
         Attachments: H4973.diff

The DRLVM should link with dynamic C runtime libraries (MSVCRxx.DLL), to be consistent with classlib and to share single runtime instance between all VM dlls. In particular this would help to avoid various problems like HARMONY-3772 and HARMONY-4715. Also see MSDN reference [1]  which warns against mixing different runtimes.

[1] http://msdn2.microsoft.com/en-us/library/abx4dbyh(VS.80).aspx


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


[jira] Assigned: (HARMONY-4973) [drlvm][build] use dynamic version of C runtime

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

Alexey Varlamov reassigned HARMONY-4973:
----------------------------------------

    Assignee: Alexey Varlamov

> [drlvm][build] use dynamic version of C runtime
> -----------------------------------------------
>
>                 Key: HARMONY-4973
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4973
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: All Windows
>            Reporter: Alexey Varlamov
>            Assignee: Alexey Varlamov
>         Attachments: H4973.diff
>
>
> The DRLVM should link with dynamic C runtime libraries (MSVCRxx.DLL), to be consistent with classlib and to share single runtime instance between all VM dlls. In particular this would help to avoid various problems like HARMONY-3772 and HARMONY-4715. Also see MSDN reference [1]  which warns against mixing different runtimes.
> [1] http://msdn2.microsoft.com/en-us/library/abx4dbyh(VS.80).aspx

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


[jira] Resolved: (HARMONY-4973) [drlvm][build] use dynamic version of C runtime

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

Alexey Varlamov resolved HARMONY-4973.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 5.0M4

Since we recently resolved several memory corruption bugs, I retried to fix this issue and finally succeeded :)
Fix applied at revision: 602080.

> [drlvm][build] use dynamic version of C runtime
> -----------------------------------------------
>
>                 Key: HARMONY-4973
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4973
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: All Windows
>            Reporter: Alexey Varlamov
>            Assignee: Alexey Varlamov
>             Fix For: 5.0M4
>
>         Attachments: H4973.diff
>
>
> The DRLVM should link with dynamic C runtime libraries (MSVCRxx.DLL), to be consistent with classlib and to share single runtime instance between all VM dlls. In particular this would help to avoid various problems like HARMONY-3772 and HARMONY-4715. Also see MSDN reference [1]  which warns against mixing different runtimes.
> [1] http://msdn2.microsoft.com/en-us/library/abx4dbyh(VS.80).aspx

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


[jira] Updated: (HARMONY-4973) [drlvm][build] use dynamic version of C runtime

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

Alexey Varlamov updated HARMONY-4973:
-------------------------------------

    Attachment: H4973.diff

> [drlvm][build] use dynamic version of C runtime
> -----------------------------------------------
>
>                 Key: HARMONY-4973
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4973
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: All Windows
>            Reporter: Alexey Varlamov
>         Attachments: H4973.diff
>
>
> The DRLVM should link with dynamic C runtime libraries (MSVCRxx.DLL), to be consistent with classlib and to share single runtime instance between all VM dlls. In particular this would help to avoid various problems like HARMONY-3772 and HARMONY-4715. Also see MSDN reference [1]  which warns against mixing different runtimes.
> [1] http://msdn2.microsoft.com/en-us/library/abx4dbyh(VS.80).aspx

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


[jira] Commented: (HARMONY-4973) [drlvm][build] use dynamic version of C runtime

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

Alexey Varlamov commented on HARMONY-4973:
------------------------------------------

Forgot to add, these errors can be seen on release build only.

> [drlvm][build] use dynamic version of C runtime
> -----------------------------------------------
>
>                 Key: HARMONY-4973
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4973
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: All Windows
>            Reporter: Alexey Varlamov
>         Attachments: H4973.diff
>
>
> The DRLVM should link with dynamic C runtime libraries (MSVCRxx.DLL), to be consistent with classlib and to share single runtime instance between all VM dlls. In particular this would help to avoid various problems like HARMONY-3772 and HARMONY-4715. Also see MSDN reference [1]  which warns against mixing different runtimes.
> [1] http://msdn2.microsoft.com/en-us/library/abx4dbyh(VS.80).aspx

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


[jira] Commented: (HARMONY-4973) [drlvm][build] use dynamic version of C runtime

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

Alexey Varlamov commented on HARMONY-4973:
------------------------------------------

I tried the patch on several x86 and x86_64 hosts, it works for both release and debug mode. 
Unfortunately I'm getting intermittent spurious shutdown errors on some machines with the suggested patch. VM works normally but exit code is 128 sometimes. When running in debugger (break on first chance exeption is enabled), it catches access violation errors during gc_gen shutdown, with strange backtraces pointing usually to log4cxx internals. Sensible part of stack is always this:

>	gc_gen.dll!space_desturct_blocks(Blocked_Space * space=0x00497b10)  Line 155 + 0x13	C++
gc_gen.dll!mspace_destruct(Mspace * mspace=0x00497b10)  Line 100	C++
gc_gen.dll!gc_gen_destruct(GC_Gen * gc_gen=0x004978f8)  Line 256	C++
gc_gen.dll!gc_wrapup()  Line 125	C++
harmonyvm.dll!Global_Env::~Global_Env()  Line 270	C++
harmonyvm.dll!DestroyJavaVM(JavaVM_External * vm=0x00432418)  Line 1490	C++
java.exe!invocation(HyPortLibrary * portLibrary=0x0013fbbc, int argc=0x00000003, char * * argv=0x0003cf70, unsigned int handle=0x00510000, int version=0x00010004, unsigned char ignoreUnrecognized='', char * mainClass=0x0003cef4, unsigned int classArg=0x00000002, char * propertiesFileName=0x00156628, int isStandaloneJar=0x00000000, char * vmdllsubdir=0x0013fb48)  Line 764	C
java.exe!gpProtectedMain(haCmdlineOptions * args=0x0013fb9c)  Line 391 + 0x33	C
java.exe!_main()  + 0x92	C
java.exe!mainCRTStartup()  Line 398 + 0xe	C
kernel32.dll!77e523cd() 	

> [drlvm][build] use dynamic version of C runtime
> -----------------------------------------------
>
>                 Key: HARMONY-4973
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4973
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: All Windows
>            Reporter: Alexey Varlamov
>         Attachments: H4973.diff
>
>
> The DRLVM should link with dynamic C runtime libraries (MSVCRxx.DLL), to be consistent with classlib and to share single runtime instance between all VM dlls. In particular this would help to avoid various problems like HARMONY-3772 and HARMONY-4715. Also see MSDN reference [1]  which warns against mixing different runtimes.
> [1] http://msdn2.microsoft.com/en-us/library/abx4dbyh(VS.80).aspx

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