harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "George Timoshenko (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-2952) [drlvm] DNSContextTest unit test crashes on OPT if DNSNameParser is not implemented
Date Tue, 09 Jan 2007 10:01:27 GMT
[drlvm] DNSContextTest unit test crashes on OPT if DNSNameParser is not implemented
-----------------------------------------------------------------------------------

                 Key: HARMONY-2952
                 URL: https://issues.apache.org/jira/browse/HARMONY-2952
             Project: Harmony
          Issue Type: Bug
            Reporter: George Timoshenko


to reproduce the bug one should remove (!) DNSNameParser.class from jndi.jar and run:

export classlib=<....working_classlib>
cd $classlib;
$HARMONY -Xem:opt -Xbootclasspath/p:$classlib/depends/jars/junit_3.8.2/junit.jar:$classlib/deploy/build/test/support.jar:$classlib/modules/jndi/bin/test/
junit.textui.TestRunner org.apache.harmony.jndi.provider.dns.DNSContextTest

Debug build crashes like this:

java: ..../working_vm/vm/vmcore/src/class_support/classloader.cpp:1490: virtual Class* BootstrapClassLoader::DoLoadClass(Global_Env*,
const String*): Assertion `!exn_raised()' failed.
SIGABRT in VM code.
Stack trace:
        1: ?? (??:-1)
        2: abort (??:-1)
        3: __assert_fail (??:-1)
        4: BootstrapClassLoader::DoLoadClass(Global_Env*, String const*) (..../working_vm/vm/vmcore/src/class_support/classloader.cpp:1492)
        5: ClassLoader::LoadClass(Global_Env*, String const*) (..../working_vm/vm/vmcore/src/class_support/classloader.cpp:1468)
        6: .L50 (..../working_vm/vm/vmcore/src/class_support/java_type.cpp:135)
        7: type_info_get_class (..../working_vm/vm/vmcore/src/class_support/C_Interface.cpp:2021)
        8: Jitrino::DrlVMCompilationInterface::getTypeFromDrlVMTypeHandle(TypeDesc*, bool)
(..../working_vm/vm/jitrino/src/vm/drl/DrlVMInterface.cpp:520)
        9: Jitrino::DrlVMMethodSignatureDesc::getParamType(unsigned int) (..../working_vm/vm/jitrino/src/vm/drl/DrlVMInterface.cpp:322)
        10: Jitrino::JavaByteCodeTranslator::initArgs() (..../working_vm/vm/jitrino/src/translator/java/JavaByteCodeTranslator.cpp:447)
        11: Jitrino::JavaByteCodeTranslator::JavaByteCodeTranslator(Jitrino::CompilationInterface&,
Jitrino::MemoryManager&, Jitrino::IRBuilder&, Jitrino::ByteCodeParser&, Jitrino::MethodDesc&,
Jitrino::TypeManager&, Jitrino::JavaFlowGraphBuilder&)
        12: Jitrino::JavaTranslator::translateMethod(Jitrino::CompilationInterface&, Jitrino::MethodDesc&,
Jitrino::IRBuilder&) (..../working_vm/vm/jitrino/src/translator/java/JavaTranslator.cpp:56)
        13: Jitrino::TranslatorSession::translate() (..../working_vm/vm/jitrino/src/translator/TranslatorIntfc.cpp:62)
        14: Jitrino::TranslatorSession::run() (..../working_vm/vm/jitrino/src/translator/TranslatorIntfc.cpp:44)
        15: Jitrino::runPipeline(Jitrino::CompilationContext*) (..../working_vm/vm/jitrino/src/main/Jitrino.cpp:226)
        16: Jitrino::compileMethod(Jitrino::CompilationContext*) (..../working_vm/vm/jitrino/src/main/Jitrino.cpp:261)
        17: Jitrino::Jitrino::CompileMethod(Jitrino::CompilationContext*) (..../working_vm/vm/jitrino/src/main/Jitrino.cpp:286)
        18: JIT_compile_method_with_params (..../working_vm/vm/jitrino/src/vm/drl/DrlJITInterface.cpp:278)
        19: Dll_JIT::compile_method_with_params(void*, Method*, OpenMethodExecutionParams)
(..../working_vm/vm/vmcore/include/dll_jit_intf.h:86)
        20: compile_do_compilation_jit(Method*, JIT*) (..../working_vm/vm/vmcore/src/jit/compile.cpp:645)
        21: vm_compile_method (..../working_vm/vm/vmcore/src/class_support/C_Interface.cpp:2462)
        22: DrlEMImpl::compileMethod(Method*) (..../working_vm/vm/em/src/DrlEMImpl.cpp:545)
        23: CompileMethod (..../working_vm/vm/em/src/em_intf.cpp:49)
        24: compile_do_compilation (..../working_vm/vm/vmcore/src/jit/compile.cpp:752)
        25: compile_me(Method*) (..../working_vm/vm/vmcore/src/jit/compile.cpp:772)
        26: IP is 0x410C8162 <native code>
        27: vm_invoke_native_array_stub (..../working_vm/vm/vmcore/src/util/ia32/base/invoke_native_stub_ia32.asm:41)
        28: JIT_execute_method_default(void*, _jmethodID*, jvalue*, jvalue*) (..../working_vm/vm/vmcore/src/util/ia32/base/ini_iA32.cpp:199)
        29: DrlEMImpl::executeMethod(_jmethodID*, jvalue*, jvalue*) (..../working_vm/vm/em/src/DrlEMImpl.cpp:514)
        30: ExecuteMethod (..../working_vm/vm/em/src/em_intf.cpp:43)
        31: vm_execute_java_method_array(_jmethodID*, jvalue*, jvalue*) (..../working_vm/vm/vmcore/src/jit/ini.cpp:51)
        32: call_method_no_ref_result (..../working_vm/vm/vmcore/src/jni/jni_method.cpp:188)
        33: CallNonvirtualVoidMethodA(JNIEnv_External*, _jobject*, _jobject*, _jmethodID*,
jvalue*) (..../working_vm/vm/vmcore/src/jni/jni_method.cpp:677)
        34: NewObjectA(JNIEnv_External*, _jobject*, _jmethodID*, jvalue*) (..../working_vm/vm/vmcore/src/jni/jni.cpp:1056)
        35: Java_java_lang_reflect_VMReflection_newClassInstance (..../working_vm/vm/vmcore/src/kernel_classes/native/java_lang_reflect_VMReflection.cpp:321)
        36: IP is 0x520D10E6 <native code>
        37: ?? (??:-1)
        38: java/lang/reflect/Constructor.newInstance([Ljava/lang/Object;)Ljava/lang/Object;
(??:-1)
        39: junit/framework/TestSuite.createTest(Ljava/lang/Class;Ljava/lang/String;)Ljunit/framework/Test;
(TestSuite.java:-1)
        40: junit/framework/TestSuite.addTestMethod(Ljava/lang/reflect/Method;Ljava/util/Vector;Ljava/lang/Class;)V
(TestSuite.java:-1)
        41: junit/framework/TestSuite.<init>(Ljava/lang/Class;)V (TestSuite.java:-1)
        42: vm_invoke_native_array_stub (..../working_vm/vm/vmcore/src/util/ia32/base/invoke_native_stub_ia32.asm:41)
        43: JIT_execute_method_default(void*, _jmethodID*, jvalue*, jvalue*) (..../working_vm/vm/vmcore/src/util/ia32/base/ini_iA32.cpp:206)
        44: DrlEMImpl::executeMethod(_jmethodID*, jvalue*, jvalue*) (..../working_vm/vm/em/src/DrlEMImpl.cpp:514)
        45: ExecuteMethod (..../working_vm/vm/em/src/em_intf.cpp:43)
        46: vm_execute_java_method_array(_jmethodID*, jvalue*, jvalue*) (..../working_vm/vm/vmcore/src/jit/ini.cpp:51)
        47: CallStaticObjectMethodA(JNIEnv_External*, _jobject*, _jmethodID*, jvalue*) (..../working_vm/vm/vmcore/src/jni/jni_method.cpp:1203)
SIGSEGV in VM code.
Stack trace:
        48: CodeChunkInfo::get_jit() const (..../working_vm/vm/vmcore/include/cci.h:38)
        49: get_file_and_line (..../working_vm/vm/vmcore/src/stack/stack_trace.cpp:62)
        50: st_get_java_method_info (..../working_vm/vm/vmcore/src/stack/stack_dump.cpp:198)
        51: st_print_stack(Registers*) (..../working_vm/vm/vmcore/src/stack/stack_dump.cpp:247)
        52: abort_handler(int, siginfo*, void*) (..../working_vm/vm/vmcore/src/util/linux/signals_ia32.cpp:648)
        53: general_signal_handler(int, siginfo*, void*) (..../working_vm/vm/vmcore/src/util/linux/signals_ia32.cpp:718)
<end of stack trace>
Segmentation fault


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

        

Mime
View raw message