You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Pavel Ozhdikhin (JIRA)" <ji...@apache.org> on 2007/02/05 14:05:08 UTC

[jira] Created: (HARMONY-3121) [drlvm][jit][opt] Dacapo.eclipse crashes on the second iteration in -Xem:server mode

[drlvm][jit][opt] Dacapo.eclipse crashes on the second iteration in -Xem:server mode
------------------------------------------------------------------------------------

                 Key: HARMONY-3121
                 URL: https://issues.apache.org/jira/browse/HARMONY-3121
             Project: Harmony
          Issue Type: Bug
          Components: DRLVM
            Reporter: Pavel Ozhdikhin


Dacapo.eclipse benchmark crashes with segmentation fault on the second iteration in -Xem:server mode.

Command to run:
  java.exe -Xem:server -jar dacapo-2006-10.jar -s default -n 2 eclipse

SIGSEGV in VM code. 
Stack trace: 
1: ValueMethodProfile::flushInstProfile(VPInstructionProfileData*) (??:-1) 
2: ValueMethodProfile::getResult(unsigned int) (??:-1) 
3: value_profiler_get_top_value(void*, unsigned int) (??:-1) 
4: Jitrino::DrlValueMethodProfile::getTopValue(unsigned int) const (??:-1) 
5: Jitrino::Devirtualizer::guardCallsInBlock(Jitrino::IRManager&, Jitrino::Node*) (??:-1) 
6: Jitrino::Devirtualizer::guardCallsInRegion(Jitrino::IRManager&, Jitrino::DominatorTree*) (??:-1) 
7: Jitrino::GuardedDevirtualizationPass::_run(Jitrino::IRManager&) (??:-1) 
8: Jitrino::OptPass::run() (??:-1) 
9: Jitrino::runPipeline(Jitrino::CompilationContext*) (??:-1) 
10: Jitrino::compileMethod(Jitrino::CompilationContext*) (??:-1) 
11: Jitrino::Jitrino::CompileMethod(Jitrino::CompilationContext*) (??:-1) 
12: JIT_compile_method_with_params (??:-1) 
13: Dll_JIT::compile_method_with_params(void*, Method*, OpenMethodExecutionParams) (??:-1) 
14: compile_do_compilation_jit(Method*, JIT*) (??:-1) 
15: vm_compile_method (??:-1) 
16: DrlEMImpl::methodProfileIsReady(MethodProfile*) (??:-1) 
17: EdgeProfileCollector::onTimeout() (??:-1) 
18: DrlEMImpl::tbsTimeout() (??:-1) 
19: ProfilerThreadTimeout (??:-1) 
20: Java_java_lang_EMThreadSupport_onTimeout (??:-1) 
21: IP is 0xA2BC3BA3 <native code> 
22: java/lang/EMThreadSupport.run()V (EMThreadSupport.java:68) 
23: java/lang/EMThreadSupport$1.run()V (EMThreadSupport.java:44) 
24: java/lang/Thread.run()V (Thread.java:-1) 
25: java/lang/Thread.runImpl()V (Thread.java:-1) 
26: vm_invoke_native_array_stub (/Harmony/source/enhanced/drlvm/trunk/vm/vmcore/src/util/ia32/base/invoke_native_stub_ia32.asm:41) 
27: .L49 (??:-1) 
28: DrlEMImpl::executeMethod(_jmethodID*, jvalue*, jvalue*) (??:-1) 
29: ExecuteMethod (??:-1) 
30: vm_execute_java_method_array(_jmethodID*, jvalue*, jvalue*) (??:-1) 
31: call_method_no_ref_result(JNIEnv_External*, _jobject*, _jmethodID*, jvalue*, jvalue*, int) (??:-1) 
32: wrapper_proc (??:-1) 
33: thread_start_proc (??:-1) 
34: dummy_worker (threadproc/unix/thread.c:139) 
35: start_thread (??:-1) 
36: clone (??:-1) 



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-3121) [drlvm][jit][opt] Dacapo.eclipse crashes on the second iteration in -Xem:server mode

Posted by "Mikhail Fursov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-3121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12473337 ] 

Mikhail Fursov commented on HARMONY-3121:
-----------------------------------------

vmmagic_3.diff  from HARMONY-3126 must fix the problem

> [drlvm][jit][opt] Dacapo.eclipse crashes on the second iteration in -Xem:server mode
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3121
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3121
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Ozhdikhin
>         Assigned To: Alexey Varlamov
>         Attachments: H3121.patch, quick.patch
>
>
> Dacapo.eclipse benchmark crashes with segmentation fault on the second iteration in -Xem:server mode.
> Command to run:
>   java.exe -Xem:server -jar dacapo-2006-10.jar -s default -n 2 eclipse
> SIGSEGV in VM code. 
> Stack trace: 
> 1: ValueMethodProfile::flushInstProfile(VPInstructionProfileData*) (??:-1) 
> 2: ValueMethodProfile::getResult(unsigned int) (??:-1) 
> 3: value_profiler_get_top_value(void*, unsigned int) (??:-1) 
> 4: Jitrino::DrlValueMethodProfile::getTopValue(unsigned int) const (??:-1) 
> 5: Jitrino::Devirtualizer::guardCallsInBlock(Jitrino::IRManager&, Jitrino::Node*) (??:-1) 
> 6: Jitrino::Devirtualizer::guardCallsInRegion(Jitrino::IRManager&, Jitrino::DominatorTree*) (??:-1) 
> 7: Jitrino::GuardedDevirtualizationPass::_run(Jitrino::IRManager&) (??:-1) 
> 8: Jitrino::OptPass::run() (??:-1) 
> 9: Jitrino::runPipeline(Jitrino::CompilationContext*) (??:-1) 
> 10: Jitrino::compileMethod(Jitrino::CompilationContext*) (??:-1) 
> 11: Jitrino::Jitrino::CompileMethod(Jitrino::CompilationContext*) (??:-1) 
> 12: JIT_compile_method_with_params (??:-1) 
> 13: Dll_JIT::compile_method_with_params(void*, Method*, OpenMethodExecutionParams) (??:-1) 
> 14: compile_do_compilation_jit(Method*, JIT*) (??:-1) 
> 15: vm_compile_method (??:-1) 
> 16: DrlEMImpl::methodProfileIsReady(MethodProfile*) (??:-1) 
> 17: EdgeProfileCollector::onTimeout() (??:-1) 
> 18: DrlEMImpl::tbsTimeout() (??:-1) 
> 19: ProfilerThreadTimeout (??:-1) 
> 20: Java_java_lang_EMThreadSupport_onTimeout (??:-1) 
> 21: IP is 0xA2BC3BA3 <native code> 
> 22: java/lang/EMThreadSupport.run()V (EMThreadSupport.java:68) 
> 23: java/lang/EMThreadSupport$1.run()V (EMThreadSupport.java:44) 
> 24: java/lang/Thread.run()V (Thread.java:-1) 
> 25: java/lang/Thread.runImpl()V (Thread.java:-1) 
> 26: vm_invoke_native_array_stub (/Harmony/source/enhanced/drlvm/trunk/vm/vmcore/src/util/ia32/base/invoke_native_stub_ia32.asm:41) 
> 27: .L49 (??:-1) 
> 28: DrlEMImpl::executeMethod(_jmethodID*, jvalue*, jvalue*) (??:-1) 
> 29: ExecuteMethod (??:-1) 
> 30: vm_execute_java_method_array(_jmethodID*, jvalue*, jvalue*) (??:-1) 
> 31: call_method_no_ref_result(JNIEnv_External*, _jobject*, _jmethodID*, jvalue*, jvalue*, int) (??:-1) 
> 32: wrapper_proc (??:-1) 
> 33: thread_start_proc (??:-1) 
> 34: dummy_worker (threadproc/unix/thread.c:139) 
> 35: start_thread (??:-1) 
> 36: clone (??:-1) 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (HARMONY-3121) [drlvm][jit][opt] Dacapo.eclipse crashes on the second iteration in -Xem:server mode

Posted by "Alexey Varlamov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Varlamov resolved HARMONY-3121.
--------------------------------------

    Resolution: Fixed

Applied at r504538

> [drlvm][jit][opt] Dacapo.eclipse crashes on the second iteration in -Xem:server mode
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3121
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3121
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Ozhdikhin
>         Assigned To: Alexey Varlamov
>         Attachments: H3121.patch, quick.patch
>
>
> Dacapo.eclipse benchmark crashes with segmentation fault on the second iteration in -Xem:server mode.
> Command to run:
>   java.exe -Xem:server -jar dacapo-2006-10.jar -s default -n 2 eclipse
> SIGSEGV in VM code. 
> Stack trace: 
> 1: ValueMethodProfile::flushInstProfile(VPInstructionProfileData*) (??:-1) 
> 2: ValueMethodProfile::getResult(unsigned int) (??:-1) 
> 3: value_profiler_get_top_value(void*, unsigned int) (??:-1) 
> 4: Jitrino::DrlValueMethodProfile::getTopValue(unsigned int) const (??:-1) 
> 5: Jitrino::Devirtualizer::guardCallsInBlock(Jitrino::IRManager&, Jitrino::Node*) (??:-1) 
> 6: Jitrino::Devirtualizer::guardCallsInRegion(Jitrino::IRManager&, Jitrino::DominatorTree*) (??:-1) 
> 7: Jitrino::GuardedDevirtualizationPass::_run(Jitrino::IRManager&) (??:-1) 
> 8: Jitrino::OptPass::run() (??:-1) 
> 9: Jitrino::runPipeline(Jitrino::CompilationContext*) (??:-1) 
> 10: Jitrino::compileMethod(Jitrino::CompilationContext*) (??:-1) 
> 11: Jitrino::Jitrino::CompileMethod(Jitrino::CompilationContext*) (??:-1) 
> 12: JIT_compile_method_with_params (??:-1) 
> 13: Dll_JIT::compile_method_with_params(void*, Method*, OpenMethodExecutionParams) (??:-1) 
> 14: compile_do_compilation_jit(Method*, JIT*) (??:-1) 
> 15: vm_compile_method (??:-1) 
> 16: DrlEMImpl::methodProfileIsReady(MethodProfile*) (??:-1) 
> 17: EdgeProfileCollector::onTimeout() (??:-1) 
> 18: DrlEMImpl::tbsTimeout() (??:-1) 
> 19: ProfilerThreadTimeout (??:-1) 
> 20: Java_java_lang_EMThreadSupport_onTimeout (??:-1) 
> 21: IP is 0xA2BC3BA3 <native code> 
> 22: java/lang/EMThreadSupport.run()V (EMThreadSupport.java:68) 
> 23: java/lang/EMThreadSupport$1.run()V (EMThreadSupport.java:44) 
> 24: java/lang/Thread.run()V (Thread.java:-1) 
> 25: java/lang/Thread.runImpl()V (Thread.java:-1) 
> 26: vm_invoke_native_array_stub (/Harmony/source/enhanced/drlvm/trunk/vm/vmcore/src/util/ia32/base/invoke_native_stub_ia32.asm:41) 
> 27: .L49 (??:-1) 
> 28: DrlEMImpl::executeMethod(_jmethodID*, jvalue*, jvalue*) (??:-1) 
> 29: ExecuteMethod (??:-1) 
> 30: vm_execute_java_method_array(_jmethodID*, jvalue*, jvalue*) (??:-1) 
> 31: call_method_no_ref_result(JNIEnv_External*, _jobject*, _jmethodID*, jvalue*, jvalue*, int) (??:-1) 
> 32: wrapper_proc (??:-1) 
> 33: thread_start_proc (??:-1) 
> 34: dummy_worker (threadproc/unix/thread.c:139) 
> 35: start_thread (??:-1) 
> 36: clone (??:-1) 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-3121) [drlvm][jit][opt] Dacapo.eclipse crashes on the second iteration in -Xem:server mode

Posted by "Pavel Ozhdikhin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-3121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12470203 ] 

Pavel Ozhdikhin commented on HARMONY-3121:
------------------------------------------

I'm looking into this.


> [drlvm][jit][opt] Dacapo.eclipse crashes on the second iteration in -Xem:server mode
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3121
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3121
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Ozhdikhin
>
> Dacapo.eclipse benchmark crashes with segmentation fault on the second iteration in -Xem:server mode.
> Command to run:
>   java.exe -Xem:server -jar dacapo-2006-10.jar -s default -n 2 eclipse
> SIGSEGV in VM code. 
> Stack trace: 
> 1: ValueMethodProfile::flushInstProfile(VPInstructionProfileData*) (??:-1) 
> 2: ValueMethodProfile::getResult(unsigned int) (??:-1) 
> 3: value_profiler_get_top_value(void*, unsigned int) (??:-1) 
> 4: Jitrino::DrlValueMethodProfile::getTopValue(unsigned int) const (??:-1) 
> 5: Jitrino::Devirtualizer::guardCallsInBlock(Jitrino::IRManager&, Jitrino::Node*) (??:-1) 
> 6: Jitrino::Devirtualizer::guardCallsInRegion(Jitrino::IRManager&, Jitrino::DominatorTree*) (??:-1) 
> 7: Jitrino::GuardedDevirtualizationPass::_run(Jitrino::IRManager&) (??:-1) 
> 8: Jitrino::OptPass::run() (??:-1) 
> 9: Jitrino::runPipeline(Jitrino::CompilationContext*) (??:-1) 
> 10: Jitrino::compileMethod(Jitrino::CompilationContext*) (??:-1) 
> 11: Jitrino::Jitrino::CompileMethod(Jitrino::CompilationContext*) (??:-1) 
> 12: JIT_compile_method_with_params (??:-1) 
> 13: Dll_JIT::compile_method_with_params(void*, Method*, OpenMethodExecutionParams) (??:-1) 
> 14: compile_do_compilation_jit(Method*, JIT*) (??:-1) 
> 15: vm_compile_method (??:-1) 
> 16: DrlEMImpl::methodProfileIsReady(MethodProfile*) (??:-1) 
> 17: EdgeProfileCollector::onTimeout() (??:-1) 
> 18: DrlEMImpl::tbsTimeout() (??:-1) 
> 19: ProfilerThreadTimeout (??:-1) 
> 20: Java_java_lang_EMThreadSupport_onTimeout (??:-1) 
> 21: IP is 0xA2BC3BA3 <native code> 
> 22: java/lang/EMThreadSupport.run()V (EMThreadSupport.java:68) 
> 23: java/lang/EMThreadSupport$1.run()V (EMThreadSupport.java:44) 
> 24: java/lang/Thread.run()V (Thread.java:-1) 
> 25: java/lang/Thread.runImpl()V (Thread.java:-1) 
> 26: vm_invoke_native_array_stub (/Harmony/source/enhanced/drlvm/trunk/vm/vmcore/src/util/ia32/base/invoke_native_stub_ia32.asm:41) 
> 27: .L49 (??:-1) 
> 28: DrlEMImpl::executeMethod(_jmethodID*, jvalue*, jvalue*) (??:-1) 
> 29: ExecuteMethod (??:-1) 
> 30: vm_execute_java_method_array(_jmethodID*, jvalue*, jvalue*) (??:-1) 
> 31: call_method_no_ref_result(JNIEnv_External*, _jobject*, _jmethodID*, jvalue*, jvalue*, int) (??:-1) 
> 32: wrapper_proc (??:-1) 
> 33: thread_start_proc (??:-1) 
> 34: dummy_worker (threadproc/unix/thread.c:139) 
> 35: start_thread (??:-1) 
> 36: clone (??:-1) 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (HARMONY-3121) [drlvm][jit][opt] Dacapo.eclipse crashes on the second iteration in -Xem:server mode

Posted by "Alexey Varlamov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Varlamov reassigned HARMONY-3121:
----------------------------------------

    Assignee: Alexey Varlamov

> [drlvm][jit][opt] Dacapo.eclipse crashes on the second iteration in -Xem:server mode
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3121
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3121
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Ozhdikhin
>         Assigned To: Alexey Varlamov
>         Attachments: H3121.patch, quick.patch
>
>
> Dacapo.eclipse benchmark crashes with segmentation fault on the second iteration in -Xem:server mode.
> Command to run:
>   java.exe -Xem:server -jar dacapo-2006-10.jar -s default -n 2 eclipse
> SIGSEGV in VM code. 
> Stack trace: 
> 1: ValueMethodProfile::flushInstProfile(VPInstructionProfileData*) (??:-1) 
> 2: ValueMethodProfile::getResult(unsigned int) (??:-1) 
> 3: value_profiler_get_top_value(void*, unsigned int) (??:-1) 
> 4: Jitrino::DrlValueMethodProfile::getTopValue(unsigned int) const (??:-1) 
> 5: Jitrino::Devirtualizer::guardCallsInBlock(Jitrino::IRManager&, Jitrino::Node*) (??:-1) 
> 6: Jitrino::Devirtualizer::guardCallsInRegion(Jitrino::IRManager&, Jitrino::DominatorTree*) (??:-1) 
> 7: Jitrino::GuardedDevirtualizationPass::_run(Jitrino::IRManager&) (??:-1) 
> 8: Jitrino::OptPass::run() (??:-1) 
> 9: Jitrino::runPipeline(Jitrino::CompilationContext*) (??:-1) 
> 10: Jitrino::compileMethod(Jitrino::CompilationContext*) (??:-1) 
> 11: Jitrino::Jitrino::CompileMethod(Jitrino::CompilationContext*) (??:-1) 
> 12: JIT_compile_method_with_params (??:-1) 
> 13: Dll_JIT::compile_method_with_params(void*, Method*, OpenMethodExecutionParams) (??:-1) 
> 14: compile_do_compilation_jit(Method*, JIT*) (??:-1) 
> 15: vm_compile_method (??:-1) 
> 16: DrlEMImpl::methodProfileIsReady(MethodProfile*) (??:-1) 
> 17: EdgeProfileCollector::onTimeout() (??:-1) 
> 18: DrlEMImpl::tbsTimeout() (??:-1) 
> 19: ProfilerThreadTimeout (??:-1) 
> 20: Java_java_lang_EMThreadSupport_onTimeout (??:-1) 
> 21: IP is 0xA2BC3BA3 <native code> 
> 22: java/lang/EMThreadSupport.run()V (EMThreadSupport.java:68) 
> 23: java/lang/EMThreadSupport$1.run()V (EMThreadSupport.java:44) 
> 24: java/lang/Thread.run()V (Thread.java:-1) 
> 25: java/lang/Thread.runImpl()V (Thread.java:-1) 
> 26: vm_invoke_native_array_stub (/Harmony/source/enhanced/drlvm/trunk/vm/vmcore/src/util/ia32/base/invoke_native_stub_ia32.asm:41) 
> 27: .L49 (??:-1) 
> 28: DrlEMImpl::executeMethod(_jmethodID*, jvalue*, jvalue*) (??:-1) 
> 29: ExecuteMethod (??:-1) 
> 30: vm_execute_java_method_array(_jmethodID*, jvalue*, jvalue*) (??:-1) 
> 31: call_method_no_ref_result(JNIEnv_External*, _jobject*, _jmethodID*, jvalue*, jvalue*, int) (??:-1) 
> 32: wrapper_proc (??:-1) 
> 33: thread_start_proc (??:-1) 
> 34: dummy_worker (threadproc/unix/thread.c:139) 
> 35: start_thread (??:-1) 
> 36: clone (??:-1) 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (HARMONY-3121) [drlvm][jit][opt] Dacapo.eclipse crashes on the second iteration in -Xem:server mode

Posted by "Alexey Varlamov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Varlamov closed HARMONY-3121.
------------------------------------

    Resolution: Fixed

> [drlvm][jit][opt] Dacapo.eclipse crashes on the second iteration in -Xem:server mode
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3121
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3121
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Ozhdikhin
>         Assigned To: Alexey Varlamov
>         Attachments: H3121.patch, quick.patch
>
>
> Dacapo.eclipse benchmark crashes with segmentation fault on the second iteration in -Xem:server mode.
> Command to run:
>   java.exe -Xem:server -jar dacapo-2006-10.jar -s default -n 2 eclipse
> SIGSEGV in VM code. 
> Stack trace: 
> 1: ValueMethodProfile::flushInstProfile(VPInstructionProfileData*) (??:-1) 
> 2: ValueMethodProfile::getResult(unsigned int) (??:-1) 
> 3: value_profiler_get_top_value(void*, unsigned int) (??:-1) 
> 4: Jitrino::DrlValueMethodProfile::getTopValue(unsigned int) const (??:-1) 
> 5: Jitrino::Devirtualizer::guardCallsInBlock(Jitrino::IRManager&, Jitrino::Node*) (??:-1) 
> 6: Jitrino::Devirtualizer::guardCallsInRegion(Jitrino::IRManager&, Jitrino::DominatorTree*) (??:-1) 
> 7: Jitrino::GuardedDevirtualizationPass::_run(Jitrino::IRManager&) (??:-1) 
> 8: Jitrino::OptPass::run() (??:-1) 
> 9: Jitrino::runPipeline(Jitrino::CompilationContext*) (??:-1) 
> 10: Jitrino::compileMethod(Jitrino::CompilationContext*) (??:-1) 
> 11: Jitrino::Jitrino::CompileMethod(Jitrino::CompilationContext*) (??:-1) 
> 12: JIT_compile_method_with_params (??:-1) 
> 13: Dll_JIT::compile_method_with_params(void*, Method*, OpenMethodExecutionParams) (??:-1) 
> 14: compile_do_compilation_jit(Method*, JIT*) (??:-1) 
> 15: vm_compile_method (??:-1) 
> 16: DrlEMImpl::methodProfileIsReady(MethodProfile*) (??:-1) 
> 17: EdgeProfileCollector::onTimeout() (??:-1) 
> 18: DrlEMImpl::tbsTimeout() (??:-1) 
> 19: ProfilerThreadTimeout (??:-1) 
> 20: Java_java_lang_EMThreadSupport_onTimeout (??:-1) 
> 21: IP is 0xA2BC3BA3 <native code> 
> 22: java/lang/EMThreadSupport.run()V (EMThreadSupport.java:68) 
> 23: java/lang/EMThreadSupport$1.run()V (EMThreadSupport.java:44) 
> 24: java/lang/Thread.run()V (Thread.java:-1) 
> 25: java/lang/Thread.runImpl()V (Thread.java:-1) 
> 26: vm_invoke_native_array_stub (/Harmony/source/enhanced/drlvm/trunk/vm/vmcore/src/util/ia32/base/invoke_native_stub_ia32.asm:41) 
> 27: .L49 (??:-1) 
> 28: DrlEMImpl::executeMethod(_jmethodID*, jvalue*, jvalue*) (??:-1) 
> 29: ExecuteMethod (??:-1) 
> 30: vm_execute_java_method_array(_jmethodID*, jvalue*, jvalue*) (??:-1) 
> 31: call_method_no_ref_result(JNIEnv_External*, _jobject*, _jmethodID*, jvalue*, jvalue*, int) (??:-1) 
> 32: wrapper_proc (??:-1) 
> 33: thread_start_proc (??:-1) 
> 34: dummy_worker (threadproc/unix/thread.c:139) 
> 35: start_thread (??:-1) 
> 36: clone (??:-1) 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Reopened: (HARMONY-3121) [drlvm][jit][opt] Dacapo.eclipse crashes on the second iteration in -Xem:server mode

Posted by "Stepan Mishura (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stepan Mishura reopened HARMONY-3121:
-------------------------------------


Reopening - the added regression test intermittently fails on WinXP (HARMONY-3177). Could you have a look?

> [drlvm][jit][opt] Dacapo.eclipse crashes on the second iteration in -Xem:server mode
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3121
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3121
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Ozhdikhin
>         Assigned To: Alexey Varlamov
>         Attachments: H3121.patch, quick.patch
>
>
> Dacapo.eclipse benchmark crashes with segmentation fault on the second iteration in -Xem:server mode.
> Command to run:
>   java.exe -Xem:server -jar dacapo-2006-10.jar -s default -n 2 eclipse
> SIGSEGV in VM code. 
> Stack trace: 
> 1: ValueMethodProfile::flushInstProfile(VPInstructionProfileData*) (??:-1) 
> 2: ValueMethodProfile::getResult(unsigned int) (??:-1) 
> 3: value_profiler_get_top_value(void*, unsigned int) (??:-1) 
> 4: Jitrino::DrlValueMethodProfile::getTopValue(unsigned int) const (??:-1) 
> 5: Jitrino::Devirtualizer::guardCallsInBlock(Jitrino::IRManager&, Jitrino::Node*) (??:-1) 
> 6: Jitrino::Devirtualizer::guardCallsInRegion(Jitrino::IRManager&, Jitrino::DominatorTree*) (??:-1) 
> 7: Jitrino::GuardedDevirtualizationPass::_run(Jitrino::IRManager&) (??:-1) 
> 8: Jitrino::OptPass::run() (??:-1) 
> 9: Jitrino::runPipeline(Jitrino::CompilationContext*) (??:-1) 
> 10: Jitrino::compileMethod(Jitrino::CompilationContext*) (??:-1) 
> 11: Jitrino::Jitrino::CompileMethod(Jitrino::CompilationContext*) (??:-1) 
> 12: JIT_compile_method_with_params (??:-1) 
> 13: Dll_JIT::compile_method_with_params(void*, Method*, OpenMethodExecutionParams) (??:-1) 
> 14: compile_do_compilation_jit(Method*, JIT*) (??:-1) 
> 15: vm_compile_method (??:-1) 
> 16: DrlEMImpl::methodProfileIsReady(MethodProfile*) (??:-1) 
> 17: EdgeProfileCollector::onTimeout() (??:-1) 
> 18: DrlEMImpl::tbsTimeout() (??:-1) 
> 19: ProfilerThreadTimeout (??:-1) 
> 20: Java_java_lang_EMThreadSupport_onTimeout (??:-1) 
> 21: IP is 0xA2BC3BA3 <native code> 
> 22: java/lang/EMThreadSupport.run()V (EMThreadSupport.java:68) 
> 23: java/lang/EMThreadSupport$1.run()V (EMThreadSupport.java:44) 
> 24: java/lang/Thread.run()V (Thread.java:-1) 
> 25: java/lang/Thread.runImpl()V (Thread.java:-1) 
> 26: vm_invoke_native_array_stub (/Harmony/source/enhanced/drlvm/trunk/vm/vmcore/src/util/ia32/base/invoke_native_stub_ia32.asm:41) 
> 27: .L49 (??:-1) 
> 28: DrlEMImpl::executeMethod(_jmethodID*, jvalue*, jvalue*) (??:-1) 
> 29: ExecuteMethod (??:-1) 
> 30: vm_execute_java_method_array(_jmethodID*, jvalue*, jvalue*) (??:-1) 
> 31: call_method_no_ref_result(JNIEnv_External*, _jobject*, _jmethodID*, jvalue*, jvalue*, int) (??:-1) 
> 32: wrapper_proc (??:-1) 
> 33: thread_start_proc (??:-1) 
> 34: dummy_worker (threadproc/unix/thread.c:139) 
> 35: start_thread (??:-1) 
> 36: clone (??:-1) 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-3121) [drlvm][jit][opt] Dacapo.eclipse crashes on the second iteration in -Xem:server mode

Posted by "Pavel Ozhdikhin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pavel Ozhdikhin updated HARMONY-3121:
-------------------------------------

    Attachment: quick.patch

A quick fix is attached - Dacapo.eclipse passed twice with it. But don't commit it to SVN yet - the root cause is deeper. It appears that a virtual call leaked to interface devirtualization routine. Looking further...

> [drlvm][jit][opt] Dacapo.eclipse crashes on the second iteration in -Xem:server mode
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3121
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3121
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Ozhdikhin
>         Attachments: quick.patch
>
>
> Dacapo.eclipse benchmark crashes with segmentation fault on the second iteration in -Xem:server mode.
> Command to run:
>   java.exe -Xem:server -jar dacapo-2006-10.jar -s default -n 2 eclipse
> SIGSEGV in VM code. 
> Stack trace: 
> 1: ValueMethodProfile::flushInstProfile(VPInstructionProfileData*) (??:-1) 
> 2: ValueMethodProfile::getResult(unsigned int) (??:-1) 
> 3: value_profiler_get_top_value(void*, unsigned int) (??:-1) 
> 4: Jitrino::DrlValueMethodProfile::getTopValue(unsigned int) const (??:-1) 
> 5: Jitrino::Devirtualizer::guardCallsInBlock(Jitrino::IRManager&, Jitrino::Node*) (??:-1) 
> 6: Jitrino::Devirtualizer::guardCallsInRegion(Jitrino::IRManager&, Jitrino::DominatorTree*) (??:-1) 
> 7: Jitrino::GuardedDevirtualizationPass::_run(Jitrino::IRManager&) (??:-1) 
> 8: Jitrino::OptPass::run() (??:-1) 
> 9: Jitrino::runPipeline(Jitrino::CompilationContext*) (??:-1) 
> 10: Jitrino::compileMethod(Jitrino::CompilationContext*) (??:-1) 
> 11: Jitrino::Jitrino::CompileMethod(Jitrino::CompilationContext*) (??:-1) 
> 12: JIT_compile_method_with_params (??:-1) 
> 13: Dll_JIT::compile_method_with_params(void*, Method*, OpenMethodExecutionParams) (??:-1) 
> 14: compile_do_compilation_jit(Method*, JIT*) (??:-1) 
> 15: vm_compile_method (??:-1) 
> 16: DrlEMImpl::methodProfileIsReady(MethodProfile*) (??:-1) 
> 17: EdgeProfileCollector::onTimeout() (??:-1) 
> 18: DrlEMImpl::tbsTimeout() (??:-1) 
> 19: ProfilerThreadTimeout (??:-1) 
> 20: Java_java_lang_EMThreadSupport_onTimeout (??:-1) 
> 21: IP is 0xA2BC3BA3 <native code> 
> 22: java/lang/EMThreadSupport.run()V (EMThreadSupport.java:68) 
> 23: java/lang/EMThreadSupport$1.run()V (EMThreadSupport.java:44) 
> 24: java/lang/Thread.run()V (Thread.java:-1) 
> 25: java/lang/Thread.runImpl()V (Thread.java:-1) 
> 26: vm_invoke_native_array_stub (/Harmony/source/enhanced/drlvm/trunk/vm/vmcore/src/util/ia32/base/invoke_native_stub_ia32.asm:41) 
> 27: .L49 (??:-1) 
> 28: DrlEMImpl::executeMethod(_jmethodID*, jvalue*, jvalue*) (??:-1) 
> 29: ExecuteMethod (??:-1) 
> 30: vm_execute_java_method_array(_jmethodID*, jvalue*, jvalue*) (??:-1) 
> 31: call_method_no_ref_result(JNIEnv_External*, _jobject*, _jmethodID*, jvalue*, jvalue*, int) (??:-1) 
> 32: wrapper_proc (??:-1) 
> 33: thread_start_proc (??:-1) 
> 34: dummy_worker (threadproc/unix/thread.c:139) 
> 35: start_thread (??:-1) 
> 36: clone (??:-1) 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-3121) [drlvm][jit][opt] Dacapo.eclipse crashes on the second iteration in -Xem:server mode

Posted by "Pavel Ozhdikhin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-3121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12470942 ] 

Pavel Ozhdikhin commented on HARMONY-3121:
------------------------------------------

Yep, though it's an impossible condition (assert checks this in debug version) this better to be fixed. Please add unlockProfile() before return.


> [drlvm][jit][opt] Dacapo.eclipse crashes on the second iteration in -Xem:server mode
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3121
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3121
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Ozhdikhin
>         Assigned To: Alexey Varlamov
>         Attachments: H3121.patch, quick.patch
>
>
> Dacapo.eclipse benchmark crashes with segmentation fault on the second iteration in -Xem:server mode.
> Command to run:
>   java.exe -Xem:server -jar dacapo-2006-10.jar -s default -n 2 eclipse
> SIGSEGV in VM code. 
> Stack trace: 
> 1: ValueMethodProfile::flushInstProfile(VPInstructionProfileData*) (??:-1) 
> 2: ValueMethodProfile::getResult(unsigned int) (??:-1) 
> 3: value_profiler_get_top_value(void*, unsigned int) (??:-1) 
> 4: Jitrino::DrlValueMethodProfile::getTopValue(unsigned int) const (??:-1) 
> 5: Jitrino::Devirtualizer::guardCallsInBlock(Jitrino::IRManager&, Jitrino::Node*) (??:-1) 
> 6: Jitrino::Devirtualizer::guardCallsInRegion(Jitrino::IRManager&, Jitrino::DominatorTree*) (??:-1) 
> 7: Jitrino::GuardedDevirtualizationPass::_run(Jitrino::IRManager&) (??:-1) 
> 8: Jitrino::OptPass::run() (??:-1) 
> 9: Jitrino::runPipeline(Jitrino::CompilationContext*) (??:-1) 
> 10: Jitrino::compileMethod(Jitrino::CompilationContext*) (??:-1) 
> 11: Jitrino::Jitrino::CompileMethod(Jitrino::CompilationContext*) (??:-1) 
> 12: JIT_compile_method_with_params (??:-1) 
> 13: Dll_JIT::compile_method_with_params(void*, Method*, OpenMethodExecutionParams) (??:-1) 
> 14: compile_do_compilation_jit(Method*, JIT*) (??:-1) 
> 15: vm_compile_method (??:-1) 
> 16: DrlEMImpl::methodProfileIsReady(MethodProfile*) (??:-1) 
> 17: EdgeProfileCollector::onTimeout() (??:-1) 
> 18: DrlEMImpl::tbsTimeout() (??:-1) 
> 19: ProfilerThreadTimeout (??:-1) 
> 20: Java_java_lang_EMThreadSupport_onTimeout (??:-1) 
> 21: IP is 0xA2BC3BA3 <native code> 
> 22: java/lang/EMThreadSupport.run()V (EMThreadSupport.java:68) 
> 23: java/lang/EMThreadSupport$1.run()V (EMThreadSupport.java:44) 
> 24: java/lang/Thread.run()V (Thread.java:-1) 
> 25: java/lang/Thread.runImpl()V (Thread.java:-1) 
> 26: vm_invoke_native_array_stub (/Harmony/source/enhanced/drlvm/trunk/vm/vmcore/src/util/ia32/base/invoke_native_stub_ia32.asm:41) 
> 27: .L49 (??:-1) 
> 28: DrlEMImpl::executeMethod(_jmethodID*, jvalue*, jvalue*) (??:-1) 
> 29: ExecuteMethod (??:-1) 
> 30: vm_execute_java_method_array(_jmethodID*, jvalue*, jvalue*) (??:-1) 
> 31: call_method_no_ref_result(JNIEnv_External*, _jobject*, _jmethodID*, jvalue*, jvalue*, int) (??:-1) 
> 32: wrapper_proc (??:-1) 
> 33: thread_start_proc (??:-1) 
> 34: dummy_worker (threadproc/unix/thread.c:139) 
> 35: start_thread (??:-1) 
> 36: clone (??:-1) 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-3121) [drlvm][jit][opt] Dacapo.eclipse crashes on the second iteration in -Xem:server mode

Posted by "Pavel Ozhdikhin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pavel Ozhdikhin updated HARMONY-3121:
-------------------------------------

    Attachment: H3121.patch

The complete patch is attached (H3121.patch). It contains:

1. The fix for the issue
2. The regression test
3. Fixes for MSVC project files allowing to build DRLVM in MSVS

The patch is tested on Windows/IA32 - "build test", "build reg.test" passed.
There are no platfrom-dependent changes in the patch (except MSVC files, of course :)).

> [drlvm][jit][opt] Dacapo.eclipse crashes on the second iteration in -Xem:server mode
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3121
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3121
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Ozhdikhin
>         Attachments: H3121.patch, quick.patch
>
>
> Dacapo.eclipse benchmark crashes with segmentation fault on the second iteration in -Xem:server mode.
> Command to run:
>   java.exe -Xem:server -jar dacapo-2006-10.jar -s default -n 2 eclipse
> SIGSEGV in VM code. 
> Stack trace: 
> 1: ValueMethodProfile::flushInstProfile(VPInstructionProfileData*) (??:-1) 
> 2: ValueMethodProfile::getResult(unsigned int) (??:-1) 
> 3: value_profiler_get_top_value(void*, unsigned int) (??:-1) 
> 4: Jitrino::DrlValueMethodProfile::getTopValue(unsigned int) const (??:-1) 
> 5: Jitrino::Devirtualizer::guardCallsInBlock(Jitrino::IRManager&, Jitrino::Node*) (??:-1) 
> 6: Jitrino::Devirtualizer::guardCallsInRegion(Jitrino::IRManager&, Jitrino::DominatorTree*) (??:-1) 
> 7: Jitrino::GuardedDevirtualizationPass::_run(Jitrino::IRManager&) (??:-1) 
> 8: Jitrino::OptPass::run() (??:-1) 
> 9: Jitrino::runPipeline(Jitrino::CompilationContext*) (??:-1) 
> 10: Jitrino::compileMethod(Jitrino::CompilationContext*) (??:-1) 
> 11: Jitrino::Jitrino::CompileMethod(Jitrino::CompilationContext*) (??:-1) 
> 12: JIT_compile_method_with_params (??:-1) 
> 13: Dll_JIT::compile_method_with_params(void*, Method*, OpenMethodExecutionParams) (??:-1) 
> 14: compile_do_compilation_jit(Method*, JIT*) (??:-1) 
> 15: vm_compile_method (??:-1) 
> 16: DrlEMImpl::methodProfileIsReady(MethodProfile*) (??:-1) 
> 17: EdgeProfileCollector::onTimeout() (??:-1) 
> 18: DrlEMImpl::tbsTimeout() (??:-1) 
> 19: ProfilerThreadTimeout (??:-1) 
> 20: Java_java_lang_EMThreadSupport_onTimeout (??:-1) 
> 21: IP is 0xA2BC3BA3 <native code> 
> 22: java/lang/EMThreadSupport.run()V (EMThreadSupport.java:68) 
> 23: java/lang/EMThreadSupport$1.run()V (EMThreadSupport.java:44) 
> 24: java/lang/Thread.run()V (Thread.java:-1) 
> 25: java/lang/Thread.runImpl()V (Thread.java:-1) 
> 26: vm_invoke_native_array_stub (/Harmony/source/enhanced/drlvm/trunk/vm/vmcore/src/util/ia32/base/invoke_native_stub_ia32.asm:41) 
> 27: .L49 (??:-1) 
> 28: DrlEMImpl::executeMethod(_jmethodID*, jvalue*, jvalue*) (??:-1) 
> 29: ExecuteMethod (??:-1) 
> 30: vm_execute_java_method_array(_jmethodID*, jvalue*, jvalue*) (??:-1) 
> 31: call_method_no_ref_result(JNIEnv_External*, _jobject*, _jmethodID*, jvalue*, jvalue*, int) (??:-1) 
> 32: wrapper_proc (??:-1) 
> 33: thread_start_proc (??:-1) 
> 34: dummy_worker (threadproc/unix/thread.c:139) 
> 35: start_thread (??:-1) 
> 36: clone (??:-1) 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-3121) [drlvm][jit][opt] Dacapo.eclipse crashes on the second iteration in -Xem:server mode

Posted by "Alexey Varlamov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-3121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12470936 ] 

Alexey Varlamov commented on HARMONY-3121:
------------------------------------------

Looks like unlockProfile(); is missing under the if?

===================================================================
--- vm/em/src/NValueProfileCollector.cpp	(revision 503992)
+++ vm/em/src/NValueProfileCollector.cpp	(working copy)
@@ -239,8 +239,12 @@
 {
     lockProfile();
     VPInstructionProfileData* _temp_vp = ValueMap[instructionKey];
+    if (_temp_vp == NULL) {
+        assert(0);
+        return 0;
+    }
     flushInstProfile(_temp_vp);
-    POINTER_SIZE_INT result = (_temp_vp == NULL) ? 0 : getVPC()->find_max(_temp_vp->TNV_Table);
+    POINTER_SIZE_INT result = getVPC()->find_max(_temp_vp->TNV_Table);
     unlockProfile();
     return result; 
 }

> [drlvm][jit][opt] Dacapo.eclipse crashes on the second iteration in -Xem:server mode
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3121
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3121
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Ozhdikhin
>         Assigned To: Alexey Varlamov
>         Attachments: H3121.patch, quick.patch
>
>
> Dacapo.eclipse benchmark crashes with segmentation fault on the second iteration in -Xem:server mode.
> Command to run:
>   java.exe -Xem:server -jar dacapo-2006-10.jar -s default -n 2 eclipse
> SIGSEGV in VM code. 
> Stack trace: 
> 1: ValueMethodProfile::flushInstProfile(VPInstructionProfileData*) (??:-1) 
> 2: ValueMethodProfile::getResult(unsigned int) (??:-1) 
> 3: value_profiler_get_top_value(void*, unsigned int) (??:-1) 
> 4: Jitrino::DrlValueMethodProfile::getTopValue(unsigned int) const (??:-1) 
> 5: Jitrino::Devirtualizer::guardCallsInBlock(Jitrino::IRManager&, Jitrino::Node*) (??:-1) 
> 6: Jitrino::Devirtualizer::guardCallsInRegion(Jitrino::IRManager&, Jitrino::DominatorTree*) (??:-1) 
> 7: Jitrino::GuardedDevirtualizationPass::_run(Jitrino::IRManager&) (??:-1) 
> 8: Jitrino::OptPass::run() (??:-1) 
> 9: Jitrino::runPipeline(Jitrino::CompilationContext*) (??:-1) 
> 10: Jitrino::compileMethod(Jitrino::CompilationContext*) (??:-1) 
> 11: Jitrino::Jitrino::CompileMethod(Jitrino::CompilationContext*) (??:-1) 
> 12: JIT_compile_method_with_params (??:-1) 
> 13: Dll_JIT::compile_method_with_params(void*, Method*, OpenMethodExecutionParams) (??:-1) 
> 14: compile_do_compilation_jit(Method*, JIT*) (??:-1) 
> 15: vm_compile_method (??:-1) 
> 16: DrlEMImpl::methodProfileIsReady(MethodProfile*) (??:-1) 
> 17: EdgeProfileCollector::onTimeout() (??:-1) 
> 18: DrlEMImpl::tbsTimeout() (??:-1) 
> 19: ProfilerThreadTimeout (??:-1) 
> 20: Java_java_lang_EMThreadSupport_onTimeout (??:-1) 
> 21: IP is 0xA2BC3BA3 <native code> 
> 22: java/lang/EMThreadSupport.run()V (EMThreadSupport.java:68) 
> 23: java/lang/EMThreadSupport$1.run()V (EMThreadSupport.java:44) 
> 24: java/lang/Thread.run()V (Thread.java:-1) 
> 25: java/lang/Thread.runImpl()V (Thread.java:-1) 
> 26: vm_invoke_native_array_stub (/Harmony/source/enhanced/drlvm/trunk/vm/vmcore/src/util/ia32/base/invoke_native_stub_ia32.asm:41) 
> 27: .L49 (??:-1) 
> 28: DrlEMImpl::executeMethod(_jmethodID*, jvalue*, jvalue*) (??:-1) 
> 29: ExecuteMethod (??:-1) 
> 30: vm_execute_java_method_array(_jmethodID*, jvalue*, jvalue*) (??:-1) 
> 31: call_method_no_ref_result(JNIEnv_External*, _jobject*, _jmethodID*, jvalue*, jvalue*, int) (??:-1) 
> 32: wrapper_proc (??:-1) 
> 33: thread_start_proc (??:-1) 
> 34: dummy_worker (threadproc/unix/thread.c:139) 
> 35: start_thread (??:-1) 
> 36: clone (??:-1) 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-3121) [drlvm][jit][opt] Dacapo.eclipse crashes on the second iteration in -Xem:server mode

Posted by "Pavel Ozhdikhin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pavel Ozhdikhin updated HARMONY-3121:
-------------------------------------

    Patch Info: [Patch Available]

> [drlvm][jit][opt] Dacapo.eclipse crashes on the second iteration in -Xem:server mode
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3121
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3121
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Ozhdikhin
>         Attachments: H3121.patch, quick.patch
>
>
> Dacapo.eclipse benchmark crashes with segmentation fault on the second iteration in -Xem:server mode.
> Command to run:
>   java.exe -Xem:server -jar dacapo-2006-10.jar -s default -n 2 eclipse
> SIGSEGV in VM code. 
> Stack trace: 
> 1: ValueMethodProfile::flushInstProfile(VPInstructionProfileData*) (??:-1) 
> 2: ValueMethodProfile::getResult(unsigned int) (??:-1) 
> 3: value_profiler_get_top_value(void*, unsigned int) (??:-1) 
> 4: Jitrino::DrlValueMethodProfile::getTopValue(unsigned int) const (??:-1) 
> 5: Jitrino::Devirtualizer::guardCallsInBlock(Jitrino::IRManager&, Jitrino::Node*) (??:-1) 
> 6: Jitrino::Devirtualizer::guardCallsInRegion(Jitrino::IRManager&, Jitrino::DominatorTree*) (??:-1) 
> 7: Jitrino::GuardedDevirtualizationPass::_run(Jitrino::IRManager&) (??:-1) 
> 8: Jitrino::OptPass::run() (??:-1) 
> 9: Jitrino::runPipeline(Jitrino::CompilationContext*) (??:-1) 
> 10: Jitrino::compileMethod(Jitrino::CompilationContext*) (??:-1) 
> 11: Jitrino::Jitrino::CompileMethod(Jitrino::CompilationContext*) (??:-1) 
> 12: JIT_compile_method_with_params (??:-1) 
> 13: Dll_JIT::compile_method_with_params(void*, Method*, OpenMethodExecutionParams) (??:-1) 
> 14: compile_do_compilation_jit(Method*, JIT*) (??:-1) 
> 15: vm_compile_method (??:-1) 
> 16: DrlEMImpl::methodProfileIsReady(MethodProfile*) (??:-1) 
> 17: EdgeProfileCollector::onTimeout() (??:-1) 
> 18: DrlEMImpl::tbsTimeout() (??:-1) 
> 19: ProfilerThreadTimeout (??:-1) 
> 20: Java_java_lang_EMThreadSupport_onTimeout (??:-1) 
> 21: IP is 0xA2BC3BA3 <native code> 
> 22: java/lang/EMThreadSupport.run()V (EMThreadSupport.java:68) 
> 23: java/lang/EMThreadSupport$1.run()V (EMThreadSupport.java:44) 
> 24: java/lang/Thread.run()V (Thread.java:-1) 
> 25: java/lang/Thread.runImpl()V (Thread.java:-1) 
> 26: vm_invoke_native_array_stub (/Harmony/source/enhanced/drlvm/trunk/vm/vmcore/src/util/ia32/base/invoke_native_stub_ia32.asm:41) 
> 27: .L49 (??:-1) 
> 28: DrlEMImpl::executeMethod(_jmethodID*, jvalue*, jvalue*) (??:-1) 
> 29: ExecuteMethod (??:-1) 
> 30: vm_execute_java_method_array(_jmethodID*, jvalue*, jvalue*) (??:-1) 
> 31: call_method_no_ref_result(JNIEnv_External*, _jobject*, _jmethodID*, jvalue*, jvalue*, int) (??:-1) 
> 32: wrapper_proc (??:-1) 
> 33: thread_start_proc (??:-1) 
> 34: dummy_worker (threadproc/unix/thread.c:139) 
> 35: start_thread (??:-1) 
> 36: clone (??:-1) 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.