harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Varlamov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-4973) [drlvm][build] use dynamic version of C runtime
Date Fri, 19 Oct 2007 07:06:52 GMT

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


Mime
View raw message