harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Varlamov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-1688) [DRLVM] Jitrino.OPT crashes on ClassTest
Date Fri, 06 Oct 2006 10:04:20 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-1688?page=comments#action_12440386 ] 
            
Alexey Varlamov commented on HARMONY-1688:
------------------------------------------

The root cause of this crash lies in classloading: an attempt to resolve j.l.String returns
null at jitrino/src/translator/java/JavaLabelPrepass.cpp, line 513. 
OTOH Jitrino itself is guilty in bad error handling here.

Another related fact: test_getClasses_subtest0 of this test also fails on interpreter:
java.lang.ClassCircularityError: java/lang/StringBuilder 
at org.apache.harmony.luni.tests.java.lang.ClassTest$1SecurityManagerCheck.checkPackageAccess(ClassTest.java:233)

at java.net.URLClassLoader$SubURLClassLoader.loadClass(URLClassLoader.java:112) 
at java.lang.ClassLoader.loadClass(Unknown Source) 
at org.apache.harmony.luni.tests.java.lang.ClassTest$1SecurityManagerCheck.checkMemberAccess(ClassTest.java:221)

at java.lang.Class.checkMemberAccess(Unknown Source) at java.lang.Class.getClasses(Unknown
Source) 
at org.apache.harmony.luni.tests.java.lang.ClassTest$2.run(ClassTest.java:264) 
at java.security.AccessController.doPrivilegedImpl(Unknown Source) 
at java.security.AccessController.doPrivileged(Unknown Source) 
at org.apache.harmony.luni.tests.java.lang.ClassTest.test_getClasses_subtest0(ClassTest.java:333)

at java.lang.reflect.VMReflection.invokeMethod(Native Method)

> [DRLVM] Jitrino.OPT crashes on ClassTest
> ----------------------------------------
>
>                 Key: HARMONY-1688
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1688
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: debug gcc 3.3.3 DRLVM r452709
> SLES 9 32-bit SP2; CPU 2xXeon x64 (Clovertown B, 4cores)
>            Reporter: Alexey Varlamov
>
> The Jitrino.OPT fails with segmentation fault on org.apache.harmony.luni.tests.java.lang.ClassTest.

> To reproduce:
> > java -cp junit.jar:$classlib/modules/luni/bin/test:$classlib/deploy/build/test/support.jar
junit.textui.TestRunner org.apache.harmony.luni.tests.java.lang.ClassTest
> SIGSEGV in VM code.
> Stack trace:
> 	1: Jitrino::TypeManager::toInternalType(Jitrino::Type*) (??:-1)
> 	2: Jitrino::JavaLabelPrepass::JavaLabelPrepass(Jitrino::MemoryManager&, Jitrino::TypeManager&,
Jitrino::MemoryManager&, Jitrino::MethodDesc&, Jitrino::CompilationInterface&,
Jitrino::Opnd**) (??:-1)
> 	3: Jitrino::alloc_arena(Jitrino::Arena*, unsigned int) (??:-1)
> 	4: Jitrino::alloc_arena(Jitrino::Arena*, unsigned int) (??:-1)
> 	5: ?? (??:-1)
> 	6: Jitrino::MemoryManager::alloc(unsigned int) (??:-1)
> 	7: Jitrino::Tree::computeNodeOrder(Jitrino::TreeNode*, unsigned int&, unsigned int&)
(??:-1)
> 	8: ?? (??:-1)
> 	9: ?? (??:-1)
> 	10: Jitrino::JavaByteCodeTranslator::JavaByteCodeTranslator(Jitrino::CompilationInterface&,
Jitrino::MemoryManager&, Jitrino::IRBuilder&, Jitrino::ByteCodeParser&, Jitrino::MethodDesc&,
Jitrino::TypeManager&, Jitrino::JavaFlowGraphBuilder&) (??:-1)
> 	11: ?? (0015d890:15)
> 	12: Jitrino::MemoryManager::alloc(unsigned int) (??:-1)
> 	13: ?? (??:-1)
> 	14: Jitrino::JavaFlowGraphBuilder::JavaFlowGraphBuilder(Jitrino::MemoryManager&,
Jitrino::IRBuilder&) (??:-1)
> 	15: method_get_byte_code_addr (/nfs/ins/proj/drl/coreapi/avarlamo/harmony/linux.ia32/svn-repo/drlvm/vm/vmcore/src/class_support/C_Interface.cpp:365)
> 	16: ?? (??:-1)
> 	17: ?? (??:-1)
> 	18: Jitrino::JavaTranslator::translateMethod(Jitrino::CompilationInterface&, Jitrino::MethodDesc&,
Jitrino::IRBuilder&) (??:-1)
> <end of stack trace>

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