harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gregory Shimansky (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-2505) [drlvm] Class file parser improvements
Date Fri, 08 Dec 2006 16:34:23 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-2505?page=comments#action_12456904 ] 
            
Gregory Shimansky commented on HARMONY-2505:
--------------------------------------------

It looks like this patch crashes VM on x86_64 bits. The stack trace looks like this (I tried
just to run build test, I think the crash happens on any java program)

#0  0x0000002a961dd966 in Method::_parse_code (this=0x88b2a0, cp=@0x87a8d8, 
    code_attr_len=117, cfs=@0x7fbfff8b80)
    at /nfs/ims/proj/drl/mrt1/users/gregory/em64t/trunk/working_vm/vm/vmcore/src/class_support/Class_File_Loader.cpp:1550
#1  0x0000002a961defa1 in Method::parse (this=0x88b2a0, env=@0x545da8, 
    clss=0x87a7e8, cfs=@0x7fbfff8b80)
    at /nfs/ims/proj/drl/mrt1/users/gregory/em64t/trunk/working_vm/vm/vmcore/src/class_support/Class_File_Loader.cpp:1807
#2  0x0000002a961e09f1 in Class::parse_methods (this=0x87a7e8, env=0x545da8, 
    cfs=@0x7fbfff8b80)
    at /nfs/ims/proj/drl/mrt1/users/gregory/em64t/trunk/working_vm/vm/vmcore/src/class_support/Class_File_Loader.cpp:2108
#3  0x0000002a961e3bbb in Class::parse (this=0x87a7e8, env=0x545da8, 
    cfs=@0x7fbfff8b80)
    at /nfs/ims/proj/drl/mrt1/users/gregory/em64t/trunk/working_vm/vm/vmcore/src/class_support/Class_File_Loader.cpp:2810
#4  0x0000002a962073aa in ClassLoader::DefineClass (this=0x559cf0, 
    env=0x545da8, class_name=0x552840 "java/lang/String", 
    bytecode=0x7fbfff8c40 "Êþº¾", offset=0, length=22439, res_name=0x0)
    at /nfs/ims/proj/drl/mrt1/users/gregory/em64t/trunk/working_vm/vm/vmcore/src/class_support/classloader.cpp:287
#5  0x0000002a9620d82b in BootstrapClassLoader::LoadFromJarFile (
    this=0x559cf0, jar_file=0x55a568, 
    class_name_in_jar=0x7fbfffe460 "java/lang/String.class", 
    class_name=0x552830, not_found=0x7fbfffe4a7)
    at /nfs/ims/proj/drl/mrt1/users/gregory/em64t/trunk/working_vm/vm/vmcore/src/class_support/classloader.cpp:1857
#6  0x0000002a9620d3ff in BootstrapClassLoader::LoadFromFile (this=0x559cf0, 
    class_name=0x552830)
    at /nfs/ims/proj/drl/mrt1/users/gregory/em64t/trunk/working_vm/vm/vmcore/src/class_support/classloader.cpp:1760
#7  0x0000002a9620c6b9 in BootstrapClassLoader::DoLoadClass (this=0x559cf0, 
    env=0x545da8, className=0x552830)
    at /nfs/ims/proj/drl/mrt1/users/gregory/em64t/trunk/working_vm/vm/vmcore/src/class_support/classloader.cpp:1552
#8  0x0000002a9620c47a in ClassLoader::LoadClass (this=0x559cf0, env=0x545da8, 
    className=0x552830)
    at /nfs/ims/proj/drl/mrt1/users/gregory/em64t/trunk/working_vm/vm/vmcore/src/class_support/classloader.cpp:1509
#9  0x0000002a9620769a in ClassLoader::LoadVerifyAndPrepareClass (
    this=0x559cf0, env=0x545da8, name=0x552830)
    at /nfs/ims/proj/drl/mrt1/users/gregory/em64t/trunk/working_vm/vm/vmcore/src/class_support/classloader.cpp:360
#10 0x0000002a961e864d in Global_Env::LoadCoreClass (this=0x545da8, s=0x552830)
    at /nfs/ims/proj/drl/mrt1/users/gregory/em64t/trunk/working_vm/vm/vmcore/src/class_support/Environment.cpp:268
#11 0x0000002a962b303d in preload_class (vm_env=0x545da8, s=0x552830)
    at /nfs/ims/proj/drl/mrt1/users/gregory/em64t/trunk/working_vm/vm/vmcore/src/init/vm_init.cpp:71
#12 0x0000002a962b3f4f in preload_classes (vm_env=0x545da8)
    at /nfs/ims/proj/drl/mrt1/users/gregory/em64t/trunk/working_vm/vm/vmcore/src/init/vm_init.cpp:356
#13 0x0000002a962b4ea3 in vm_init1 (java_vm=0x545d78, 
    vm_arguments=0x7fbfffe990)
    at /nfs/ims/proj/drl/mrt1/users/gregory/em64t/trunk/working_vm/vm/vmcore/src/init/vm_init.cpp:686
#14 0x0000002a96236718 in JNI_CreateJavaVM (p_vm=0x51bbb8, 
    p_jni_env=0x7fbfffe988, args=0x7fbfffe990)
    at /nfs/ims/proj/drl/mrt1/users/gregory/em64t/trunk/working_vm/vm/vmcore/src/jni/jni.cpp:495
#15 0x0000000000408347 in test_java_thread_setup (argc=3, argv=0x7fbfffeb88)
    at /nfs/ims/proj/drl/mrt1/users/gregory/em64t/trunk/working_vm/vm/tests/unit/thread/utils/thread_unit_test_utils.c:109


> [drlvm] Class file parser improvements
> --------------------------------------
>
>                 Key: HARMONY-2505
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2505
>             Project: Harmony
>          Issue Type: Improvement
>          Components: DRLVM
>            Reporter: Vera Volynets
>         Assigned To: Gregory Shimansky
>         Attachments: class_file_parser_improvements_20061207.patch, class_file_parser_improvements_20061208.patch
>
>
> I've found out that classloader misses a number of
> checks from specification about Class File Format.
> The patch with improvements is attached.
> Some checks described in TODO list in the patch are omitted.
> I'll continue working on them.

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