harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ilya Berezhniuk (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-5167) [drlvm][shutdown] Some regression tests intermittently fail on shutdown in debug mode on win32
Date Wed, 28 Nov 2007 14:35:43 GMT

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

Ilya Berezhniuk updated HARMONY-5167:
-------------------------------------

    Attachment: TestHeap.class
                TestHeap.java

I've reproduced this bug with simple test calling System.exit().

The test is in attachment. I started this test in cycle using cygwin.

Crash stack is always the same:
-------------------------------------------
started. Windows reported exception: 0xc0000005
Registers:
    EAX: 0x00000020, EBX: 0x7ffd6000, ECX: 0xddddddbd, EDX: 0xddddddbd
    ESI: 0x00001000, EDI: 0xdddddddc, ESP: 0x0013de28, EBP: 0x0013de54
    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\iberezhn\svn\working_vm\vm\vmcore\src\kernel_classes\native\java_lang_vmexecutionengine.cpp:60)
 18: invokeJNI (c:\users\iberezhn\svn\working_vm\vm\interpreter\src\interp_native_ia32.cpp:50)
 19: interpreterInvokeStaticNative (c:\users\iberezhn\svn\working_vm\vm\interpreter\src\interp_native_ia32.cpp:359)
 20: interpreterInvokeStatic (c:\users\iberezhn\svn\working_vm\vm\interpreter\src\interpreter.cpp:3321)
 21: Opcode_INVOKESTATIC (c:\users\iberezhn\svn\working_vm\vm\interpreter\src\interpreter.cpp:2104)
 22: java/lang/VMExecutionEngine.exit(IZ)V (VMExecutionEngine.java:72)
 23: interpreterInvokeStatic (c:\users\iberezhn\svn\working_vm\vm\interpreter\src\interpreter.cpp:3347)
 24: Opcode_INVOKESTATIC (c:\users\iberezhn\svn\working_vm\vm\interpreter\src\interpreter.cpp:2104)
 25: java/lang/Runtime.exit(I)V (Runtime.java:464)
 26: interpreterInvoke (c:\users\iberezhn\svn\working_vm\vm\interpreter\src\interpreter.cpp:3437)
 27: interpreterInvokeVirtual (c:\users\iberezhn\svn\working_vm\vm\interpreter\src\interpreter.cpp:3519)
 28: Opcode_INVOKEVIRTUAL (c:\users\iberezhn\svn\working_vm\vm\interpreter\src\interpreter.cpp:2060)
 29: java/lang/System.exit(I)V (System.java:100)
 30: interpreterInvokeStatic (c:\users\iberezhn\svn\working_vm\vm\interpreter\src\interpreter.cpp:3347)
 31: Opcode_INVOKESTATIC (c:\users\iberezhn\svn\working_vm\vm\interpreter\src\interpreter.cpp:2104)
 32: TestHeap.main([Ljava/lang/String;)V (TestHeap.java:5)
 33: interpreter_execute_method (c:\users\iberezhn\svn\working_vm\vm\interpreter\src\interpreter.cpp:3239)
 34: JIT_execute_method (c:\users\iberezhn\svn\working_vm\vm\interpreter\src\interp_exports.cpp:153)
 35: DrlEMImpl::executeMethod (c:\users\iberezhn\svn\working_vm\vm\em\src\drlemimpl.cpp:520)
 36: ExecuteMethod (c:\users\iberezhn\svn\working_vm\vm\em\src\em_intf.cpp:43)
 37: vm_execute_java_method_array (c:\users\iberezhn\svn\working_vm\vm\vmcore\src\jit\ini.cpp:62)
 38: call_static_method_no_ref_result (c:\users\iberezhn\svn\working_vm\vm\vmcore\src\jni\jni_method.cpp:1157)
 39: CallStaticVoidMethodA (c:\users\iberezhn\svn\working_vm\vm\vmcore\src\jni\jni_method.cpp:1565)
 40: CallStaticVoidMethodV (c:\users\iberezhn\svn\working_vm\vm\vmcore\src\jni\jni_method.cpp:1550)
 41: CallStaticVoidMethod (c:\users\iberezhn\svn\working_vm\vm\vmcore\src\jni\jni_method.cpp:1540)
 42: main_runJavaMain (c:\users\iberezhn\svn\working_classlib\modules\luni\src\main\native\launcher\shared\main.c:1338)
 43: invocation (c:\users\iberezhn\svn\working_classlib\modules\luni\src\main\native\launcher\shared\main.c:746)
 44: gpProtectedMain (c:\users\iberezhn\svn\working_classlib\modules\luni\src\main\native\launcher\shared\main.c:395)
 45: main (c:\users\iberezhn\svn\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>
-------------------------------------------


> [drlvm][shutdown] Some regression tests intermittently fail on shutdown in debug mode
on win32
> ----------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-5167
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5167
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows ia32 debug
>            Reporter: Gregory Shimansky
>         Attachments: TestHeap.class, TestHeap.java
>
>
> I previously thought that the bug is in HARMONY-5105, but CC shows that after the patch
has been committed, failures still continue. Most often failures are seen on verifier regression
test H3225. Win32 runtime checks C heap on shutdown in function exit, and this check fails.
It seems like a C heap memory corruption somewhere in VM.

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