harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Ozhdikhin (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-4215) [drlvm][jit] assert in JIT while unwinding stack (during enumeration)
Date Fri, 22 Jun 2007 10:16:26 GMT

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

Pavel Ozhdikhin updated HARMONY-4215:
-------------------------------------

    Attachment: test.zip

I've attached the script which runs the ZlibTest test in a loop. Just unzip test.zip, update
JAVA definition in run-test.sh and run it.
Please note that the test parameters in the script are more agressive than in the test suite
to speed up reproducing.

With this script the issue is stably reproducible on the interpreter:

...
The GC did not provide gc_add_weak_root_set_entry()
OK
6
The GC did not provide gc_add_weak_root_set_entry()
OK
7
The GC did not provide gc_add_weak_root_set_entry()
OK
Windows reported exception: 0xc0000005
Registers:
    EAX: 0x00000020, EBX: 0x7ffd5000, ECX: 0xddddddbd, EDX: 0xddddddbd
    ESI: 0x00001000, EDI: 0xdddddddc, ESP: 0x0013de34, EBP: 0x0013de60
    EIP: 0x77e6b268
Stack trace:
  0: IsBadReadPtr (??:-1)
  1: _CrtIsValidPointer (f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c:1710)
  2: _CrtIsValidHeapPointer (f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c:1741)
  3: _free_dbg_lk (f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c:1132)
  4: _free_dbg (f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c:1070)
  5: _freefls (f:\vs70builds\3077\vc\crtbld\crt\src\tidtable.c:361)
  6: FlsFree (??:-1)
  7: _mtterm (f:\vs70builds\3077\vc\crtbld\crt\src\tidtable.c:220)
  8: _CRT_INIT (f:\vs70builds\3077\vc\crtbld\crt\src\dllcrt0.c:205)
  9: _DllMainCRTStartup (f:\vs70builds\3077\vc\crtbld\crt\src\dllcrt0.c:312)
 10: LdrInitializeThunk (??:-1)
 11: RtlEnumerateGenericTableWithoutSplaying (??:-1)
 12: GetEnvironmentVariableA (??:-1)
 13: ExitProcess (??:-1)
 14: __crtExitProcess (f:\vs70builds\3077\vc\crtbld\crt\src\crt0dat.c:464)
 15: doexit (f:\vs70builds\3077\vc\crtbld\crt\src\crt0dat.c:414)
 16: _exit (f:\vs70builds\3077\vc\crtbld\crt\src\crt0dat.c:311)
 17: Java_java_lang_VMExecutionEngine_exit (c:\users\pozhdikh\harmony\trunk\working_vm\vm\vmcore\src\kernel_classes\native\java_lang_vmexecutionengine.cpp:54)
 18: invokeJNI (c:\users\pozhdikh\harmony\trunk\working_vm\vm\interpreter\src\interp_native_ia32.cpp:50)
 19: interpreterInvokeStaticNative (c:\users\pozhdikh\harmony\trunk\working_vm\vm\interpreter\src\interp_native_ia32.cpp:359)
 20: interpreterInvokeStatic (c:\users\pozhdikh\harmony\trunk\working_vm\vm\interpreter\src\interpreter.cpp:3312)
 21: Opcode_INVOKESTATIC (c:\users\pozhdikh\harmony\trunk\working_vm\vm\interpreter\src\interpreter.cpp:2104)
 22: java/lang/VMExecutionEngine.exit(IZ)V (VMExecutionEngine.java:72)
 23: interpreterInvokeStatic (c:\users\pozhdikh\harmony\trunk\working_vm\vm\interpreter\src\interpreter.cpp:3337)
 24: Opcode_INVOKESTATIC (c:\users\pozhdikh\harmony\trunk\working_vm\vm\interpreter\src\interpreter.cpp:2104)
 25: java/lang/Runtime.exit(I)V (Runtime.java:464)
 26: interpreterInvoke (c:\users\pozhdikh\harmony\trunk\working_vm\vm\interpreter\src\interpreter.cpp:3427)
 27: interpreterInvokeVirtual (c:\users\pozhdikh\harmony\trunk\working_vm\vm\interpreter\src\interpreter.cpp:3509)
 28: Opcode_INVOKEVIRTUAL (c:\users\pozhdikh\harmony\trunk\working_vm\vm\interpreter\src\interpreter.cpp:2060)
 29: java/lang/System.exit(I)V (System.java:100)
 30: interpreterInvokeStatic (c:\users\pozhdikh\harmony\trunk\working_vm\vm\interpreter\src\interpreter.cpp:3337)
 31: Opcode_INVOKESTATIC (c:\users\pozhdikh\harmony\trunk\working_vm\vm\interpreter\src\interpreter.cpp:2104)
 32: org/apache/harmony/test/reliability/api/zip/ZlibTest.main([Ljava/lang/String;)V (??:-1)
 33: interpreter_execute_method (c:\users\pozhdikh\harmony\trunk\working_vm\vm\interpreter\src\interpreter.cpp:3230)
 34: JIT_execute_method (c:\users\pozhdikh\harmony\trunk\working_vm\vm\interpreter\src\interp_exports.cpp:166)
 35: DrlEMImpl::executeMethod (c:\users\pozhdikh\harmony\trunk\working_vm\vm\em\src\drlemimpl.cpp:509)
 36: ExecuteMethod (c:\users\pozhdikh\harmony\trunk\working_vm\vm\em\src\em_intf.cpp:43)
 37: vm_execute_java_method_array (c:\users\pozhdikh\harmony\trunk\working_vm\vm\vmcore\src\jit\ini.cpp:60)
 38: call_static_method_no_ref_result (c:\users\pozhdikh\harmony\trunk\working_vm\vm\vmcore\src\jni\jni_method.cpp:1154)
 39: CallStaticVoidMethodA (c:\users\pozhdikh\harmony\trunk\working_vm\vm\vmcore\src\jni\jni_method.cpp:1562)
 40: CallStaticVoidMethodV (c:\users\pozhdikh\harmony\trunk\working_vm\vm\vmcore\src\jni\jni_method.cpp:1547)
 41: CallStaticVoidMethod (c:\users\pozhdikh\harmony\trunk\working_vm\vm\vmcore\src\jni\jni_method.cpp:1537)
 42: main_runJavaMain (c:\users\pozhdikh\harmony\trunk\working_classlib\modules\luni\src\main\native\launcher\shared\main.c:1321)
 43: invocation (c:\users\pozhdikh\harmony\trunk\working_classlib\modules\luni\src\main\native\launcher\shared\main.c:742)
 44: gpProtectedMain (c:\users\pozhdikh\harmony\trunk\working_classlib\modules\luni\src\main\native\launcher\shared\main.c:391)
 45: main (c:\users\pozhdikh\harmony\trunk\working_classlib\modules\luni\src\main\native\launcher\shared\cmain.c:146)
 46: mainCRTStartup (f:\vs70builds\3077\vc\crtbld\crt\src\crtexe.c:398)
 47: IsProcessorFeaturePresent (??:-1)
<end of stack trace>
bash-2.05b$

> [drlvm][jit] assert in JIT while unwinding stack (during enumeration)
> ---------------------------------------------------------------------
>
>                 Key: HARMONY-4215
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4215
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Win 2003
>            Reporter: Aleksey Ignatenko
>         Attachments: 2rel_tests_fail.dmp, test.zip
>
>
> 2 reliablity tests failed on assertion in jit:
> 1. CharsetSyncCacheTest
> 2. ZlibTest
> svn rev 548320
> Call stack:
>  	jitrino.dll!_assert(const char * expr=0x01ba9f08, const char * filename=0x01ba9eb0,
unsigned int lineno=0x000000ac)  Line 295	C
> >	jitrino.dll!Jitrino::Ia32::StackInfo::read(Jitrino::MethodDesc * pMethodDesc=0x03bef720,
unsigned int eip=0x00000000, bool isFirst=false)  Line 172 + 0x1a	C++
>  	jitrino.dll!Jitrino::Ia32::RuntimeInterface::unwindStack(Jitrino::MethodDesc * methodDesc=0x03bef720,
JitFrameContext * context=0x02de90d4, bool isFirst=false)  Line 40	C++
>  	jitrino.dll!Jitrino::Jitrino::UnwindStack(Jitrino::MethodDesc * methodDesc=0x03bef720,
JitFrameContext * context=0x02de90d4, bool isFirst=false)  Line 280 + 0x1e	C++
>  	jitrino.dll!JIT_unwind_stack_frame(void * jit=0x012a6a48, Method * method=0x02cb3668,
JitFrameContext * context=0x02de90d4)  Line 362 + 0x18	C++
>  	harmonyvm.dll!Dll_JIT::unwind_stack_frame(Method * method=0x02cb3668, JitFrameContext
* context=0x02de90d4)  Line 94 + 0x14	C++
>  	harmonyvm.dll!si_goto_previous(StackIterator * si=0x02de90d0, bool over_popped=false)
 Line 315 + 0x32	C++
>  	harmonyvm.dll!vm_enumerate_root_set_single_thread_on_stack(StackIterator * si=0x02de90d0)
 Line 339 + 0xb	C++
>  	harmonyvm.dll!vm_enumerate_thread(VM_thread * thread=0x02d7e088)  Line 224 + 0x9	C++
>  	harmonyvm.dll!stop_the_world_root_set_enumeration()  Line 110 + 0xc	C++
>  	harmonyvm.dll!vm_enumerate_root_set_all_threads()  Line 150	C++
>  	gc_gen.dll!gc_reclaim_heap(GC * gc=0x014d5de8, unsigned int gc_cause=0x00000003)  Line
295 + 0x8	C++
>  	gc_gen.dll!gc_force_gc()  Line 138 + 0xd	C++
>  	harmonyvm.dll!Java_java_lang_VMMemoryManager_runGC(JNIEnv_External * __formal=0x02d9e240,
JNIEnv_External * __formal=0x02d9e240)  Line 138 + 0x8	C++
>  	03bf33ef()	
>  	harmonyvm.dll!get_vm_thread(HyThread * thr=0x03bef9ec)  Line 193 + 0xb	C++
>  	harmonyvm.dll!get_vm_thread(HyThread * thr=0x00000001)  Line 194 + 0x7	C++
> To reproduce onee needs to run these tests with 30 min cycle (set     <property name="test.duration"
value="1800" />  parameter in build.xml of reliablity tests).

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