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-1912) [drlvm][jit][opt] SIGSEGV during stack dump on Linux
Date Tue, 13 Mar 2007 07:31:09 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-1912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12480295
] 

Alexey Varlamov commented on HARMONY-1912:
------------------------------------------

Nice progress! 
Unfortunately latest patch affects EHWA on SLES@x64 for opt mode: release build just hangs,
while debug segfaults far earlier than known HARMONY-3234; I suppose there are problems in
newly added stack unwinding functions. The stack looks as:
SIGSEGV in VM code.
Stack trace:
	0: Class::get_vtable() const (/nfs/ins/proj/drl/coreapi/avarlamo/harmony/linux.x64/svn-repo/trunk/working_vm/vm/vmcore/include/Class.h:1134)
	1: managed_object_object_is_valid_unsafe (/nfs/ins/proj/drl/coreapi/avarlamo/harmony/linux.x64/svn-repo/trunk/working_vm/vm/vmcore/src/object/object_handles.cpp:183)
	2: managed_object_is_valid(ManagedObject*) (/nfs/ins/proj/drl/coreapi/avarlamo/harmony/linux.x64/svn-repo/trunk/working_vm/vm/vmcore/src/object/object_handles.cpp:190)
	3: vm_monitor_exit_default (/nfs/ins/proj/drl/coreapi/avarlamo/harmony/linux.x64/svn-repo/trunk/working_vm/vm/vmcore/src/thread/mon_enter_exit.cpp:129)
	4: vm_monitor_exit_synchronized_method (/nfs/ins/proj/drl/coreapi/avarlamo/harmony/linux.x64/svn-repo/trunk/working_vm/vm/vmcore/src/thread/mon_enter_exit.cpp:104)
	5: exn_propagate_exception (/nfs/ins/proj/drl/coreapi/avarlamo/harmony/linux.x64/svn-repo/trunk/working_vm/vm/vmcore/src/exception/exceptions_jit.cpp:346)
	6: exn_throw_for_JIT(ManagedObject*, Class*, Method*, unsigned char*, jvalue*) (/nfs/ins/proj/drl/coreapi/avarlamo/harmony/linux.x64/svn-repo/trunk/working_vm/vm/vmcore/src/exception/exceptions_jit.cpp:443)
	7: exn_athrow(ManagedObject*, Class*, Method*, unsigned char*) (/nfs/ins/proj/drl/coreapi/avarlamo/harmony/linux.x64/svn-repo/trunk/working_vm/vm/vmcore/src/exception/exceptions_jit.cpp:472)
	8: ?? (??:-1)
	9: java/lang/ClassLoader.findClass(Ljava/lang/String;)Ljava/lang/Class; (ClassLoader.java:-1)
	10: java/lang/ClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class; (ClassLoader.java:-1)
	11: java/lang/ClassLoader.loadClass(Ljava/lang/String;)Ljava/lang/Class; (ClassLoader.java:-1)
	12: org/eclipse/osgi/framework/internal/core/BundleLoader.findClass(Ljava/lang/String;Z)Ljava/lang/Class;
(BundleLoader.java:-1)
	13: org/eclipse/osgi/framework/internal/core/BundleLoader.findClass(Ljava/lang/String;)Ljava/lang/Class;
(BundleLoader.java:-1)
	14: org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;
(DefaultClassLoader.java:-1)
	15: java/lang/ClassLoader.loadClass(Ljava/lang/String;)Ljava/lang/Class; (ClassLoader.java:-1)
	16: ?? (??:-1)
	17: org/eclipse/osgi/framework/internal/core/BundleContextImpl$2.run()Ljava/lang/Object;
(BundleContextImpl.java:-1)
	18: java/security/AccessController.doPrivilegedImpl(Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;
(AccessController.java:-1)
	19: java/security/AccessController.doPrivileged(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;
(AccessController.java:-1)
	20: org/eclipse/osgi/framework/internal/core/BundleContextImpl.startActivator(Lorg/osgi/framework/BundleActivator;)V
(BundleContextImpl.java:-1)
	21: org/eclipse/osgi/framework/internal/core/BundleContextImpl.start()V (BundleContextImpl.java:-1)
	22: org/eclipse/osgi/framework/internal/core/BundleHost.startWorker(Z)V (BundleHost.java:-1)
	23: org/eclipse/osgi/framework/internal/core/AbstractBundle.start()V (AbstractBundle.java:-1)
	24: org/eclipse/core/runtime/internal/adaptor/EclipseLazyStarter.preFindLocalClass(Ljava/lang/String;Lorg/eclipse/osgi/baseadaptor/loader/ClasspathManager;)V
(EclipseLazyStarter.java:-1)
	25: org/eclipse/osgi/baseadaptor/loader/ClasspathManager.findLocalClass(Ljava/lang/String;)Ljava/lang/Class;
(ClasspathManager.java:-1)
	26: org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader.findLocalClass(Ljava/lang/String;)Ljava/lang/Class;
(DefaultClassLoader.java:-1)
	27: org/eclipse/osgi/framework/internal/core/BundleLoader.findLocalClass(Ljava/lang/String;)Ljava/lang/Class;
(BundleLoader.java:-1)
	28: org/eclipse/osgi/framework/internal/core/SingleSourcePackage.loadClass(Ljava/lang/String;)Ljava/lang/Class;
(SingleSourcePackage.java:-1)
	29: org/eclipse/osgi/framework/internal/core/BundleLoader.findClass(Ljava/lang/String;Z)Ljava/lang/Class;
(BundleLoader.java:-1)
	30: org/eclipse/osgi/framework/internal/core/BundleLoader.findClass(Ljava/lang/String;)Ljava/lang/Class;
(BundleLoader.java:-1)
	31: org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;
(DefaultClassLoader.java:-1)
	32: java/lang/ClassLoader.loadClass(Ljava/lang/String;)Ljava/lang/Class; (ClassLoader.java:-1)
	33: ?? (??:-1)
	34: org/eclipse/core/internal/runtime/PlatformActivator.start(Lorg/osgi/framework/BundleContext;)V
(PlatformActivator.java:-1)
	35: org/eclipse/osgi/framework/internal/core/BundleContextImpl$2.run()Ljava/lang/Object;
(BundleContextImpl.java:-1)
	36: java/security/AccessController.doPrivilegedImpl(Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;
(AccessController.java:-1)
	37: java/security/AccessController.doPrivileged(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;
(AccessController.java:-1)
	38: org/eclipse/osgi/framework/internal/core/BundleContextImpl.startActivator(Lorg/osgi/framework/BundleActivator;)V
(BundleContextImpl.java:-1)
	39: org/eclipse/osgi/framework/internal/core/BundleContextImpl.start()V (BundleContextImpl.java:-1)
	40: org/eclipse/osgi/framework/internal/core/BundleHost.startWorker(Z)V (BundleHost.java:-1)
	41: org/eclipse/osgi/framework/internal/core/AbstractBundle.resume()V (AbstractBundle.java:-1)
	42: org/eclipse/osgi/framework/internal/core/Framework.resumeBundle(Lorg/eclipse/osgi/framework/internal/core/AbstractBundle;)V
(Framework.java:-1)
	43: org/eclipse/osgi/framework/internal/core/StartLevelManager.resumeBundles([Lorg/eclipse/osgi/framework/internal/core/AbstractBundle;Z)V
(StartLevelManager.java:-1)
	44: org/eclipse/osgi/framework/internal/core/StartLevelManager.incFWSL(ILorg/eclipse/osgi/framework/internal/core/AbstractBundle;)V
(StartLevelManager.java:-1)
	45: org/eclipse/osgi/framework/internal/core/StartLevelManager.doSetStartLevel(ILorg/eclipse/osgi/framework/internal/core/AbstractBundle;)V
(StartLevelManager.java:-1)
	46: org/eclipse/osgi/framework/internal/core/StartLevelManager.dispatchEvent(Ljava/lang/Object;Ljava/lang/Object;ILjava/lang/Object;)V
(StartLevelManager.java:-1)
	47: org/eclipse/osgi/framework/eventmgr/EventManager.dispatchEvent([Lorg/eclipse/osgi/framework/eventmgr/EventListeners$ListElement;Lorg/eclipse/osgi/framework/eventmgr/EventDispatcher;ILjava/lang/Object;)V
(EventManager.java:-1)
	48: org/eclipse/osgi/framework/eventmgr/EventManager$EventThread.run()V (EventManager.java:-1)
	49: java/lang/Thread.runImpl()V (Thread.java:-1)
<end of stack trace>

> [drlvm][jit][opt] SIGSEGV during stack dump on Linux
> ----------------------------------------------------
>
>                 Key: HARMONY-1912
>                 URL: https://issues.apache.org/jira/browse/HARMONY-1912
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: SUSE9
>            Reporter: Alexey Varlamov
>         Assigned To: Alexey Varlamov
>            Priority: Minor
>         Attachments: 1912_workarround.patch, crash_handler.diff, crash_handler.diff,
crash_handler.diff, crash_handler.diff, log_lnx_ia32_after.txt, log_lnx_ia32_before.txt, log_win_ia32_after.txt,
stack_test.zip
>
>
> There is some issue in StackInfo, manifesting itself as a segmentation fault during stack
dump.
> For example, see HARMONY-1911, HARMONY-1908, HARMONY-1908, HARMONY-1905.
> Typical backtrace is as follows:
> SIGSEGV in VM code. 
> Stack trace: 
> 41: Jitrino::Ia32::StackInfo::readByteSize(unsigned char const*) const (/export/users2/avarlamo/linux.ia32/svn-repo/drlvm/vm/jitrino/src/codegenerator/ia32/Ia32StackInfo.cpp:107)

> 42: Jitrino::Ia32::RuntimeInterface::getBcLocationForNative(Jitrino::MethodDesc*, unsigned
long long, unsigned short*) (/export/users2/avarlamo/linux.ia32/svn-repo/drlvm/vm/jitrino/src/codegenerator/ia32/Ia32RuntimeInterface.cpp:78)

> 43: Jitrino::Jitrino::GetBcLocationForNative(Jitrino::MethodDesc*, unsigned long long,
unsigned short*) (/export/users2/avarlamo/linux.ia32/svn-repo/drlvm/vm/jitrino/src/main/Jitrino.cpp:358)

> 44: get_bc_location_for_native (/export/users2/avarlamo/linux.ia32/svn-repo/drlvm/vm/jitrino/src/vm/drl/DrlJITInterface.cpp:590)

> 45: Dll_JIT::get_bc_location_for_native(Method*, void*, unsigned short*) (/export/users2/avarlamo/linux.ia32/svn-repo/drlvm/vm/vmcore/include/dll_jit_intf.h:240)

> 46: get_file_and_line (/export/users2/avarlamo/linux.ia32/svn-repo/drlvm/vm/vmcore/src/stack/stack_trace.cpp:60)

> 47: st_get_java_method_info (/export/users2/avarlamo/linux.ia32/svn-repo/drlvm/vm/vmcore/src/stack/stack_dump.cpp:196)

> 48: st_print_stack(Registers*) (/export/users2/avarlamo/linux.ia32/svn-repo/drlvm/vm/vmcore/src/stack/stack_dump.cpp:242)


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