harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gregory Shimansky (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-4063) [drlvm][classloader] Crash in the classoader on BootstrapClassLoader initialization
Date Thu, 14 Jun 2007 11:02:26 GMT

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


Mime
View raw message