You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Oliver Deakin (JIRA)" <ji...@apache.org> on 2007/06/04 14:32:36 UTC

[jira] Created: (HARMONY-4038) [drlvm] Assertion when launching vm with basic launcher

[drlvm] Assertion when launching vm with basic launcher
-------------------------------------------------------

                 Key: HARMONY-4038
                 URL: https://issues.apache.org/jira/browse/HARMONY-4038
             Project: Harmony
          Issue Type: Bug
          Components: DRLVM
         Environment: Windows XP 32bit
            Reporter: Oliver Deakin


This issue has been discussed on the dev@ mailing list [1]. When launching DRLVM with a basic JNI launcher (I will attach the launcher to this JIRA) an assertion is hit:

  Debug Assertion Failed!
  Program: C:\harmony\temp\jnitest\simpleLaunchFederated.exe
  File: dbgheap.c
  Line: 1132
  Expression: _CrtIsValidHeapPointer(pUserData) 

There is also an error message:

  EM: Can't read configuration from './client.emconf' 

Windbg tells me that the stack trace at the point of assertion is:

 ntdll!DbgBreakPoint
 ntdll!RtlpBreakPointHeap+0x28
 ntdll!RtlpValidateHeapEntry+0x113
 ntdll!RtlValidateHeap+0xe0
 kernel32!HeapValidate+0x14
 em!_CrtIsValidHeapPointer+0xa4 [f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c @ 1807]
 em!_free_dbg_lk+0x102 [f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c @ 1132]
 em!_free_dbg+0x41 [f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c @ 1070]
 em!operator delete+0xaa [f:\vs70builds\3077\vc\crtbld\crt\src\dbgdel.cpp @ 54]
 em!std::allocator<char>::deallocate+0x17 [c:\program files\microsoft visual studio .net 2003\vc7\include\xmemory @ 132]
 em!std::basic_string<char,std::char_traits<char>,std::allocator<char> >::_Tidy+0x66 [c:\program files\microsoft visual studio .net 2003\vc7\include\xstring @ 1519]
 em!std::basic_string<char,std::char_traits<char>,std::allocator<char> >::~basic_string<char,std::char_traits<char>,std::allocator<char> >+0x1a [c:\program files\microsoft visual studio .net 2003\vc7\include\xstring @ 458]
 em!LogParams::~LogParams+0x44 [c:\harmony\svn-checkouts\federated\working_vm\vm\port\include\logparams.h @ 54]
 em!readFile+0x54b [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 332]
 em!DrlEMImpl::readConfiguration+0x366 [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 355]
 em!DrlEMImpl::init+0x48 [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 364]
 em!DrlEMFactory::createAndInitEMInstance+0xa9 [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 55]
 em!CreateInstance+0x3c [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\em_intf.cpp @ 132]
 harmonyvm!CmCreateInstance+0xac [c:\harmony\svn-checkouts\federated\working_vm\vm\vmstart\src\compmgr\component_manager_impl.cpp @ 584]
 harmonyvm!process_properties_dlls+0x1bd [c:\harmony\svn-checkouts\federated\working_vm\vm\vmcore\src\init\vm_init.cpp @ 135]


[1] http://mail-archives.apache.org/mod_mbox/harmony-dev/200705.mbox/%3c465ECCE1.5070906@googlemail.com%3e

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


[jira] Updated: (HARMONY-4038) [drlvm][init] Assertion when launching vm with basic launcher

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

Pavel Pervov updated HARMONY-4038:
----------------------------------

    Attachment: java_home_and_o_a_h_vm_vmdir_fix.patch

The patch modifies determination of java.home and org.apache.harmony.vm.vmdir properties.
With this patch simpleLaunch works just fine.

> [drlvm][init] Assertion when launching vm with basic launcher
> -------------------------------------------------------------
>
>                 Key: HARMONY-4038
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4038
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows XP 32bit
>            Reporter: Oliver Deakin
>         Attachments: java_home_and_o_a_h_vm_vmdir_fix.patch, simpleLaunch.c
>
>
> This issue has been discussed on the dev@ mailing list [1]. When launching DRLVM with a basic JNI launcher (I will attach the launcher to this JIRA) an assertion is hit:
>   Debug Assertion Failed!
>   Program: C:\harmony\temp\jnitest\simpleLaunchFederated.exe
>   File: dbgheap.c
>   Line: 1132
>   Expression: _CrtIsValidHeapPointer(pUserData) 
> There is also an error message:
>   EM: Can't read configuration from './client.emconf' 
> Windbg tells me that the stack trace at the point of assertion is:
>  ntdll!DbgBreakPoint
>  ntdll!RtlpBreakPointHeap+0x28
>  ntdll!RtlpValidateHeapEntry+0x113
>  ntdll!RtlValidateHeap+0xe0
>  kernel32!HeapValidate+0x14
>  em!_CrtIsValidHeapPointer+0xa4 [f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c @ 1807]
>  em!_free_dbg_lk+0x102 [f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c @ 1132]
>  em!_free_dbg+0x41 [f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c @ 1070]
>  em!operator delete+0xaa [f:\vs70builds\3077\vc\crtbld\crt\src\dbgdel.cpp @ 54]
>  em!std::allocator<char>::deallocate+0x17 [c:\program files\microsoft visual studio .net 2003\vc7\include\xmemory @ 132]
>  em!std::basic_string<char,std::char_traits<char>,std::allocator<char> >::_Tidy+0x66 [c:\program files\microsoft visual studio .net 2003\vc7\include\xstring @ 1519]
>  em!std::basic_string<char,std::char_traits<char>,std::allocator<char> >::~basic_string<char,std::char_traits<char>,std::allocator<char> >+0x1a [c:\program files\microsoft visual studio .net 2003\vc7\include\xstring @ 458]
>  em!LogParams::~LogParams+0x44 [c:\harmony\svn-checkouts\federated\working_vm\vm\port\include\logparams.h @ 54]
>  em!readFile+0x54b [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 332]
>  em!DrlEMImpl::readConfiguration+0x366 [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 355]
>  em!DrlEMImpl::init+0x48 [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 364]
>  em!DrlEMFactory::createAndInitEMInstance+0xa9 [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 55]
>  em!CreateInstance+0x3c [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\em_intf.cpp @ 132]
>  harmonyvm!CmCreateInstance+0xac [c:\harmony\svn-checkouts\federated\working_vm\vm\vmstart\src\compmgr\component_manager_impl.cpp @ 584]
>  harmonyvm!process_properties_dlls+0x1bd [c:\harmony\svn-checkouts\federated\working_vm\vm\vmcore\src\init\vm_init.cpp @ 135]
> [1] http://mail-archives.apache.org/mod_mbox/harmony-dev/200705.mbox/%3c465ECCE1.5070906@googlemail.com%3e

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


[jira] Commented: (HARMONY-4038) [drlvm][init] Assertion when launching vm with basic launcher

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

Pavel Pervov commented on HARMONY-4038:
---------------------------------------

This bug will not show after HARMONY-4063 is committed. This assertion can be reproduced though if 'client.emconf' or 'jitrino.dll' is removed.

> [drlvm][init] Assertion when launching vm with basic launcher
> -------------------------------------------------------------
>
>                 Key: HARMONY-4038
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4038
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows XP 32bit
>            Reporter: Oliver Deakin
>         Attachments: simpleLaunch.c
>
>
> This issue has been discussed on the dev@ mailing list [1]. When launching DRLVM with a basic JNI launcher (I will attach the launcher to this JIRA) an assertion is hit:
>   Debug Assertion Failed!
>   Program: C:\harmony\temp\jnitest\simpleLaunchFederated.exe
>   File: dbgheap.c
>   Line: 1132
>   Expression: _CrtIsValidHeapPointer(pUserData) 
> There is also an error message:
>   EM: Can't read configuration from './client.emconf' 
> Windbg tells me that the stack trace at the point of assertion is:
>  ntdll!DbgBreakPoint
>  ntdll!RtlpBreakPointHeap+0x28
>  ntdll!RtlpValidateHeapEntry+0x113
>  ntdll!RtlValidateHeap+0xe0
>  kernel32!HeapValidate+0x14
>  em!_CrtIsValidHeapPointer+0xa4 [f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c @ 1807]
>  em!_free_dbg_lk+0x102 [f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c @ 1132]
>  em!_free_dbg+0x41 [f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c @ 1070]
>  em!operator delete+0xaa [f:\vs70builds\3077\vc\crtbld\crt\src\dbgdel.cpp @ 54]
>  em!std::allocator<char>::deallocate+0x17 [c:\program files\microsoft visual studio .net 2003\vc7\include\xmemory @ 132]
>  em!std::basic_string<char,std::char_traits<char>,std::allocator<char> >::_Tidy+0x66 [c:\program files\microsoft visual studio .net 2003\vc7\include\xstring @ 1519]
>  em!std::basic_string<char,std::char_traits<char>,std::allocator<char> >::~basic_string<char,std::char_traits<char>,std::allocator<char> >+0x1a [c:\program files\microsoft visual studio .net 2003\vc7\include\xstring @ 458]
>  em!LogParams::~LogParams+0x44 [c:\harmony\svn-checkouts\federated\working_vm\vm\port\include\logparams.h @ 54]
>  em!readFile+0x54b [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 332]
>  em!DrlEMImpl::readConfiguration+0x366 [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 355]
>  em!DrlEMImpl::init+0x48 [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 364]
>  em!DrlEMFactory::createAndInitEMInstance+0xa9 [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 55]
>  em!CreateInstance+0x3c [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\em_intf.cpp @ 132]
>  harmonyvm!CmCreateInstance+0xac [c:\harmony\svn-checkouts\federated\working_vm\vm\vmstart\src\compmgr\component_manager_impl.cpp @ 584]
>  harmonyvm!process_properties_dlls+0x1bd [c:\harmony\svn-checkouts\federated\working_vm\vm\vmcore\src\init\vm_init.cpp @ 135]
> [1] http://mail-archives.apache.org/mod_mbox/harmony-dev/200705.mbox/%3c465ECCE1.5070906@googlemail.com%3e

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


[jira] Commented: (HARMONY-4038) [drlvm][init] Assertion when launching vm with basic launcher

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

Pavel Pervov commented on HARMONY-4038:
---------------------------------------

Agree on o.a.h.b.c.p. Will let luni initialize it.

Actually, HARMONY-4063 is not related to what is going on here: this is just side effect of not setting o.a.h.vm.vmdir properly. I'll attach the fix for that to HARMONY-4063 and will look at this issue later on.

> [drlvm][init] Assertion when launching vm with basic launcher
> -------------------------------------------------------------
>
>                 Key: HARMONY-4038
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4038
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows XP 32bit
>            Reporter: Oliver Deakin
>         Attachments: simpleLaunch.c
>
>
> This issue has been discussed on the dev@ mailing list [1]. When launching DRLVM with a basic JNI launcher (I will attach the launcher to this JIRA) an assertion is hit:
>   Debug Assertion Failed!
>   Program: C:\harmony\temp\jnitest\simpleLaunchFederated.exe
>   File: dbgheap.c
>   Line: 1132
>   Expression: _CrtIsValidHeapPointer(pUserData) 
> There is also an error message:
>   EM: Can't read configuration from './client.emconf' 
> Windbg tells me that the stack trace at the point of assertion is:
>  ntdll!DbgBreakPoint
>  ntdll!RtlpBreakPointHeap+0x28
>  ntdll!RtlpValidateHeapEntry+0x113
>  ntdll!RtlValidateHeap+0xe0
>  kernel32!HeapValidate+0x14
>  em!_CrtIsValidHeapPointer+0xa4 [f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c @ 1807]
>  em!_free_dbg_lk+0x102 [f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c @ 1132]
>  em!_free_dbg+0x41 [f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c @ 1070]
>  em!operator delete+0xaa [f:\vs70builds\3077\vc\crtbld\crt\src\dbgdel.cpp @ 54]
>  em!std::allocator<char>::deallocate+0x17 [c:\program files\microsoft visual studio .net 2003\vc7\include\xmemory @ 132]
>  em!std::basic_string<char,std::char_traits<char>,std::allocator<char> >::_Tidy+0x66 [c:\program files\microsoft visual studio .net 2003\vc7\include\xstring @ 1519]
>  em!std::basic_string<char,std::char_traits<char>,std::allocator<char> >::~basic_string<char,std::char_traits<char>,std::allocator<char> >+0x1a [c:\program files\microsoft visual studio .net 2003\vc7\include\xstring @ 458]
>  em!LogParams::~LogParams+0x44 [c:\harmony\svn-checkouts\federated\working_vm\vm\port\include\logparams.h @ 54]
>  em!readFile+0x54b [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 332]
>  em!DrlEMImpl::readConfiguration+0x366 [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 355]
>  em!DrlEMImpl::init+0x48 [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 364]
>  em!DrlEMFactory::createAndInitEMInstance+0xa9 [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 55]
>  em!CreateInstance+0x3c [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\em_intf.cpp @ 132]
>  harmonyvm!CmCreateInstance+0xac [c:\harmony\svn-checkouts\federated\working_vm\vm\vmstart\src\compmgr\component_manager_impl.cpp @ 584]
>  harmonyvm!process_properties_dlls+0x1bd [c:\harmony\svn-checkouts\federated\working_vm\vm\vmcore\src\init\vm_init.cpp @ 135]
> [1] http://mail-archives.apache.org/mod_mbox/harmony-dev/200705.mbox/%3c465ECCE1.5070906@googlemail.com%3e

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


[jira] Commented: (HARMONY-4038) [drlvm][init] Assertion when launching vm with basic launcher

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

Oliver Deakin commented on HARMONY-4038:
----------------------------------------

Thanks Pavel, Alexey and Gregory. I just checked out a fresh federated build and was able to sucessfully run simpleLaunch.c, so as far as I am concerned this bug is fixed.

> [drlvm][init] Assertion when launching vm with basic launcher
> -------------------------------------------------------------
>
>                 Key: HARMONY-4038
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4038
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows XP 32bit
>            Reporter: Oliver Deakin
>            Assignee: Gregory Shimansky
>         Attachments: java_home_and_o_a_h_vm_vmdir_fix.patch, simpleLaunch.c
>
>
> This issue has been discussed on the dev@ mailing list [1]. When launching DRLVM with a basic JNI launcher (I will attach the launcher to this JIRA) an assertion is hit:
>   Debug Assertion Failed!
>   Program: C:\harmony\temp\jnitest\simpleLaunchFederated.exe
>   File: dbgheap.c
>   Line: 1132
>   Expression: _CrtIsValidHeapPointer(pUserData) 
> There is also an error message:
>   EM: Can't read configuration from './client.emconf' 
> Windbg tells me that the stack trace at the point of assertion is:
>  ntdll!DbgBreakPoint
>  ntdll!RtlpBreakPointHeap+0x28
>  ntdll!RtlpValidateHeapEntry+0x113
>  ntdll!RtlValidateHeap+0xe0
>  kernel32!HeapValidate+0x14
>  em!_CrtIsValidHeapPointer+0xa4 [f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c @ 1807]
>  em!_free_dbg_lk+0x102 [f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c @ 1132]
>  em!_free_dbg+0x41 [f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c @ 1070]
>  em!operator delete+0xaa [f:\vs70builds\3077\vc\crtbld\crt\src\dbgdel.cpp @ 54]
>  em!std::allocator<char>::deallocate+0x17 [c:\program files\microsoft visual studio .net 2003\vc7\include\xmemory @ 132]
>  em!std::basic_string<char,std::char_traits<char>,std::allocator<char> >::_Tidy+0x66 [c:\program files\microsoft visual studio .net 2003\vc7\include\xstring @ 1519]
>  em!std::basic_string<char,std::char_traits<char>,std::allocator<char> >::~basic_string<char,std::char_traits<char>,std::allocator<char> >+0x1a [c:\program files\microsoft visual studio .net 2003\vc7\include\xstring @ 458]
>  em!LogParams::~LogParams+0x44 [c:\harmony\svn-checkouts\federated\working_vm\vm\port\include\logparams.h @ 54]
>  em!readFile+0x54b [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 332]
>  em!DrlEMImpl::readConfiguration+0x366 [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 355]
>  em!DrlEMImpl::init+0x48 [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 364]
>  em!DrlEMFactory::createAndInitEMInstance+0xa9 [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 55]
>  em!CreateInstance+0x3c [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\em_intf.cpp @ 132]
>  harmonyvm!CmCreateInstance+0xac [c:\harmony\svn-checkouts\federated\working_vm\vm\vmstart\src\compmgr\component_manager_impl.cpp @ 584]
>  harmonyvm!process_properties_dlls+0x1bd [c:\harmony\svn-checkouts\federated\working_vm\vm\vmcore\src\init\vm_init.cpp @ 135]
> [1] http://mail-archives.apache.org/mod_mbox/harmony-dev/200705.mbox/%3c465ECCE1.5070906@googlemail.com%3e

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


[jira] Updated: (HARMONY-4038) [drlvm] Assertion when launching vm with basic launcher

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

Oliver Deakin updated HARMONY-4038:
-----------------------------------

    Attachment: simpleLaunch.c

A simple JNI launcher that creates a VM, then tries to run the class file specified as its first command line argument (defaults to HelloWorld if none specified) and runs its main() method.

> [drlvm] Assertion when launching vm with basic launcher
> -------------------------------------------------------
>
>                 Key: HARMONY-4038
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4038
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows XP 32bit
>            Reporter: Oliver Deakin
>         Attachments: simpleLaunch.c
>
>
> This issue has been discussed on the dev@ mailing list [1]. When launching DRLVM with a basic JNI launcher (I will attach the launcher to this JIRA) an assertion is hit:
>   Debug Assertion Failed!
>   Program: C:\harmony\temp\jnitest\simpleLaunchFederated.exe
>   File: dbgheap.c
>   Line: 1132
>   Expression: _CrtIsValidHeapPointer(pUserData) 
> There is also an error message:
>   EM: Can't read configuration from './client.emconf' 
> Windbg tells me that the stack trace at the point of assertion is:
>  ntdll!DbgBreakPoint
>  ntdll!RtlpBreakPointHeap+0x28
>  ntdll!RtlpValidateHeapEntry+0x113
>  ntdll!RtlValidateHeap+0xe0
>  kernel32!HeapValidate+0x14
>  em!_CrtIsValidHeapPointer+0xa4 [f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c @ 1807]
>  em!_free_dbg_lk+0x102 [f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c @ 1132]
>  em!_free_dbg+0x41 [f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c @ 1070]
>  em!operator delete+0xaa [f:\vs70builds\3077\vc\crtbld\crt\src\dbgdel.cpp @ 54]
>  em!std::allocator<char>::deallocate+0x17 [c:\program files\microsoft visual studio .net 2003\vc7\include\xmemory @ 132]
>  em!std::basic_string<char,std::char_traits<char>,std::allocator<char> >::_Tidy+0x66 [c:\program files\microsoft visual studio .net 2003\vc7\include\xstring @ 1519]
>  em!std::basic_string<char,std::char_traits<char>,std::allocator<char> >::~basic_string<char,std::char_traits<char>,std::allocator<char> >+0x1a [c:\program files\microsoft visual studio .net 2003\vc7\include\xstring @ 458]
>  em!LogParams::~LogParams+0x44 [c:\harmony\svn-checkouts\federated\working_vm\vm\port\include\logparams.h @ 54]
>  em!readFile+0x54b [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 332]
>  em!DrlEMImpl::readConfiguration+0x366 [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 355]
>  em!DrlEMImpl::init+0x48 [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 364]
>  em!DrlEMFactory::createAndInitEMInstance+0xa9 [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 55]
>  em!CreateInstance+0x3c [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\em_intf.cpp @ 132]
>  harmonyvm!CmCreateInstance+0xac [c:\harmony\svn-checkouts\federated\working_vm\vm\vmstart\src\compmgr\component_manager_impl.cpp @ 584]
>  harmonyvm!process_properties_dlls+0x1bd [c:\harmony\svn-checkouts\federated\working_vm\vm\vmcore\src\init\vm_init.cpp @ 135]
> [1] http://mail-archives.apache.org/mod_mbox/harmony-dev/200705.mbox/%3c465ECCE1.5070906@googlemail.com%3e

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


[jira] Updated: (HARMONY-4038) [drlvm][init] Assertion when launching vm with basic launcher

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

Gregory Shimansky updated HARMONY-4038:
---------------------------------------

    Summary: [drlvm][init] Assertion when launching vm with basic launcher  (was: [drlvm] Assertion when launching vm with basic launcher)

> [drlvm][init] Assertion when launching vm with basic launcher
> -------------------------------------------------------------
>
>                 Key: HARMONY-4038
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4038
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows XP 32bit
>            Reporter: Oliver Deakin
>         Attachments: simpleLaunch.c
>
>
> This issue has been discussed on the dev@ mailing list [1]. When launching DRLVM with a basic JNI launcher (I will attach the launcher to this JIRA) an assertion is hit:
>   Debug Assertion Failed!
>   Program: C:\harmony\temp\jnitest\simpleLaunchFederated.exe
>   File: dbgheap.c
>   Line: 1132
>   Expression: _CrtIsValidHeapPointer(pUserData) 
> There is also an error message:
>   EM: Can't read configuration from './client.emconf' 
> Windbg tells me that the stack trace at the point of assertion is:
>  ntdll!DbgBreakPoint
>  ntdll!RtlpBreakPointHeap+0x28
>  ntdll!RtlpValidateHeapEntry+0x113
>  ntdll!RtlValidateHeap+0xe0
>  kernel32!HeapValidate+0x14
>  em!_CrtIsValidHeapPointer+0xa4 [f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c @ 1807]
>  em!_free_dbg_lk+0x102 [f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c @ 1132]
>  em!_free_dbg+0x41 [f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c @ 1070]
>  em!operator delete+0xaa [f:\vs70builds\3077\vc\crtbld\crt\src\dbgdel.cpp @ 54]
>  em!std::allocator<char>::deallocate+0x17 [c:\program files\microsoft visual studio .net 2003\vc7\include\xmemory @ 132]
>  em!std::basic_string<char,std::char_traits<char>,std::allocator<char> >::_Tidy+0x66 [c:\program files\microsoft visual studio .net 2003\vc7\include\xstring @ 1519]
>  em!std::basic_string<char,std::char_traits<char>,std::allocator<char> >::~basic_string<char,std::char_traits<char>,std::allocator<char> >+0x1a [c:\program files\microsoft visual studio .net 2003\vc7\include\xstring @ 458]
>  em!LogParams::~LogParams+0x44 [c:\harmony\svn-checkouts\federated\working_vm\vm\port\include\logparams.h @ 54]
>  em!readFile+0x54b [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 332]
>  em!DrlEMImpl::readConfiguration+0x366 [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 355]
>  em!DrlEMImpl::init+0x48 [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 364]
>  em!DrlEMFactory::createAndInitEMInstance+0xa9 [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 55]
>  em!CreateInstance+0x3c [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\em_intf.cpp @ 132]
>  harmonyvm!CmCreateInstance+0xac [c:\harmony\svn-checkouts\federated\working_vm\vm\vmstart\src\compmgr\component_manager_impl.cpp @ 584]
>  harmonyvm!process_properties_dlls+0x1bd [c:\harmony\svn-checkouts\federated\working_vm\vm\vmcore\src\init\vm_init.cpp @ 135]
> [1] http://mail-archives.apache.org/mod_mbox/harmony-dev/200705.mbox/%3c465ECCE1.5070906@googlemail.com%3e

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


[jira] Closed: (HARMONY-4038) [drlvm][init] Assertion when launching vm with basic launcher

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

Gregory Shimansky closed HARMONY-4038.
--------------------------------------


VERIFIED

> [drlvm][init] Assertion when launching vm with basic launcher
> -------------------------------------------------------------
>
>                 Key: HARMONY-4038
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4038
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows XP 32bit
>            Reporter: Oliver Deakin
>            Assignee: Gregory Shimansky
>         Attachments: java_home_and_o_a_h_vm_vmdir_fix.patch, simpleLaunch.c
>
>
> This issue has been discussed on the dev@ mailing list [1]. When launching DRLVM with a basic JNI launcher (I will attach the launcher to this JIRA) an assertion is hit:
>   Debug Assertion Failed!
>   Program: C:\harmony\temp\jnitest\simpleLaunchFederated.exe
>   File: dbgheap.c
>   Line: 1132
>   Expression: _CrtIsValidHeapPointer(pUserData) 
> There is also an error message:
>   EM: Can't read configuration from './client.emconf' 
> Windbg tells me that the stack trace at the point of assertion is:
>  ntdll!DbgBreakPoint
>  ntdll!RtlpBreakPointHeap+0x28
>  ntdll!RtlpValidateHeapEntry+0x113
>  ntdll!RtlValidateHeap+0xe0
>  kernel32!HeapValidate+0x14
>  em!_CrtIsValidHeapPointer+0xa4 [f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c @ 1807]
>  em!_free_dbg_lk+0x102 [f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c @ 1132]
>  em!_free_dbg+0x41 [f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c @ 1070]
>  em!operator delete+0xaa [f:\vs70builds\3077\vc\crtbld\crt\src\dbgdel.cpp @ 54]
>  em!std::allocator<char>::deallocate+0x17 [c:\program files\microsoft visual studio .net 2003\vc7\include\xmemory @ 132]
>  em!std::basic_string<char,std::char_traits<char>,std::allocator<char> >::_Tidy+0x66 [c:\program files\microsoft visual studio .net 2003\vc7\include\xstring @ 1519]
>  em!std::basic_string<char,std::char_traits<char>,std::allocator<char> >::~basic_string<char,std::char_traits<char>,std::allocator<char> >+0x1a [c:\program files\microsoft visual studio .net 2003\vc7\include\xstring @ 458]
>  em!LogParams::~LogParams+0x44 [c:\harmony\svn-checkouts\federated\working_vm\vm\port\include\logparams.h @ 54]
>  em!readFile+0x54b [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 332]
>  em!DrlEMImpl::readConfiguration+0x366 [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 355]
>  em!DrlEMImpl::init+0x48 [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 364]
>  em!DrlEMFactory::createAndInitEMInstance+0xa9 [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 55]
>  em!CreateInstance+0x3c [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\em_intf.cpp @ 132]
>  harmonyvm!CmCreateInstance+0xac [c:\harmony\svn-checkouts\federated\working_vm\vm\vmstart\src\compmgr\component_manager_impl.cpp @ 584]
>  harmonyvm!process_properties_dlls+0x1bd [c:\harmony\svn-checkouts\federated\working_vm\vm\vmcore\src\init\vm_init.cpp @ 135]
> [1] http://mail-archives.apache.org/mod_mbox/harmony-dev/200705.mbox/%3c465ECCE1.5070906@googlemail.com%3e

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


[jira] Commented: (HARMONY-4038) [drlvm][init] Assertion when launching vm with basic launcher

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

Pavel Pervov commented on HARMONY-4038:
---------------------------------------

DRLVM should determine its location automatically, not depending on o.a.h.b.c.p and o.a.h.vm.vmdir.
I'm working on solving this problem on supported platforms.

> [drlvm][init] Assertion when launching vm with basic launcher
> -------------------------------------------------------------
>
>                 Key: HARMONY-4038
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4038
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows XP 32bit
>            Reporter: Oliver Deakin
>         Attachments: simpleLaunch.c
>
>
> This issue has been discussed on the dev@ mailing list [1]. When launching DRLVM with a basic JNI launcher (I will attach the launcher to this JIRA) an assertion is hit:
>   Debug Assertion Failed!
>   Program: C:\harmony\temp\jnitest\simpleLaunchFederated.exe
>   File: dbgheap.c
>   Line: 1132
>   Expression: _CrtIsValidHeapPointer(pUserData) 
> There is also an error message:
>   EM: Can't read configuration from './client.emconf' 
> Windbg tells me that the stack trace at the point of assertion is:
>  ntdll!DbgBreakPoint
>  ntdll!RtlpBreakPointHeap+0x28
>  ntdll!RtlpValidateHeapEntry+0x113
>  ntdll!RtlValidateHeap+0xe0
>  kernel32!HeapValidate+0x14
>  em!_CrtIsValidHeapPointer+0xa4 [f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c @ 1807]
>  em!_free_dbg_lk+0x102 [f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c @ 1132]
>  em!_free_dbg+0x41 [f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c @ 1070]
>  em!operator delete+0xaa [f:\vs70builds\3077\vc\crtbld\crt\src\dbgdel.cpp @ 54]
>  em!std::allocator<char>::deallocate+0x17 [c:\program files\microsoft visual studio .net 2003\vc7\include\xmemory @ 132]
>  em!std::basic_string<char,std::char_traits<char>,std::allocator<char> >::_Tidy+0x66 [c:\program files\microsoft visual studio .net 2003\vc7\include\xstring @ 1519]
>  em!std::basic_string<char,std::char_traits<char>,std::allocator<char> >::~basic_string<char,std::char_traits<char>,std::allocator<char> >+0x1a [c:\program files\microsoft visual studio .net 2003\vc7\include\xstring @ 458]
>  em!LogParams::~LogParams+0x44 [c:\harmony\svn-checkouts\federated\working_vm\vm\port\include\logparams.h @ 54]
>  em!readFile+0x54b [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 332]
>  em!DrlEMImpl::readConfiguration+0x366 [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 355]
>  em!DrlEMImpl::init+0x48 [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 364]
>  em!DrlEMFactory::createAndInitEMInstance+0xa9 [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 55]
>  em!CreateInstance+0x3c [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\em_intf.cpp @ 132]
>  harmonyvm!CmCreateInstance+0xac [c:\harmony\svn-checkouts\federated\working_vm\vm\vmstart\src\compmgr\component_manager_impl.cpp @ 584]
>  harmonyvm!process_properties_dlls+0x1bd [c:\harmony\svn-checkouts\federated\working_vm\vm\vmcore\src\init\vm_init.cpp @ 135]
> [1] http://mail-archives.apache.org/mod_mbox/harmony-dev/200705.mbox/%3c465ECCE1.5070906@googlemail.com%3e

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


[jira] Resolved: (HARMONY-4038) [drlvm][init] Assertion when launching vm with basic launcher

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

Gregory Shimansky resolved HARMONY-4038.
----------------------------------------

    Resolution: Fixed

Patch is applied at 564114. Attached simple launcher works for me on windows and linux. Linking with it on linux should be done by adding -licuuc -licudata -lhythr in addition to -lharmonyvm.

Please verify that the bug is fixed for you.

> [drlvm][init] Assertion when launching vm with basic launcher
> -------------------------------------------------------------
>
>                 Key: HARMONY-4038
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4038
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows XP 32bit
>            Reporter: Oliver Deakin
>            Assignee: Gregory Shimansky
>         Attachments: java_home_and_o_a_h_vm_vmdir_fix.patch, simpleLaunch.c
>
>
> This issue has been discussed on the dev@ mailing list [1]. When launching DRLVM with a basic JNI launcher (I will attach the launcher to this JIRA) an assertion is hit:
>   Debug Assertion Failed!
>   Program: C:\harmony\temp\jnitest\simpleLaunchFederated.exe
>   File: dbgheap.c
>   Line: 1132
>   Expression: _CrtIsValidHeapPointer(pUserData) 
> There is also an error message:
>   EM: Can't read configuration from './client.emconf' 
> Windbg tells me that the stack trace at the point of assertion is:
>  ntdll!DbgBreakPoint
>  ntdll!RtlpBreakPointHeap+0x28
>  ntdll!RtlpValidateHeapEntry+0x113
>  ntdll!RtlValidateHeap+0xe0
>  kernel32!HeapValidate+0x14
>  em!_CrtIsValidHeapPointer+0xa4 [f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c @ 1807]
>  em!_free_dbg_lk+0x102 [f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c @ 1132]
>  em!_free_dbg+0x41 [f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c @ 1070]
>  em!operator delete+0xaa [f:\vs70builds\3077\vc\crtbld\crt\src\dbgdel.cpp @ 54]
>  em!std::allocator<char>::deallocate+0x17 [c:\program files\microsoft visual studio .net 2003\vc7\include\xmemory @ 132]
>  em!std::basic_string<char,std::char_traits<char>,std::allocator<char> >::_Tidy+0x66 [c:\program files\microsoft visual studio .net 2003\vc7\include\xstring @ 1519]
>  em!std::basic_string<char,std::char_traits<char>,std::allocator<char> >::~basic_string<char,std::char_traits<char>,std::allocator<char> >+0x1a [c:\program files\microsoft visual studio .net 2003\vc7\include\xstring @ 458]
>  em!LogParams::~LogParams+0x44 [c:\harmony\svn-checkouts\federated\working_vm\vm\port\include\logparams.h @ 54]
>  em!readFile+0x54b [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 332]
>  em!DrlEMImpl::readConfiguration+0x366 [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 355]
>  em!DrlEMImpl::init+0x48 [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 364]
>  em!DrlEMFactory::createAndInitEMInstance+0xa9 [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 55]
>  em!CreateInstance+0x3c [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\em_intf.cpp @ 132]
>  harmonyvm!CmCreateInstance+0xac [c:\harmony\svn-checkouts\federated\working_vm\vm\vmstart\src\compmgr\component_manager_impl.cpp @ 584]
>  harmonyvm!process_properties_dlls+0x1bd [c:\harmony\svn-checkouts\federated\working_vm\vm\vmcore\src\init\vm_init.cpp @ 135]
> [1] http://mail-archives.apache.org/mod_mbox/harmony-dev/200705.mbox/%3c465ECCE1.5070906@googlemail.com%3e

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


[jira] Assigned: (HARMONY-4038) [drlvm][init] Assertion when launching vm with basic launcher

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

Gregory Shimansky reassigned HARMONY-4038:
------------------------------------------

    Assignee: Gregory Shimansky

> [drlvm][init] Assertion when launching vm with basic launcher
> -------------------------------------------------------------
>
>                 Key: HARMONY-4038
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4038
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows XP 32bit
>            Reporter: Oliver Deakin
>            Assignee: Gregory Shimansky
>         Attachments: java_home_and_o_a_h_vm_vmdir_fix.patch, simpleLaunch.c
>
>
> This issue has been discussed on the dev@ mailing list [1]. When launching DRLVM with a basic JNI launcher (I will attach the launcher to this JIRA) an assertion is hit:
>   Debug Assertion Failed!
>   Program: C:\harmony\temp\jnitest\simpleLaunchFederated.exe
>   File: dbgheap.c
>   Line: 1132
>   Expression: _CrtIsValidHeapPointer(pUserData) 
> There is also an error message:
>   EM: Can't read configuration from './client.emconf' 
> Windbg tells me that the stack trace at the point of assertion is:
>  ntdll!DbgBreakPoint
>  ntdll!RtlpBreakPointHeap+0x28
>  ntdll!RtlpValidateHeapEntry+0x113
>  ntdll!RtlValidateHeap+0xe0
>  kernel32!HeapValidate+0x14
>  em!_CrtIsValidHeapPointer+0xa4 [f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c @ 1807]
>  em!_free_dbg_lk+0x102 [f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c @ 1132]
>  em!_free_dbg+0x41 [f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c @ 1070]
>  em!operator delete+0xaa [f:\vs70builds\3077\vc\crtbld\crt\src\dbgdel.cpp @ 54]
>  em!std::allocator<char>::deallocate+0x17 [c:\program files\microsoft visual studio .net 2003\vc7\include\xmemory @ 132]
>  em!std::basic_string<char,std::char_traits<char>,std::allocator<char> >::_Tidy+0x66 [c:\program files\microsoft visual studio .net 2003\vc7\include\xstring @ 1519]
>  em!std::basic_string<char,std::char_traits<char>,std::allocator<char> >::~basic_string<char,std::char_traits<char>,std::allocator<char> >+0x1a [c:\program files\microsoft visual studio .net 2003\vc7\include\xstring @ 458]
>  em!LogParams::~LogParams+0x44 [c:\harmony\svn-checkouts\federated\working_vm\vm\port\include\logparams.h @ 54]
>  em!readFile+0x54b [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 332]
>  em!DrlEMImpl::readConfiguration+0x366 [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 355]
>  em!DrlEMImpl::init+0x48 [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 364]
>  em!DrlEMFactory::createAndInitEMInstance+0xa9 [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 55]
>  em!CreateInstance+0x3c [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\em_intf.cpp @ 132]
>  harmonyvm!CmCreateInstance+0xac [c:\harmony\svn-checkouts\federated\working_vm\vm\vmstart\src\compmgr\component_manager_impl.cpp @ 584]
>  harmonyvm!process_properties_dlls+0x1bd [c:\harmony\svn-checkouts\federated\working_vm\vm\vmcore\src\init\vm_init.cpp @ 135]
> [1] http://mail-archives.apache.org/mod_mbox/harmony-dev/200705.mbox/%3c465ECCE1.5070906@googlemail.com%3e

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


[jira] Commented: (HARMONY-4038) [drlvm][init] Assertion when launching vm with basic launcher

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

Alexey Varlamov commented on HARMONY-4038:
------------------------------------------

Pavel, I agree about org.apache.harmony.vm.vmdir. 
But o.a.h.b.c.p is different, it is not set via cmd-line and I believe we should rely on classlib providing it.

> [drlvm][init] Assertion when launching vm with basic launcher
> -------------------------------------------------------------
>
>                 Key: HARMONY-4038
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4038
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows XP 32bit
>            Reporter: Oliver Deakin
>         Attachments: simpleLaunch.c
>
>
> This issue has been discussed on the dev@ mailing list [1]. When launching DRLVM with a basic JNI launcher (I will attach the launcher to this JIRA) an assertion is hit:
>   Debug Assertion Failed!
>   Program: C:\harmony\temp\jnitest\simpleLaunchFederated.exe
>   File: dbgheap.c
>   Line: 1132
>   Expression: _CrtIsValidHeapPointer(pUserData) 
> There is also an error message:
>   EM: Can't read configuration from './client.emconf' 
> Windbg tells me that the stack trace at the point of assertion is:
>  ntdll!DbgBreakPoint
>  ntdll!RtlpBreakPointHeap+0x28
>  ntdll!RtlpValidateHeapEntry+0x113
>  ntdll!RtlValidateHeap+0xe0
>  kernel32!HeapValidate+0x14
>  em!_CrtIsValidHeapPointer+0xa4 [f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c @ 1807]
>  em!_free_dbg_lk+0x102 [f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c @ 1132]
>  em!_free_dbg+0x41 [f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c @ 1070]
>  em!operator delete+0xaa [f:\vs70builds\3077\vc\crtbld\crt\src\dbgdel.cpp @ 54]
>  em!std::allocator<char>::deallocate+0x17 [c:\program files\microsoft visual studio .net 2003\vc7\include\xmemory @ 132]
>  em!std::basic_string<char,std::char_traits<char>,std::allocator<char> >::_Tidy+0x66 [c:\program files\microsoft visual studio .net 2003\vc7\include\xstring @ 1519]
>  em!std::basic_string<char,std::char_traits<char>,std::allocator<char> >::~basic_string<char,std::char_traits<char>,std::allocator<char> >+0x1a [c:\program files\microsoft visual studio .net 2003\vc7\include\xstring @ 458]
>  em!LogParams::~LogParams+0x44 [c:\harmony\svn-checkouts\federated\working_vm\vm\port\include\logparams.h @ 54]
>  em!readFile+0x54b [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 332]
>  em!DrlEMImpl::readConfiguration+0x366 [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 355]
>  em!DrlEMImpl::init+0x48 [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 364]
>  em!DrlEMFactory::createAndInitEMInstance+0xa9 [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\drlemimpl.cpp @ 55]
>  em!CreateInstance+0x3c [c:\harmony\svn-checkouts\federated\working_vm\vm\em\src\em_intf.cpp @ 132]
>  harmonyvm!CmCreateInstance+0xac [c:\harmony\svn-checkouts\federated\working_vm\vm\vmstart\src\compmgr\component_manager_impl.cpp @ 584]
>  harmonyvm!process_properties_dlls+0x1bd [c:\harmony\svn-checkouts\federated\working_vm\vm\vmcore\src\init\vm_init.cpp @ 135]
> [1] http://mail-archives.apache.org/mod_mbox/harmony-dev/200705.mbox/%3c465ECCE1.5070906@googlemail.com%3e

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