You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Roman S. Bushmanov (JIRA)" <ji...@apache.org> on 2007/06/06 11:50:26 UTC

[jira] Created: (HARMONY-4063) [drlvm][classloader] Crash in the classoader on BootstrapClassLoader initialization

[drlvm][classloader] Crash in the classoader on BootstrapClassLoader initialization
-----------------------------------------------------------------------------------

                 Key: HARMONY-4063
                 URL: https://issues.apache.org/jira/browse/HARMONY-4063
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Roman S. Bushmanov


To reproduce the issue, please compile the attached btest5014.java and and run Btest5014.
Note the attached test is a part of the Functional test suite (see HARMONY-3528).

The issue is reproduced on svn = r544496, (Jun  5 2007), Windows/ia32/msvc 1310, debug build

The callstack is as follows
harmonyvm.dll!strcat()  Line 173	Asm
harmonyvm.dll!BootstrapClassLoader::Initialize(ManagedObject * loader=0x00000000)  Line 1316 + 0xd	C++
harmonyvm.dll!bootstrap_initial_java_classes(Global_Env * vm_env=0x012c2100)  Line 301 + 0x15	C++
harmonyvm.dll!preload_classes(Global_Env * vm_env=0x012c2100)  Line 343 + 0x9	C++
harmonyvm.dll!vm_init1(JavaVM_Internal * java_vm=0x012c20e8, JavaVMInitArgs * vm_arguments=0x0013fa98)  Line 727 + 0x9	C++
harmonyvm.dll!JNI_CreateJavaVM(JavaVM_External * * p_vm=0x0013faa8, JNIEnv_External * * p_jni_env=0x0013fab0, void * args=0x0013fa98)  Line 499 + 0xd	C++
java.exe!invocation(HyPortLibrary * portLibrary=0x0013fbb8, int argc=4, char * * argv=0x003925b0, unsigned int handle=5308416, int version=65540, unsigned char ignoreUnrecognized='', char * mainClass=0x0039252a, unsigned int classArg=3, char * propertiesFileName=0x00157500, int isStandaloneJar=0, char * vmdllsubdir=0x0013fb44)  Line 668 + 0xf	C
java.exe!gpProtectedMain(haCmdlineOptions * args=0x0013fb90)  Line 391 + 0x33	C
java.exe!main(int argc=4, char * * argv=0x003925b0, char * * envp=0x00392b40)  Line 146 + 0xc	C
java.exe!mainCRTStartup()  Line 398 + 0xe	C
kernel32.dll!77e523cd() 	


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


[jira] Updated: (HARMONY-4063) [drlvm][classloader] Crash in the classoader on BootstrapClassLoader initialization

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

Gregory Shimansky updated HARMONY-4063:
---------------------------------------

    Patch Info: [Patch Available]

> [drlvm][classloader] Crash in the classoader on BootstrapClassLoader initialization
> -----------------------------------------------------------------------------------
>
>                 Key: HARMONY-4063
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4063
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Roman S. Bushmanov
>            Assignee: Gregory Shimansky
>         Attachments: Btest5014.java, H4063.patch
>
>
> To reproduce the issue, please compile the attached btest5014.java and and run Btest5014.
> Note the attached test is a part of the Functional test suite (see HARMONY-3528).
> The issue is reproduced on svn = r544496, (Jun  5 2007), Windows/ia32/msvc 1310, debug build
> The callstack is as follows
> harmonyvm.dll!strcat()  Line 173	Asm
> harmonyvm.dll!BootstrapClassLoader::Initialize(ManagedObject * loader=0x00000000)  Line 1316 + 0xd	C++
> harmonyvm.dll!bootstrap_initial_java_classes(Global_Env * vm_env=0x012c2100)  Line 301 + 0x15	C++
> harmonyvm.dll!preload_classes(Global_Env * vm_env=0x012c2100)  Line 343 + 0x9	C++
> harmonyvm.dll!vm_init1(JavaVM_Internal * java_vm=0x012c20e8, JavaVMInitArgs * vm_arguments=0x0013fa98)  Line 727 + 0x9	C++
> harmonyvm.dll!JNI_CreateJavaVM(JavaVM_External * * p_vm=0x0013faa8, JNIEnv_External * * p_jni_env=0x0013fab0, void * args=0x0013fa98)  Line 499 + 0xd	C++
> java.exe!invocation(HyPortLibrary * portLibrary=0x0013fbb8, int argc=4, char * * argv=0x003925b0, unsigned int handle=5308416, int version=65540, unsigned char ignoreUnrecognized='', char * mainClass=0x0039252a, unsigned int classArg=3, char * propertiesFileName=0x00157500, int isStandaloneJar=0, char * vmdllsubdir=0x0013fb44)  Line 668 + 0xf	C
> java.exe!gpProtectedMain(haCmdlineOptions * args=0x0013fb90)  Line 391 + 0x33	C
> java.exe!main(int argc=4, char * * argv=0x003925b0, char * * envp=0x00392b40)  Line 146 + 0xc	C
> java.exe!mainCRTStartup()  Line 398 + 0xe	C
> kernel32.dll!77e523cd() 	

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


[jira] Commented: (HARMONY-4063) [drlvm][classloader] Crash in the classoader on BootstrapClassLoader initialization

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

Gregory Shimansky commented on HARMONY-4063:
--------------------------------------------

I cannot believe that such bug may be caused by the attached test. If VM crashes in classloader initialization, it shall crash in all cases. I think your crash is caused by an incorrect build. I tried your test both on windows and linux and it works without any problems for me.

Please try again after clean rebuild.

> [drlvm][classloader] Crash in the classoader on BootstrapClassLoader initialization
> -----------------------------------------------------------------------------------
>
>                 Key: HARMONY-4063
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4063
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Roman S. Bushmanov
>         Attachments: Btest5014.java
>
>
> To reproduce the issue, please compile the attached btest5014.java and and run Btest5014.
> Note the attached test is a part of the Functional test suite (see HARMONY-3528).
> The issue is reproduced on svn = r544496, (Jun  5 2007), Windows/ia32/msvc 1310, debug build
> The callstack is as follows
> harmonyvm.dll!strcat()  Line 173	Asm
> harmonyvm.dll!BootstrapClassLoader::Initialize(ManagedObject * loader=0x00000000)  Line 1316 + 0xd	C++
> harmonyvm.dll!bootstrap_initial_java_classes(Global_Env * vm_env=0x012c2100)  Line 301 + 0x15	C++
> harmonyvm.dll!preload_classes(Global_Env * vm_env=0x012c2100)  Line 343 + 0x9	C++
> harmonyvm.dll!vm_init1(JavaVM_Internal * java_vm=0x012c20e8, JavaVMInitArgs * vm_arguments=0x0013fa98)  Line 727 + 0x9	C++
> harmonyvm.dll!JNI_CreateJavaVM(JavaVM_External * * p_vm=0x0013faa8, JNIEnv_External * * p_jni_env=0x0013fab0, void * args=0x0013fa98)  Line 499 + 0xd	C++
> java.exe!invocation(HyPortLibrary * portLibrary=0x0013fbb8, int argc=4, char * * argv=0x003925b0, unsigned int handle=5308416, int version=65540, unsigned char ignoreUnrecognized='', char * mainClass=0x0039252a, unsigned int classArg=3, char * propertiesFileName=0x00157500, int isStandaloneJar=0, char * vmdllsubdir=0x0013fb44)  Line 668 + 0xf	C
> java.exe!gpProtectedMain(haCmdlineOptions * args=0x0013fb90)  Line 391 + 0x33	C
> java.exe!main(int argc=4, char * * argv=0x003925b0, char * * envp=0x00392b40)  Line 146 + 0xc	C
> java.exe!mainCRTStartup()  Line 398 + 0xe	C
> kernel32.dll!77e523cd() 	

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


[jira] Resolved: (HARMONY-4063) [drlvm][classloader] Crash in the classoader on BootstrapClassLoader initialization

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

Gregory Shimansky resolved HARMONY-4063.
----------------------------------------

    Resolution: Fixed

Patch applied at 548406. Please check that the bug is fixed for you.

> [drlvm][classloader] Crash in the classoader on BootstrapClassLoader initialization
> -----------------------------------------------------------------------------------
>
>                 Key: HARMONY-4063
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4063
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Roman S. Bushmanov
>            Assignee: Gregory Shimansky
>         Attachments: Btest5014.java, H4063.patch, H4063.patch, H4063.patch, H4063_nocrash.patch
>
>
> To reproduce the issue, please compile the attached btest5014.java and and run Btest5014.
> Note the attached test is a part of the Functional test suite (see HARMONY-3528).
> The issue is reproduced on svn = r544496, (Jun  5 2007), Windows/ia32/msvc 1310, debug build
> The callstack is as follows
> harmonyvm.dll!strcat()  Line 173	Asm
> harmonyvm.dll!BootstrapClassLoader::Initialize(ManagedObject * loader=0x00000000)  Line 1316 + 0xd	C++
> harmonyvm.dll!bootstrap_initial_java_classes(Global_Env * vm_env=0x012c2100)  Line 301 + 0x15	C++
> harmonyvm.dll!preload_classes(Global_Env * vm_env=0x012c2100)  Line 343 + 0x9	C++
> harmonyvm.dll!vm_init1(JavaVM_Internal * java_vm=0x012c20e8, JavaVMInitArgs * vm_arguments=0x0013fa98)  Line 727 + 0x9	C++
> harmonyvm.dll!JNI_CreateJavaVM(JavaVM_External * * p_vm=0x0013faa8, JNIEnv_External * * p_jni_env=0x0013fab0, void * args=0x0013fa98)  Line 499 + 0xd	C++
> java.exe!invocation(HyPortLibrary * portLibrary=0x0013fbb8, int argc=4, char * * argv=0x003925b0, unsigned int handle=5308416, int version=65540, unsigned char ignoreUnrecognized='', char * mainClass=0x0039252a, unsigned int classArg=3, char * propertiesFileName=0x00157500, int isStandaloneJar=0, char * vmdllsubdir=0x0013fb44)  Line 668 + 0xf	C
> java.exe!gpProtectedMain(haCmdlineOptions * args=0x0013fb90)  Line 391 + 0x33	C
> java.exe!main(int argc=4, char * * argv=0x003925b0, char * * envp=0x00392b40)  Line 146 + 0xc	C
> java.exe!mainCRTStartup()  Line 398 + 0xe	C
> kernel32.dll!77e523cd() 	

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


[jira] Commented: (HARMONY-4063) [drlvm][classloader] Crash in the classoader on BootstrapClassLoader initialization

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

Pavel Pervov commented on HARMONY-4063:
---------------------------------------

And this is not the final one. VMI is VM library, not classlib.

> [drlvm][classloader] Crash in the classoader on BootstrapClassLoader initialization
> -----------------------------------------------------------------------------------
>
>                 Key: HARMONY-4063
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4063
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Roman S. Bushmanov
>            Assignee: Gregory Shimansky
>         Attachments: Btest5014.java, H4063.patch, H4063.patch, H4063.patch
>
>
> To reproduce the issue, please compile the attached btest5014.java and and run Btest5014.
> Note the attached test is a part of the Functional test suite (see HARMONY-3528).
> The issue is reproduced on svn = r544496, (Jun  5 2007), Windows/ia32/msvc 1310, debug build
> The callstack is as follows
> harmonyvm.dll!strcat()  Line 173	Asm
> harmonyvm.dll!BootstrapClassLoader::Initialize(ManagedObject * loader=0x00000000)  Line 1316 + 0xd	C++
> harmonyvm.dll!bootstrap_initial_java_classes(Global_Env * vm_env=0x012c2100)  Line 301 + 0x15	C++
> harmonyvm.dll!preload_classes(Global_Env * vm_env=0x012c2100)  Line 343 + 0x9	C++
> harmonyvm.dll!vm_init1(JavaVM_Internal * java_vm=0x012c20e8, JavaVMInitArgs * vm_arguments=0x0013fa98)  Line 727 + 0x9	C++
> harmonyvm.dll!JNI_CreateJavaVM(JavaVM_External * * p_vm=0x0013faa8, JNIEnv_External * * p_jni_env=0x0013fab0, void * args=0x0013fa98)  Line 499 + 0xd	C++
> java.exe!invocation(HyPortLibrary * portLibrary=0x0013fbb8, int argc=4, char * * argv=0x003925b0, unsigned int handle=5308416, int version=65540, unsigned char ignoreUnrecognized='', char * mainClass=0x0039252a, unsigned int classArg=3, char * propertiesFileName=0x00157500, int isStandaloneJar=0, char * vmdllsubdir=0x0013fb44)  Line 668 + 0xf	C
> java.exe!gpProtectedMain(haCmdlineOptions * args=0x0013fb90)  Line 391 + 0x33	C
> java.exe!main(int argc=4, char * * argv=0x003925b0, char * * envp=0x00392b40)  Line 146 + 0xc	C
> java.exe!mainCRTStartup()  Line 398 + 0xe	C
> kernel32.dll!77e523cd() 	

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


[jira] Closed: (HARMONY-4063) [drlvm][classloader] Crash in the classoader on BootstrapClassLoader initialization

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

Roman S. Bushmanov closed HARMONY-4063.
---------------------------------------


The issue is not reproduced on r549715.
Thanks for the fix.

> [drlvm][classloader] Crash in the classoader on BootstrapClassLoader initialization
> -----------------------------------------------------------------------------------
>
>                 Key: HARMONY-4063
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4063
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Roman S. Bushmanov
>            Assignee: Gregory Shimansky
>         Attachments: Btest5014.java, H4063.patch, H4063.patch, H4063.patch, H4063_nocrash.patch
>
>
> To reproduce the issue, please compile the attached btest5014.java and and run Btest5014.
> Note the attached test is a part of the Functional test suite (see HARMONY-3528).
> The issue is reproduced on svn = r544496, (Jun  5 2007), Windows/ia32/msvc 1310, debug build
> The callstack is as follows
> harmonyvm.dll!strcat()  Line 173	Asm
> harmonyvm.dll!BootstrapClassLoader::Initialize(ManagedObject * loader=0x00000000)  Line 1316 + 0xd	C++
> harmonyvm.dll!bootstrap_initial_java_classes(Global_Env * vm_env=0x012c2100)  Line 301 + 0x15	C++
> harmonyvm.dll!preload_classes(Global_Env * vm_env=0x012c2100)  Line 343 + 0x9	C++
> harmonyvm.dll!vm_init1(JavaVM_Internal * java_vm=0x012c20e8, JavaVMInitArgs * vm_arguments=0x0013fa98)  Line 727 + 0x9	C++
> harmonyvm.dll!JNI_CreateJavaVM(JavaVM_External * * p_vm=0x0013faa8, JNIEnv_External * * p_jni_env=0x0013fab0, void * args=0x0013fa98)  Line 499 + 0xd	C++
> java.exe!invocation(HyPortLibrary * portLibrary=0x0013fbb8, int argc=4, char * * argv=0x003925b0, unsigned int handle=5308416, int version=65540, unsigned char ignoreUnrecognized='', char * mainClass=0x0039252a, unsigned int classArg=3, char * propertiesFileName=0x00157500, int isStandaloneJar=0, char * vmdllsubdir=0x0013fb44)  Line 668 + 0xf	C
> java.exe!gpProtectedMain(haCmdlineOptions * args=0x0013fb90)  Line 391 + 0x33	C
> java.exe!main(int argc=4, char * * argv=0x003925b0, char * * envp=0x00392b40)  Line 146 + 0xc	C
> java.exe!mainCRTStartup()  Line 398 + 0xe	C
> kernel32.dll!77e523cd() 	

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


[jira] Updated: (HARMONY-4063) [drlvm][classloader] Crash in the classoader on BootstrapClassLoader initialization

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

Roman S. Bushmanov updated HARMONY-4063:
----------------------------------------

    Attachment: Btest5014.java

> [drlvm][classloader] Crash in the classoader on BootstrapClassLoader initialization
> -----------------------------------------------------------------------------------
>
>                 Key: HARMONY-4063
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4063
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Roman S. Bushmanov
>         Attachments: Btest5014.java
>
>
> To reproduce the issue, please compile the attached btest5014.java and and run Btest5014.
> Note the attached test is a part of the Functional test suite (see HARMONY-3528).
> The issue is reproduced on svn = r544496, (Jun  5 2007), Windows/ia32/msvc 1310, debug build
> The callstack is as follows
> harmonyvm.dll!strcat()  Line 173	Asm
> harmonyvm.dll!BootstrapClassLoader::Initialize(ManagedObject * loader=0x00000000)  Line 1316 + 0xd	C++
> harmonyvm.dll!bootstrap_initial_java_classes(Global_Env * vm_env=0x012c2100)  Line 301 + 0x15	C++
> harmonyvm.dll!preload_classes(Global_Env * vm_env=0x012c2100)  Line 343 + 0x9	C++
> harmonyvm.dll!vm_init1(JavaVM_Internal * java_vm=0x012c20e8, JavaVMInitArgs * vm_arguments=0x0013fa98)  Line 727 + 0x9	C++
> harmonyvm.dll!JNI_CreateJavaVM(JavaVM_External * * p_vm=0x0013faa8, JNIEnv_External * * p_jni_env=0x0013fab0, void * args=0x0013fa98)  Line 499 + 0xd	C++
> java.exe!invocation(HyPortLibrary * portLibrary=0x0013fbb8, int argc=4, char * * argv=0x003925b0, unsigned int handle=5308416, int version=65540, unsigned char ignoreUnrecognized='', char * mainClass=0x0039252a, unsigned int classArg=3, char * propertiesFileName=0x00157500, int isStandaloneJar=0, char * vmdllsubdir=0x0013fb44)  Line 668 + 0xf	C
> java.exe!gpProtectedMain(haCmdlineOptions * args=0x0013fb90)  Line 391 + 0x33	C
> java.exe!main(int argc=4, char * * argv=0x003925b0, char * * envp=0x00392b40)  Line 146 + 0xc	C
> java.exe!mainCRTStartup()  Line 398 + 0xe	C
> kernel32.dll!77e523cd() 	

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


[jira] Updated: (HARMONY-4063) [drlvm][classloader] Crash in the classoader on BootstrapClassLoader initialization

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

Pavel Pervov updated HARMONY-4063:
----------------------------------

    Attachment: H4063.patch

And still have missed one thing. :(

> [drlvm][classloader] Crash in the classoader on BootstrapClassLoader initialization
> -----------------------------------------------------------------------------------
>
>                 Key: HARMONY-4063
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4063
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Roman S. Bushmanov
>            Assignee: Gregory Shimansky
>         Attachments: Btest5014.java, H4063.patch, H4063.patch, H4063.patch
>
>
> To reproduce the issue, please compile the attached btest5014.java and and run Btest5014.
> Note the attached test is a part of the Functional test suite (see HARMONY-3528).
> The issue is reproduced on svn = r544496, (Jun  5 2007), Windows/ia32/msvc 1310, debug build
> The callstack is as follows
> harmonyvm.dll!strcat()  Line 173	Asm
> harmonyvm.dll!BootstrapClassLoader::Initialize(ManagedObject * loader=0x00000000)  Line 1316 + 0xd	C++
> harmonyvm.dll!bootstrap_initial_java_classes(Global_Env * vm_env=0x012c2100)  Line 301 + 0x15	C++
> harmonyvm.dll!preload_classes(Global_Env * vm_env=0x012c2100)  Line 343 + 0x9	C++
> harmonyvm.dll!vm_init1(JavaVM_Internal * java_vm=0x012c20e8, JavaVMInitArgs * vm_arguments=0x0013fa98)  Line 727 + 0x9	C++
> harmonyvm.dll!JNI_CreateJavaVM(JavaVM_External * * p_vm=0x0013faa8, JNIEnv_External * * p_jni_env=0x0013fab0, void * args=0x0013fa98)  Line 499 + 0xd	C++
> java.exe!invocation(HyPortLibrary * portLibrary=0x0013fbb8, int argc=4, char * * argv=0x003925b0, unsigned int handle=5308416, int version=65540, unsigned char ignoreUnrecognized='', char * mainClass=0x0039252a, unsigned int classArg=3, char * propertiesFileName=0x00157500, int isStandaloneJar=0, char * vmdllsubdir=0x0013fb44)  Line 668 + 0xf	C
> java.exe!gpProtectedMain(haCmdlineOptions * args=0x0013fb90)  Line 391 + 0x33	C
> java.exe!main(int argc=4, char * * argv=0x003925b0, char * * envp=0x00392b40)  Line 146 + 0xc	C
> java.exe!mainCRTStartup()  Line 398 + 0xe	C
> kernel32.dll!77e523cd() 	

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


[jira] Assigned: (HARMONY-4063) [drlvm][classloader] Crash in the classoader on BootstrapClassLoader initialization

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

Gregory Shimansky reassigned HARMONY-4063:
------------------------------------------

    Assignee: Gregory Shimansky

> [drlvm][classloader] Crash in the classoader on BootstrapClassLoader initialization
> -----------------------------------------------------------------------------------
>
>                 Key: HARMONY-4063
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4063
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Roman S. Bushmanov
>            Assignee: Gregory Shimansky
>         Attachments: Btest5014.java, H4063.patch
>
>
> To reproduce the issue, please compile the attached btest5014.java and and run Btest5014.
> Note the attached test is a part of the Functional test suite (see HARMONY-3528).
> The issue is reproduced on svn = r544496, (Jun  5 2007), Windows/ia32/msvc 1310, debug build
> The callstack is as follows
> harmonyvm.dll!strcat()  Line 173	Asm
> harmonyvm.dll!BootstrapClassLoader::Initialize(ManagedObject * loader=0x00000000)  Line 1316 + 0xd	C++
> harmonyvm.dll!bootstrap_initial_java_classes(Global_Env * vm_env=0x012c2100)  Line 301 + 0x15	C++
> harmonyvm.dll!preload_classes(Global_Env * vm_env=0x012c2100)  Line 343 + 0x9	C++
> harmonyvm.dll!vm_init1(JavaVM_Internal * java_vm=0x012c20e8, JavaVMInitArgs * vm_arguments=0x0013fa98)  Line 727 + 0x9	C++
> harmonyvm.dll!JNI_CreateJavaVM(JavaVM_External * * p_vm=0x0013faa8, JNIEnv_External * * p_jni_env=0x0013fab0, void * args=0x0013fa98)  Line 499 + 0xd	C++
> java.exe!invocation(HyPortLibrary * portLibrary=0x0013fbb8, int argc=4, char * * argv=0x003925b0, unsigned int handle=5308416, int version=65540, unsigned char ignoreUnrecognized='', char * mainClass=0x0039252a, unsigned int classArg=3, char * propertiesFileName=0x00157500, int isStandaloneJar=0, char * vmdllsubdir=0x0013fb44)  Line 668 + 0xf	C
> java.exe!gpProtectedMain(haCmdlineOptions * args=0x0013fb90)  Line 391 + 0x33	C
> java.exe!main(int argc=4, char * * argv=0x003925b0, char * * envp=0x00392b40)  Line 146 + 0xc	C
> java.exe!mainCRTStartup()  Line 398 + 0xe	C
> kernel32.dll!77e523cd() 	

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


[jira] Updated: (HARMONY-4063) [drlvm][classloader] Crash in the classoader on BootstrapClassLoader initialization

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

Pavel Pervov updated HARMONY-4063:
----------------------------------

    Attachment: H4063.patch

I was too eager to submit the patch, so had missed few trivial things. :(
Fixed patch attached.

> [drlvm][classloader] Crash in the classoader on BootstrapClassLoader initialization
> -----------------------------------------------------------------------------------
>
>                 Key: HARMONY-4063
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4063
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Roman S. Bushmanov
>            Assignee: Gregory Shimansky
>         Attachments: Btest5014.java, H4063.patch, H4063.patch
>
>
> To reproduce the issue, please compile the attached btest5014.java and and run Btest5014.
> Note the attached test is a part of the Functional test suite (see HARMONY-3528).
> The issue is reproduced on svn = r544496, (Jun  5 2007), Windows/ia32/msvc 1310, debug build
> The callstack is as follows
> harmonyvm.dll!strcat()  Line 173	Asm
> harmonyvm.dll!BootstrapClassLoader::Initialize(ManagedObject * loader=0x00000000)  Line 1316 + 0xd	C++
> harmonyvm.dll!bootstrap_initial_java_classes(Global_Env * vm_env=0x012c2100)  Line 301 + 0x15	C++
> harmonyvm.dll!preload_classes(Global_Env * vm_env=0x012c2100)  Line 343 + 0x9	C++
> harmonyvm.dll!vm_init1(JavaVM_Internal * java_vm=0x012c20e8, JavaVMInitArgs * vm_arguments=0x0013fa98)  Line 727 + 0x9	C++
> harmonyvm.dll!JNI_CreateJavaVM(JavaVM_External * * p_vm=0x0013faa8, JNIEnv_External * * p_jni_env=0x0013fab0, void * args=0x0013fa98)  Line 499 + 0xd	C++
> java.exe!invocation(HyPortLibrary * portLibrary=0x0013fbb8, int argc=4, char * * argv=0x003925b0, unsigned int handle=5308416, int version=65540, unsigned char ignoreUnrecognized='', char * mainClass=0x0039252a, unsigned int classArg=3, char * propertiesFileName=0x00157500, int isStandaloneJar=0, char * vmdllsubdir=0x0013fb44)  Line 668 + 0xf	C
> java.exe!gpProtectedMain(haCmdlineOptions * args=0x0013fb90)  Line 391 + 0x33	C
> java.exe!main(int argc=4, char * * argv=0x003925b0, char * * envp=0x00392b40)  Line 146 + 0xc	C
> java.exe!mainCRTStartup()  Line 398 + 0xe	C
> kernel32.dll!77e523cd() 	

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


[jira] Updated: (HARMONY-4063) [drlvm][classloader] Crash in the classoader on BootstrapClassLoader initialization

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

Pavel Pervov updated HARMONY-4063:
----------------------------------

    Attachment: H4063_nocrash.patch

This simple patch will remove the crash. Test will fail though.

The problem is likely in xml configuration of this perticular regression test - not in VM, classlib or test itself.

> [drlvm][classloader] Crash in the classoader on BootstrapClassLoader initialization
> -----------------------------------------------------------------------------------
>
>                 Key: HARMONY-4063
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4063
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Roman S. Bushmanov
>            Assignee: Gregory Shimansky
>         Attachments: Btest5014.java, H4063.patch, H4063.patch, H4063.patch, H4063_nocrash.patch
>
>
> To reproduce the issue, please compile the attached btest5014.java and and run Btest5014.
> Note the attached test is a part of the Functional test suite (see HARMONY-3528).
> The issue is reproduced on svn = r544496, (Jun  5 2007), Windows/ia32/msvc 1310, debug build
> The callstack is as follows
> harmonyvm.dll!strcat()  Line 173	Asm
> harmonyvm.dll!BootstrapClassLoader::Initialize(ManagedObject * loader=0x00000000)  Line 1316 + 0xd	C++
> harmonyvm.dll!bootstrap_initial_java_classes(Global_Env * vm_env=0x012c2100)  Line 301 + 0x15	C++
> harmonyvm.dll!preload_classes(Global_Env * vm_env=0x012c2100)  Line 343 + 0x9	C++
> harmonyvm.dll!vm_init1(JavaVM_Internal * java_vm=0x012c20e8, JavaVMInitArgs * vm_arguments=0x0013fa98)  Line 727 + 0x9	C++
> harmonyvm.dll!JNI_CreateJavaVM(JavaVM_External * * p_vm=0x0013faa8, JNIEnv_External * * p_jni_env=0x0013fab0, void * args=0x0013fa98)  Line 499 + 0xd	C++
> java.exe!invocation(HyPortLibrary * portLibrary=0x0013fbb8, int argc=4, char * * argv=0x003925b0, unsigned int handle=5308416, int version=65540, unsigned char ignoreUnrecognized='', char * mainClass=0x0039252a, unsigned int classArg=3, char * propertiesFileName=0x00157500, int isStandaloneJar=0, char * vmdllsubdir=0x0013fb44)  Line 668 + 0xf	C
> java.exe!gpProtectedMain(haCmdlineOptions * args=0x0013fb90)  Line 391 + 0x33	C
> java.exe!main(int argc=4, char * * argv=0x003925b0, char * * envp=0x00392b40)  Line 146 + 0xc	C
> java.exe!mainCRTStartup()  Line 398 + 0xe	C
> kernel32.dll!77e523cd() 	

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


[jira] Updated: (HARMONY-4063) [drlvm][classloader] Crash in the classoader on BootstrapClassLoader initialization

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

Pavel Pervov updated HARMONY-4063:
----------------------------------

    Attachment: H4063.patch

This patch adds ability to DRLVM to determine its location and setup properties and paths according to this location.

> [drlvm][classloader] Crash in the classoader on BootstrapClassLoader initialization
> -----------------------------------------------------------------------------------
>
>                 Key: HARMONY-4063
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4063
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Roman S. Bushmanov
>         Attachments: Btest5014.java, H4063.patch
>
>
> To reproduce the issue, please compile the attached btest5014.java and and run Btest5014.
> Note the attached test is a part of the Functional test suite (see HARMONY-3528).
> The issue is reproduced on svn = r544496, (Jun  5 2007), Windows/ia32/msvc 1310, debug build
> The callstack is as follows
> harmonyvm.dll!strcat()  Line 173	Asm
> harmonyvm.dll!BootstrapClassLoader::Initialize(ManagedObject * loader=0x00000000)  Line 1316 + 0xd	C++
> harmonyvm.dll!bootstrap_initial_java_classes(Global_Env * vm_env=0x012c2100)  Line 301 + 0x15	C++
> harmonyvm.dll!preload_classes(Global_Env * vm_env=0x012c2100)  Line 343 + 0x9	C++
> harmonyvm.dll!vm_init1(JavaVM_Internal * java_vm=0x012c20e8, JavaVMInitArgs * vm_arguments=0x0013fa98)  Line 727 + 0x9	C++
> harmonyvm.dll!JNI_CreateJavaVM(JavaVM_External * * p_vm=0x0013faa8, JNIEnv_External * * p_jni_env=0x0013fab0, void * args=0x0013fa98)  Line 499 + 0xd	C++
> java.exe!invocation(HyPortLibrary * portLibrary=0x0013fbb8, int argc=4, char * * argv=0x003925b0, unsigned int handle=5308416, int version=65540, unsigned char ignoreUnrecognized='', char * mainClass=0x0039252a, unsigned int classArg=3, char * propertiesFileName=0x00157500, int isStandaloneJar=0, char * vmdllsubdir=0x0013fb44)  Line 668 + 0xf	C
> java.exe!gpProtectedMain(haCmdlineOptions * args=0x0013fb90)  Line 391 + 0x33	C
> java.exe!main(int argc=4, char * * argv=0x003925b0, char * * envp=0x00392b40)  Line 146 + 0xc	C
> java.exe!mainCRTStartup()  Line 398 + 0xe	C
> kernel32.dll!77e523cd() 	

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


[jira] Commented: (HARMONY-4063) [drlvm][classloader] Crash in the classoader on BootstrapClassLoader initialization

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

Elena Sayapina commented on HARMONY-4063:
-----------------------------------------

I couldn't reproduce this crash on Harmony-r549703, 
but I filed new issue https://issues.apache.org/jira/browse/HARMONY-4267 about regression Btest5014 test fail.


> [drlvm][classloader] Crash in the classoader on BootstrapClassLoader initialization
> -----------------------------------------------------------------------------------
>
>                 Key: HARMONY-4063
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4063
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Roman S. Bushmanov
>            Assignee: Gregory Shimansky
>         Attachments: Btest5014.java, H4063.patch, H4063.patch, H4063.patch, H4063_nocrash.patch
>
>
> To reproduce the issue, please compile the attached btest5014.java and and run Btest5014.
> Note the attached test is a part of the Functional test suite (see HARMONY-3528).
> The issue is reproduced on svn = r544496, (Jun  5 2007), Windows/ia32/msvc 1310, debug build
> The callstack is as follows
> harmonyvm.dll!strcat()  Line 173	Asm
> harmonyvm.dll!BootstrapClassLoader::Initialize(ManagedObject * loader=0x00000000)  Line 1316 + 0xd	C++
> harmonyvm.dll!bootstrap_initial_java_classes(Global_Env * vm_env=0x012c2100)  Line 301 + 0x15	C++
> harmonyvm.dll!preload_classes(Global_Env * vm_env=0x012c2100)  Line 343 + 0x9	C++
> harmonyvm.dll!vm_init1(JavaVM_Internal * java_vm=0x012c20e8, JavaVMInitArgs * vm_arguments=0x0013fa98)  Line 727 + 0x9	C++
> harmonyvm.dll!JNI_CreateJavaVM(JavaVM_External * * p_vm=0x0013faa8, JNIEnv_External * * p_jni_env=0x0013fab0, void * args=0x0013fa98)  Line 499 + 0xd	C++
> java.exe!invocation(HyPortLibrary * portLibrary=0x0013fbb8, int argc=4, char * * argv=0x003925b0, unsigned int handle=5308416, int version=65540, unsigned char ignoreUnrecognized='', char * mainClass=0x0039252a, unsigned int classArg=3, char * propertiesFileName=0x00157500, int isStandaloneJar=0, char * vmdllsubdir=0x0013fb44)  Line 668 + 0xf	C
> java.exe!gpProtectedMain(haCmdlineOptions * args=0x0013fb90)  Line 391 + 0x33	C
> java.exe!main(int argc=4, char * * argv=0x003925b0, char * * envp=0x00392b40)  Line 146 + 0xc	C
> java.exe!mainCRTStartup()  Line 398 + 0xe	C
> kernel32.dll!77e523cd() 	

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


[jira] Commented: (HARMONY-4063) [drlvm][classloader] Crash in the classoader on BootstrapClassLoader initialization

Posted by "Roman S. Bushmanov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-4063?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12503011 ] 

Roman S. Bushmanov commented on HARMONY-4063:
---------------------------------------------

I've checked clean build 
svn = r545649, (Jun  9 2007), Windows/ia32/msvc 1310, release build

The problem is still reproducible.

> [drlvm][classloader] Crash in the classoader on BootstrapClassLoader initialization
> -----------------------------------------------------------------------------------
>
>                 Key: HARMONY-4063
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4063
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Roman S. Bushmanov
>         Attachments: Btest5014.java
>
>
> To reproduce the issue, please compile the attached btest5014.java and and run Btest5014.
> Note the attached test is a part of the Functional test suite (see HARMONY-3528).
> The issue is reproduced on svn = r544496, (Jun  5 2007), Windows/ia32/msvc 1310, debug build
> The callstack is as follows
> harmonyvm.dll!strcat()  Line 173	Asm
> harmonyvm.dll!BootstrapClassLoader::Initialize(ManagedObject * loader=0x00000000)  Line 1316 + 0xd	C++
> harmonyvm.dll!bootstrap_initial_java_classes(Global_Env * vm_env=0x012c2100)  Line 301 + 0x15	C++
> harmonyvm.dll!preload_classes(Global_Env * vm_env=0x012c2100)  Line 343 + 0x9	C++
> harmonyvm.dll!vm_init1(JavaVM_Internal * java_vm=0x012c20e8, JavaVMInitArgs * vm_arguments=0x0013fa98)  Line 727 + 0x9	C++
> harmonyvm.dll!JNI_CreateJavaVM(JavaVM_External * * p_vm=0x0013faa8, JNIEnv_External * * p_jni_env=0x0013fab0, void * args=0x0013fa98)  Line 499 + 0xd	C++
> java.exe!invocation(HyPortLibrary * portLibrary=0x0013fbb8, int argc=4, char * * argv=0x003925b0, unsigned int handle=5308416, int version=65540, unsigned char ignoreUnrecognized='', char * mainClass=0x0039252a, unsigned int classArg=3, char * propertiesFileName=0x00157500, int isStandaloneJar=0, char * vmdllsubdir=0x0013fb44)  Line 668 + 0xf	C
> java.exe!gpProtectedMain(haCmdlineOptions * args=0x0013fb90)  Line 391 + 0x33	C
> java.exe!main(int argc=4, char * * argv=0x003925b0, char * * envp=0x00392b40)  Line 146 + 0xc	C
> java.exe!mainCRTStartup()  Line 398 + 0xe	C
> kernel32.dll!77e523cd() 	

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


[jira] Commented: (HARMONY-4063) [drlvm][classloader] Crash in the classoader on BootstrapClassLoader initialization

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

Gregory Shimansky commented on HARMONY-4063:
--------------------------------------------

I tried this patch and it doesn't work quite well.

1. It allocates memory exactly equal to string size, should allocate + 1 byte.
2. It produces broken strings, because strncpy doesn't terminate string with NULL at the end when length specified is less than or equal to the length of copied string.

After I fixed the above two obvious mistakes tests still didn't work because they try to load

    [junit] java/lang/UnsatisfiedLinkError : Failed loading library "D:\users\gregory\harmony\trunk\working_vm\build\win_em64t_msvc_debug\deploy\jdk\jre\bin\default\harmonyvm.dll\harmonyvm.dll": The specified module could not be found.

So please fix the problems and update the patch.

> [drlvm][classloader] Crash in the classoader on BootstrapClassLoader initialization
> -----------------------------------------------------------------------------------
>
>                 Key: HARMONY-4063
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4063
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Roman S. Bushmanov
>            Assignee: Gregory Shimansky
>         Attachments: Btest5014.java, H4063.patch
>
>
> To reproduce the issue, please compile the attached btest5014.java and and run Btest5014.
> Note the attached test is a part of the Functional test suite (see HARMONY-3528).
> The issue is reproduced on svn = r544496, (Jun  5 2007), Windows/ia32/msvc 1310, debug build
> The callstack is as follows
> harmonyvm.dll!strcat()  Line 173	Asm
> harmonyvm.dll!BootstrapClassLoader::Initialize(ManagedObject * loader=0x00000000)  Line 1316 + 0xd	C++
> harmonyvm.dll!bootstrap_initial_java_classes(Global_Env * vm_env=0x012c2100)  Line 301 + 0x15	C++
> harmonyvm.dll!preload_classes(Global_Env * vm_env=0x012c2100)  Line 343 + 0x9	C++
> harmonyvm.dll!vm_init1(JavaVM_Internal * java_vm=0x012c20e8, JavaVMInitArgs * vm_arguments=0x0013fa98)  Line 727 + 0x9	C++
> harmonyvm.dll!JNI_CreateJavaVM(JavaVM_External * * p_vm=0x0013faa8, JNIEnv_External * * p_jni_env=0x0013fab0, void * args=0x0013fa98)  Line 499 + 0xd	C++
> java.exe!invocation(HyPortLibrary * portLibrary=0x0013fbb8, int argc=4, char * * argv=0x003925b0, unsigned int handle=5308416, int version=65540, unsigned char ignoreUnrecognized='', char * mainClass=0x0039252a, unsigned int classArg=3, char * propertiesFileName=0x00157500, int isStandaloneJar=0, char * vmdllsubdir=0x0013fb44)  Line 668 + 0xf	C
> java.exe!gpProtectedMain(haCmdlineOptions * args=0x0013fb90)  Line 391 + 0x33	C
> java.exe!main(int argc=4, char * * argv=0x003925b0, char * * envp=0x00392b40)  Line 146 + 0xc	C
> java.exe!mainCRTStartup()  Line 398 + 0xe	C
> kernel32.dll!77e523cd() 	

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