harmony-commits mailing list archives

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

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

Mikhail Markov updated HARMONY-3054:
------------------------------------

    Attachment: H-3054.patch

Thanks for everybody for the info - this really helps in localizing the nasty race condition
in archive native code!

Here is the patch fixing the issue.
It also incorporates some perf. improvements for ZipFile code.

Fix description: using mutexes for entering and exiting the critical section in native code.
With this patch the described reproducer is worked for several hundred of iterations. Hope
the original problem will be fixed as well.

> [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: H-3054.patch, java_int.dmp, Launcher.dmp, Launcher.java, SourceViewScreenshot-1.jpg
>
>
> 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