You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexey Varlamov (JIRA)" <ji...@apache.org> on 2007/03/06 07:19:24 UTC

[jira] Commented: (HARMONY-1912) [drlvm][jit][opt] SIGSEGV during stack dump on Linux

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

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

The updated patch is great. 
Curious, I got the following trace on SLES9@x64:
SIGSEGV in VM code.
Stack trace:
	0: crashNativeMethod(JNIEnv_External*, _jobject*) (/nfs/ins/proj/drl/coreapi/avarlamo/harmony/2commit/stack_test/native.cpp:30)
	1: HelloWorld.testedNativeMethod2()V (HelloWorld.java:-2)
	2: HelloWorld.javaMethod3()V (HelloWorld.java:16)
	3: HelloWorld.javaMethod2()V (HelloWorld.java:-1)
	4: HelloWorld.testedNativeMethod1()V (HelloWorld.java:-2)
	5: HelloWorld.javaMethod1()V (HelloWorld.java:12)
	6: HelloWorld.main([Ljava/lang/String;)V (HelloWorld.java:-1)
<end of stack trace>

That is, all jre frames are dropped.

> [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, 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.