Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 58879 invoked from network); 14 Feb 2007 12:00:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Feb 2007 12:00:39 -0000 Received: (qmail 32637 invoked by uid 500); 14 Feb 2007 12:00:46 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 32611 invoked by uid 500); 14 Feb 2007 12:00:46 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 32602 invoked by uid 99); 14 Feb 2007 12:00:46 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Feb 2007 04:00:46 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Feb 2007 04:00:38 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 86FF071408A for ; Wed, 14 Feb 2007 04:00:14 -0800 (PST) Message-ID: <19117487.1171454414550.JavaMail.jira@brutus> Date: Wed, 14 Feb 2007 04:00:14 -0800 (PST) From: "Aleksey Ignatenko (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-3054) [classlib] EUT intermittently fail in org.eclipse.jdt.core.tests.compiler.parser.TestAll In-Reply-To: <32686770.1169723090940.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-3054?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12473054 ] Aleksey Ignatenko commented on HARMONY-3054: -------------------------------------------- I succeded to reproduce the crash several times , it is very similar to race condition in zip library, every time 2 functions are on the stack in different threads : "hyarchive.dll!Java_java_util_zip_ZipFile_00024ZFEnum_getNextEntry" and "hyarchive.dll!Java_java_util_zip_ZipFile_closeZipImpl" Failed on Java_java_util_zip_ZipFile_closeZipImpl trying to read "next" item: if (jclZipFile->next != NULL) jclZipFile->next->last = jclZipFile->last; stack traces for 2 threads: 1.> hyarchive.dll!Java_java_util_zip_ZipFile_closeZipImpl(const JNINativeInterface_ * * env=0x0817c840, _jobject * recv=0x0a6af7bc) Line 199 + 0xb C 0629050c() harmonyvm.dll!get_vm_thread(HyThread * thr=0x0a6af7e8) Line 119 + 0xf C++ harmonyvm.dll!get_vm_thread(HyThread * thr=0x00000000) Line 120 + 0x7 C++ 0038a050() 2. > gc_cc.dll!GC_VTable_Info::is_finalizible() Line 142 + 0x26 C++ gc_cc.dll!gc_alloc(unsigned int in_size=0x00000018, unsigned int ah=0x012f04d0, void * thread_pointer=0x0125096c) Line 191 + 0x8 C++ harmonyvm.dll!vm_alloc_and_report_ti(unsigned int size=0x00000018, unsigned int p_vtable=0x012f04d0, void * thread_pointer=0x0125096c, Class * object_class=0x01274150) Line 1220 + 0x14 C++ harmonyvm.dll!class_alloc_new_object_using_vtable(VTable * vtable=0x012f04d0) Line 2057 + 0x25 C++ harmonyvm.dll!string_create(unsigned int unicode_length=0x00000033, bool eight_bit=false, ManagedObject * * str=0x0013b994, StringBuffer * buf=0x0013b980) Line 272 + 0x9 C++ harmonyvm.dll!string_create_from_utf8(const char * buf=0x0013ba6c, unsigned int length=0x00000033) Line 302 + 0x13 C++ harmonyvm.dll!string_create_from_utf8_h(const char * buf=0x0013ba6c, unsigned int length=0x00000033) Line 348 + 0xd C++ harmonyvm.dll!NewStringUTF(JNIEnv_External * jni_env=0x012509d8, const char * bytes=0x0013ba6c) Line 1186 + 0x16 C++ hyarchive.dll!Java_java_util_zip_ZipFile_00024ZFEnum_getNextEntry(const JNINativeInterface_ * * env=0x012509d8, _jobject * recv=0x0013bb14, __int64 descriptor=0x0000000006478380, __int64 nextEntry=0x00000000000e36e8) Line 335 + 0x16 C 061888ad() harmonyvm.dll!get_vm_thread(HyThread * thr=0x0013bb40) Line 119 + 0xf C++ harmonyvm.dll!get_vm_thread(HyThread * thr=0x00000000) Line 120 + 0x7 C++ 0038a050() I'm going to continue investigating the issue. > [classlib] 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 > > org.eclipse.jdt.core.tests.compiler.parser.TestAll suit intermittently fails. > Stack trace of crash: > SIGSEGV in VM code.]]> > Stack trace:]]> > 1: zipCachePool_release (../shared/zcpool.c:284)]]> > 2: zip_closeZipFile (../shared/zipsup.c:1129)]]> > 3: Java_java_util_zip_ZipFile_closeZipImpl (../shared/zip.c:191)]]> > 4: IP is 0x8533E71C ]]> > 5: java/util/zip/ZipFile.close()V (ZipFile.java:140)]]> > 6: java/util/zip/ZipFile.finalize()V (ZipFile.java:-1)]]> > 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)]]> > 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)]]> > 9: DrlEMImpl::executeMethod(_jmethodID*, jvalue*, jvalue*) (/export/users/nrinskay/x4/trunk/cc/projects/drlvm/trunk/vm/em/src/DrlEMImpl.cpp:514)]]> > 10: ExecuteMethod (/export/users/nrinskay/x4/trunk/cc/projects/drlvm/trunk/vm/em/src/em_intf.cpp:43)]]> > 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)]]> > 12: Objects_To_Finalize::do_finalization(int) (/export/users/nrinskay/x4/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/init/finalize.cpp:419)]]> > 13: vm_do_finalization(int) (/export/users/nrinskay/x4/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/init/finalize.cpp:511)]]> > 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)]]> > 15: IP is 0x843670A7 ]]> > 16: java/lang/FinalizerThread.run()V (??:-1)]]> > 17: java/lang/Thread.runImpl()V (??:-1)]]> > 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)]]> > 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)]]> > 20: DrlEMImpl::executeMethod(_jmethodID*, jvalue*, jvalue*) (/export/users/nrinskay/x4/trunk/cc/projects/drlvm/trunk/vm/em/src/DrlEMImpl.cpp:514)]]> > 21: ExecuteMethod (/export/users/nrinskay/x4/trunk/cc/projects/drlvm/trunk/vm/em/src/em_intf.cpp:43)]]> > 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)]]> > 23: call_method_no_ref_result (/export/users/nrinskay/x4/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/jni/jni_method.cpp:188)]]> > 24: CallVoidMethodA(JNIEnv_External*, _jobject*, _jmethodID*, jvalue*) (/export/users/nrinskay/x4/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/jni/jni_method.cpp:226)]]> > 25: wrapper_proc (/export/users/nrinskay/x4/trunk/cc/projects/drlvm/trunk/vm/thread/src/thread_java_basic.c:101)]]> > 26: thread_start_proc (/export/users/nrinskay/x4/trunk/cc/projects/drlvm/trunk/vm/thread/src/thread_native_basic.c:723)]]> > 27: dummy_worker (threadproc/unix/thread.c:139)]]> > 28: start_thread (??:-1)]]> > 29: clone (??:-1)]]> > ]]> -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.