harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Naveen Neelakantam (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-2804) [drlvm][jit] StackTest and gc.Mark fail if Jitrino built in debug mode
Date Wed, 20 Dec 2006 22:05:22 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-2804?page=comments#action_12460071 ] 
            
Naveen Neelakantam commented on HARMONY-2804:
---------------------------------------------

If I run StackTest manually I get the following output:

> java -cp . StackTest
java: /home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/jitrino/src/codegenerator/ia32/Ia32GCMap.cpp:495:
virtual void Jitrino::Ia32::RuntimeInterface::getGCRootSet(Jitrino::MethodDesc*, Jitrino::GCInterface*,
const JitFrameContext*, bool): Assertion `0' failed.
SIGABRT in VM code.
Stack trace:
        1: ?? (??:-1)
        2: ?? (??:-1)
        3: ?? (??:-1)
        4: Jitrino::Ia32::RuntimeInterface::getGCRootSet(Jitrino::MethodDesc*, Jitrino::GCInterface*,
JitFrameContext const*, bool) (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/jitrino/src/codegenerator/ia32/Ia32GCMap.cpp:495)
        5: Jitrino::Jitrino::GetGCRootSet(Jitrino::MethodDesc*, Jitrino::GCInterface*, JitFrameContext
const*, bool) (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/jitrino/src/main/Jitrino.cpp:304)
        6: JIT_get_root_set_from_stack_frame (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/jitrino/src/vm/drl/DrlJITInterface.cpp:374)
        7: Dll_JIT::get_root_set_from_stack_frame(Method*, void*, JitFrameContext const*)
(/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/vmcore/include/dll_jit_intf.h:104)
        8: vm_enumerate_root_set_single_thread_on_stack(StackIterator*) (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/vmcore/src/gc/root_set_enum_common.cpp:258)
        9: vm_enumerate_thread(VM_thread*) (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/vmcore/src/gc/stop_the_world_root_set_enum.cpp:225)
        10: vm_enumerate_the_current_thread (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/vmcore/src/gc/stop_the_world_root_set_enum.cpp:63)
        11: stop_the_world_root_set_enumeration (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/vmcore/src/gc/stop_the_world_root_set_enum.cpp:119)
        12: vm_enumerate_root_set_all_threads (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/vmcore/src/gc/stop_the_world_root_set_enum.cpp:150)
        13: enumerate_universe (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/gc_cc/src/collect.cpp:138)
        14: copy_gc(int) (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/gc_cc/src/collect.cpp:375)
        15: select_gc(int) (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/gc_cc/src/selector.cpp:96)
        16: gc_alloc (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/gc_cc/src/gc_for_vm.cpp:272)
        17: NewLongArray(JNIEnv_External*, int) (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/vmcore/src/jni/jni_array.cpp:433)
        18: JNIEnv_External::NewLongArray(int) (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/include/jni.h:1468)
        19: Java_org_apache_harmony_vm_VMStack_getStackState (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/vmcore/src/kernel_classes/native/org_apache_harmony_vm_VMStack.cpp:195)
        20: IP is 0xA5934B2F <native code>
        21: java/lang/Throwable.fillInStackTrace()Ljava/lang/Throwable; (??:-1)
        22: java/lang/Throwable.<init>()V (??:-1)
        23: java/lang/Error.<init>()V (Error.java:38)
        24: java/lang/VirtualMachineError.<init>()V (VirtualMachineError.java:35)
        25: java/lang/StackOverflowError.<init>()V (StackOverflowError.java:35)
        26: vm_invoke_native_array_stub (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/vmcore/src/util/ia32/base/invoke_native_stub_ia32.asm:41)
        27: JIT_execute_method_default(void*, _jmethodID*, jvalue*, jvalue*) (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/vmcore/src/util/ia32/base/ini_iA32.cpp:199)
        28: DrlEMImpl::executeMethod(_jmethodID*, jvalue*, jvalue*) (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/em/src/DrlEMImpl.cpp:514)
        29: ExecuteMethod (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/em/src/em_intf.cpp:43)
        30: vm_execute_java_method_array(_jmethodID*, jvalue*, jvalue*) (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/vmcore/src/jit/ini.cpp:51)
        31: class_alloc_new_object_and_run_constructor(Class*, Method*, unsigned char*) (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/vmcore/src/jit/jit_runtime_support.cpp:2156)
        32: create_lazy_exception (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/vmcore/src/exception/exceptions_jit.cpp:151)
        33: exn_propagate_exception (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/vmcore/src/exception/exceptions_jit.cpp:304)
        34: exn_athrow_regs(Registers*, Class*, bool) (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/vmcore/src/exception/exceptions_jit.cpp:468)
        35: throw_from_sigcontext (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/vmcore/src/util/linux/signals_ia32.cpp:155)
        36: java_throw_from_sigcontext (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/vmcore/src/util/linux/signals_ia32.cpp:174)
        37: stack_overflow_handler(int, siginfo*, void*) (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/vmcore/src/util/linux/signals_ia32.cpp:457)
        38: null_java_reference_handler(int, siginfo*, void*) (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/vmcore/src/util/linux/signals_ia32.cpp:484)
        39: general_signal_handler(int, siginfo*, void*) (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/vmcore/src/util/linux/signals_ia32.cpp:714)
        40: ?? (??:-1)
<end of stack trace>
Abort

When I run gc.Mark manually I get this output (which looks similar to the error reported in
HARMONY-2805):
allocating 400 Mb on 2 workers with 10 sleepers, live size 100 Mb, pause threshold 120 ms
SIGSEGV in VM code.
Stack trace:
        1: Jitrino::Ia32::GCSafePoint::isHardwareExceptionPoint() const (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/jitrino/src/codegenerator/ia32/Ia32GCMap.h:102)
        2: Jitrino::Ia32::hwecompare::operator()(Jitrino::Ia32::GCSafePoint const*, Jitrino::Ia32::GCSafePoint
const*) const (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/jitrino/src/codegenerator/ia32/Ia32GCMap.cpp:221)
        3: ?? (00302d7d
:302)
        4: ?? (00302751
:302751)
        5: ?? (00301baa
:301)
        6: ?? (003003f0
:3003)
        7: Jitrino::Ia32::GCMap::write(unsigned char*) (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/jitrino/src/codegenerator/ia32/Ia32GCMap.cpp:239)
        8: Jitrino::Ia32::InfoBlockWriter::runImpl() (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/jitrino/src/codegenerator/ia32/Ia32GCMap.cpp:528)
        9: Jitrino::Ia32::SessionAction::run() (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/jitrino/src/codegenerator/ia32/Ia32IRManager.cpp:2155)
        10: Jitrino::runPipeline(Jitrino::CompilationContext*) (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/jitrino/src/main/Jitrino.cpp:226)
        11: Jitrino::compileMethod(Jitrino::CompilationContext*) (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/jitrino/src/main/Jitrino.cpp:261)
        12: Jitrino::Jitrino::CompileMethod(Jitrino::CompilationContext*) (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/jitrino/src/main/Jitrino.cpp:286)
        13: JIT_compile_method_with_params (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/jitrino/src/vm/drl/DrlJITInterface.cpp:278)
        14: Dll_JIT::compile_method_with_params(void*, Method*, OpenMethodExecutionParams)
(/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/vmcore/include/dll_jit_intf.h:86)
        15: compile_do_compilation_jit(Method*, JIT*) (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/vmcore/src/jit/compile.cpp:599)
        16: vm_compile_method (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/vmcore/src/class_support/C_Interface.cpp:2454)
        17: DrlEMImpl::methodProfileIsReady(MethodProfile*) (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/em/src/DrlEMImpl.cpp:777)
        18: EBProfileCollector::syncModeJitCallback(MethodProfile*) (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/em/src/EBProfileCollector.cpp:191)
        19: eb_profiler_sync_mode_callback(void*) (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/em/src/EBProfileCollector.cpp:91)
        20: IP is 0xB697503A <native code>
        21: ?? (??:-1)
        22: gc/Mark.store(Ljava/lang/Object;)I (??:-1)
        23: gc/Mark.handle(Ljava/lang/Object;)V (??:-1)
        24: gc/Mark.run()V (??:-1)
        25: vm_invoke_native_array_stub (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/vmcore/src/util/ia32/base/invoke_native_stub_ia32.asm:41)
        26: JIT_execute_method_default(void*, _jmethodID*, jvalue*, jvalue*) (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/vmcore/src/util/ia32/base/ini_iA32.cpp:199)
        27: DrlEMImpl::executeMethod(_jmethodID*, jvalue*, jvalue*) (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/em/src/DrlEMImpl.cpp:514)
        28: ExecuteMethod (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/em/src/em_intf.cpp:43)
        29: vm_execute_java_method_array(_jmethodID*, jvalue*, jvalue*) (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/vmcore/src/jit/ini.cpp:51)
        30: call_method_no_ref_result (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/vmcore/src/jni/jni_method.cpp:190)
        31: CallVoidMethodA(JNIEnv_External*, _jobject*, _jmethodID*, jvalue*) (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/vmcore/src/jni/jni_method.cpp:229)
        32: wrapper_proc (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/thread/src/thread_java_basic.c:101)
        33: thread_start_proc (/home/dcsfiles/neelakan/Sandbox/Harmony/test/trunk/working_vm/vm/thread/src/thread_native_basic.c:723)
        34: dummy_worker (threadproc/unix/thread.c:139)
        35: ?? (??:-1)
        36: ?? (??:-1)
<end of stack trace>
Segmentation fault


> [drlvm][jit] StackTest and gc.Mark fail if Jitrino built in debug mode
> ----------------------------------------------------------------------
>
>                 Key: HARMONY-2804
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2804
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: RHEL4 update 4, gcc 3.4.6, core2 (i386)
>            Reporter: Naveen Neelakantam
>            Priority: Critical
>
> I am a JIT developer and as a result I generally run DRLVM with jitrino build in debug
mode.  However, the drlvm tests do not pass in this mode.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message