harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Afremov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-3054) [classlib][archive] EUT intermittently fail in org.eclipse.jdt.core.tests.compiler.parser.TestAll
Date Wed, 30 May 2007 11:12:16 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-3054?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12500098
] 

Pavel Afremov commented on HARMONY-3054:
----------------------------------------

I evaluated DRLVM  + ClassLib crash on Launcher test and found that two main bug sources are
in zip support native code.
1.	Classlib native code tries to allocate memory for zip entry. If allocation fails, code
doesn't check result  and try to read and write to the NULL. See classlib\modules\archive\src\main\native\archive\shared\zip.c
line 165, 425.
2.	Strange crash in closeZipImpl function. See classlib\modules\archive\src\main\native\archive\shared\zip.c
line 265. Looks like race condition.


> [classlib][archive] EUT intermittently fail in org.eclipse.jdt.core.tests.compiler.parser.TestAll
> -------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3054
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3054
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Win and Lnx
>            Reporter: Aleksey Ignatenko
>            Assignee: Alexey Petrenko
>         Attachments: java_int.dmp, Launcher.dmp, Launcher.java
>
>
> org.eclipse.jdt.core.tests.compiler.parser.TestAll suit intermittently fails.
> Stack trace of crash:
> SIGSEGV in VM code.]]></message>
> Stack trace:]]></message>
> 1: zipCachePool_release (../shared/zcpool.c:284)]]></message>
> 2: zip_closeZipFile (../shared/zipsup.c:1129)]]></message>
> 3: Java_java_util_zip_ZipFile_closeZipImpl (../shared/zip.c:191)]]></message>
> 4: IP is 0x8533E71C <native code>]]></message>
> 5: java/util/zip/ZipFile.close()V (ZipFile.java:140)]]></message>
> 6: java/util/zip/ZipFile.finalize()V (ZipFile.java:-1)]]></message>
> 7: vm_invoke_native_array_stub (/export/users/nrinskay/x4/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/util/ia32/base/invoke_native_stub_ia32.asm:41)]]></message>
> 8: JIT_execute_method_default(void*, _jmethodID*, jvalue*, jvalue*) (/export/users/nrinskay/x4/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/util/ia32/base/ini_iA32.cpp:199)]]></message>
> 9: DrlEMImpl::executeMethod(_jmethodID*, jvalue*, jvalue*) (/export/users/nrinskay/x4/trunk/cc/projects/drlvm/trunk/vm/em/src/DrlEMImpl.cpp:514)]]></message>
> 10: ExecuteMethod (/export/users/nrinskay/x4/trunk/cc/projects/drlvm/trunk/vm/em/src/em_intf.cpp:43)]]></message>
> 11: vm_execute_java_method_array(_jmethodID*, jvalue*, jvalue*) (/export/users/nrinskay/x4/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/jit/ini.cpp:51)]]></message>
> 12: Objects_To_Finalize::do_finalization(int) (/export/users/nrinskay/x4/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/init/finalize.cpp:419)]]></message>
> 13: vm_do_finalization(int) (/export/users/nrinskay/x4/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/init/finalize.cpp:511)]]></message>
> 14: Java_java_lang_FinalizerThread_doFinalization (/export/users/nrinskay/x4/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/kernel_classes/native/java_lang_FinalizerThread.cpp:65)]]></message>
> 15: IP is 0x843670A7 <native code>]]></message>
> 16: java/lang/FinalizerThread.run()V (??:-1)]]></message>
> 17: java/lang/Thread.runImpl()V (??:-1)]]></message>
> 18: vm_invoke_native_array_stub (/export/users/nrinskay/x4/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/util/ia32/base/invoke_native_stub_ia32.asm:41)]]></message>
> 19: JIT_execute_method_default(void*, _jmethodID*, jvalue*, jvalue*) (/export/users/nrinskay/x4/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/util/ia32/base/ini_iA32.cpp:199)]]></message>
> 20: DrlEMImpl::executeMethod(_jmethodID*, jvalue*, jvalue*) (/export/users/nrinskay/x4/trunk/cc/projects/drlvm/trunk/vm/em/src/DrlEMImpl.cpp:514)]]></message>
> 21: ExecuteMethod (/export/users/nrinskay/x4/trunk/cc/projects/drlvm/trunk/vm/em/src/em_intf.cpp:43)]]></message>
> 22: vm_execute_java_method_array(_jmethodID*, jvalue*, jvalue*) (/export/users/nrinskay/x4/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/jit/ini.cpp:51)]]></message>
> 23: call_method_no_ref_result (/export/users/nrinskay/x4/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/jni/jni_method.cpp:188)]]></message>
> 24: CallVoidMethodA(JNIEnv_External*, _jobject*, _jmethodID*, jvalue*) (/export/users/nrinskay/x4/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/jni/jni_method.cpp:226)]]></message>
> 25: wrapper_proc (/export/users/nrinskay/x4/trunk/cc/projects/drlvm/trunk/vm/thread/src/thread_java_basic.c:101)]]></message>
> 26: thread_start_proc (/export/users/nrinskay/x4/trunk/cc/projects/drlvm/trunk/vm/thread/src/thread_native_basic.c:723)]]></message>
> 27: dummy_worker (threadproc/unix/thread.c:139)]]></message>
> 28: start_thread (??:-1)]]></message>
> 29: clone (??:-1)]]></message>
> <end of stack trace>]]></message>

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