harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nina Rinskaya (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-3941) [drlvm][gc_gen] EUT suite 'ui' crashes during stress test execution when gc_gen is used with Out of Memory
Date Fri, 25 May 2007 04:40:16 GMT

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

Nina Rinskaya commented on HARMONY-3941:

Please find the description below:

Note: the description below is applicable to Eclipse 3.2 only (checked on Windows version)

1. Download Eclipse and Eclipse Unit Tests (3.2) archive from  http://download.eclipse.org/eclipse/downloads/drops/R-3.2-200606291905/index.php,
eclipse-SDK-3.2-win32.zip (eclipse-SDK-3.2-linux-gtk.tar.gz for Linux) and eclipse-Automated-Tests-3.2.zip
  . Direct links are: 

(or  http://mirrors.nsa.co.il/eclipse/eclipse/downloads/drops/R-3.2-200606291905/eclipse-SDK-3.2-linux-
gtk.tar.gz for Linux)


Unpack Eclipse 3.2. Then unpack eclipse-Automated-Tests-3.2.zip, this will create a top-level
directory  "eclipse-testing" that contains eclipse-junit-tests-M20060629-1905.zip archive.
Unpack this archive, this  will create "eclipse" directory. Copy this directory over previously
unpacked Eclipse 3.2 directory, say  "Yes" to overwrite whenever it asks.

Then run this Eclipse 3.2 installation, select new workspace directory. Then select menu "File"->"Import",
in  the newly appeared "Import"dialog expand "Plug-in Development", select "Plug-ins and Fragments",
click  "Next" button. In the next dialog uncheck the checkbox "The target platform (as specified
in the  preferences)", make sure that Plug-in location is set to your Eclipse 3.2 location.
Click "Source code  locations" button. When "Preferences" dialog is opened, go to "Source
code locations" tab, click "Add..."  button, and select the following location:
<patch to Eclipse 3.2>/plugins/org.eclipse.sdk.tests.source_3.2.0.v20060329/src
Click "Ok" to submit your selection, then click "Ok" to close "Preferences" dialog. Then click
"Next"  button in "Import Plug-ins and Fragments" dialog. In the next dialog ("Selection")
select  "org.eclipse.ui.tests" plug-in from the list and click "Add -->" button. Then click
"Finish" button to  close the dialog. 

Now the test suite 'ui' is imprted as an Eclipse project. You can expand the project and see
the sources in  "src-uitests" folder. I had to comment several lines in "plugin.xml" file
because some extensions  descriptions prevented the plug-in (test suite) from being correctly

When it shows no errors, select the project in "Package Explorer" view, then go to menu "Run"->"Run...",
 select "JUnit Plug-in Test", click "New" icon (left top corner). In the "Run" dialog, "Test"
tab check "Run  a single test" and specify

Project: ui
Test class: org.eclipse.ui.tests.UiTestSuite

Then go to the "Main" tab, select "Run an application" checkbox and select "org.eclipse.ui.ide.workbench"
 from the list. In the same tab click to "Installed JREs" button in order to specify the path
to Harmony JRE, then select it as "Runtime JRE" and click "Run" button. In a minute the suite
will be launched and you will  have "Junit" view opened with test and testcases tree. You
can use this view to re-run one testcase if  necessary. 

The test that failed is org.eclipse.ui.tests.operations.WorkbenchOperationStressTests.test115761,
it can be easily found in "Junit" view.

> [drlvm][gc_gen] EUT suite 'ui' crashes during stress test execution when gc_gen is used
with Out of Memory
> ----------------------------------------------------------------------------------------------------------
>                 Key: HARMONY-3941
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3941
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows XP/2003 (ia32) Linux SLES9 (ia32)
>            Reporter: Nina Rinskaya
>         Assigned To: Xiao-Feng Li
>         Attachments: stacktrace_linux.txt
> EUT suite 'ui' crashes (intermittently, but very often, ~9 times out of 10 runs) during
stress testcase (org.eclipse.ui.tests.operations.WorkbenchOperationStressTests.test115761)
execution when gc_gen is used with one of the following outputs:
> Windows:
> -----------------------------------
>      [java] Assertion failed: hythread_is_suspend_enabled(), file C:\labdrl_qa\CC-BT2.0
> \build\checkouts\drlvm\vm\vmcore\src\jni\jni.cpp, line 1568
>      This application has requested the Runtime to terminate it in an unusual way.
>      This application has requested the Runtime to terminate it in an unusual way.
>      Please contact the application's support team for more information.
>      Please contact the application's support team for more information.
>      Out of Memory!
> -----------------------------------
> or just:
> -----------------------------------
> Out of Memory!
> -----------------------------------
> Linux (please find full log attached):
> -----------------------------------
>      [exec]      [java] java: 
> /export/lab_drlbuild/_bta/build/checkouts/hdk/trunk/working_vm/vm/gc_gen/src/gen/gen.cpp:414:
> gc_gen_reclaim_heap(GC_Gen*):
>  Assertion `0' failed.
>      [exec]      [java] Out of Memory!
>      [exec]      [java] SIGABRT in VM code.
>      [exec]      [java] Stack trace:
>      [exec]      [java]   0: ?? (??:-1)
>      [exec]      [java]   1: abort (??:-1)
>      [exec]      [java]   2: __assert_fail (??:-1)
>      [exec]      [java]   3: gc_gen_reclaim_heap(GC_Gen*) 
> (/export/lab_drlbuild/_bta/build/checkouts/hdk/trunk/working_vm/vm/gc_gen/src/gen/gen.cpp:418)
>      [exec]      [java]   4: gc_reclaim_heap(GC*, unsigned int) 
> (/export/lab_drlbuild/_bta/build/checkouts/hdk/trunk/working_vm/vm/gc_gen/src/common/gc_common
> .cpp:297)
>      [exec]      [java]   5: fspace_alloc(unsigned int, Allocator*) 
> (/export/lab_drlbuild/_bta/build/checkouts/hdk/trunk/working_vm/vm/gc_gen/src/trace_forwar
> d/fspace_alloc.cpp:66)
>      [exec]      [java]   6: nos_alloc(unsigned int, Allocator*) 
> (/export/lab_drlbuild/_bta/build/checkouts/hdk/trunk/working_vm/vm/gc_gen/src/gen/gen.cpp:267
> )
>      [exec]      [java]   7: gc_alloc 
> (/export/lab_drlbuild/_bta/build/checkouts/hdk/trunk/working_vm/vm/gc_gen/src/thread/mutator_alloc.cpp:79)
>      [exec]      [java]   8: vm_new_vector_using_vtable_and_thread_pointer(int, unsigned
int, void*) 
> (/export/lab_drlbuild/_bta/build/checkouts/hdk/trunk/work
> ing_vm/vm/vmcore/src/object/vm_arrays.cpp:217)
>      [exec]      [java]   9: vm_rt_new_vector_using_vtable_and_thread_pointer(int, unsigned
int, void*) 
> (/export/lab_drlbuild/_bta/build/checkouts/hdk/trunk/w
> orking_vm/vm/vmcore/src/jit/jit_runtime_support.cpp:112)
>      [exec]      [java]  10: 0x41A58A35  <Generated stub>
>      [exec]      [java]  11: ?? (??:-1)
>      [exec]      [java]  12: java/lang/String.getBytes()[B (String.java:-1)
>      [exec]      [java]  13: java/io/PrintStream.print(Ljava/lang/String;)V (PrintStream.java:481)
>      [exec]      [java]  14: java/io/PrintStream.println(Ljava/lang/String;)V (PrintStream.java:-1)
>      [exec]      [java]  15: vm_invoke_native_array_stub 
> (/export/lab_drlbuild/_bta/build/checkouts/hdk/trunk/working_vm/vm/vmcore/src/util/ia32/base/invoke_n
> ative_stub_ia32.asm:41)
>      [exec]      [java]  16: JIT_execute_method_default(void*, _jmethodID*, jvalue*,
> (/export/lab_drlbuild/_bta/build/checkouts/hdk/trunk/working_vm/
> vm/vmcore/src/util/ia32/base/ini_iA32.cpp:199)
>      [exec]      [java]  17: DrlEMImpl::executeMethod(_jmethodID*, jvalue*, jvalue*)

> (/export/lab_drlbuild/_bta/build/checkouts/hdk/trunk/working_vm/vm/em/src
> /DrlEMImpl.cpp:509)
>      [exec]      [java]  18: ExecuteMethod 
> (/export/lab_drlbuild/_bta/build/checkouts/hdk/trunk/working_vm/vm/em/src/em_intf.cpp:43)
>      [exec]      [java]  19: vm_execute_java_method_array(_jmethodID*, jvalue*, jvalue*)

> (/export/lab_drlbuild/_bta/build/checkouts/hdk/trunk/working_vm/vm/vm
> core/src/jit/ini.cpp:60)
>      [exec]      [java]  20: call_method_no_ref_result 
> (/export/lab_drlbuild/_bta/build/checkouts/hdk/trunk/working_vm/vm/vmcore/src/jni/jni_method.cpp:187)
>      [exec]      [java]  21: CallVoidMethodA(JNIEnv_External*, _jobject*, _jmethodID*,
> (/export/lab_drlbuild/_bta/build/checkouts/hdk/trunk/working_v
> m/vm/vmcore/src/jni/jni_method.cpp:225)
>      [exec]      [java]  22: invoke_primitive_method 
> (/export/lab_drlbuild/_bta/build/checkouts/hdk/trunk/working_vm/vm/vmcore/src/kernel_classes/native/java_
> lang_reflect_VMReflection.cpp:186)
>      [exec]      [java]  23: org/eclipse/ui/tests/operations/WorkbenchOperationStressTests.test115761()V

> (WorkbenchOperationStressTests.java:63)
>      [exec]      [java]  24: 0x6E7A7A43  <Generated stub>
>      [exec]      [java]  25: ?? (??:-1)
> ...
> -----------------------------------
> The issue was never reproduced when running the same test suite with -XX:gc_cc.dll.
> Steps to reproduce: 
> * Download archive from https://issues.apache.org/jira/browse/HARMONY-3556, unpack it
to $work.dir
> * Change directory to $work.dir/tests/eut, update eut.properties file with appropriate
values (set test.jre.home to Harmony jre location, vm.options to "-Xmx700m -showversion").

> * Make sure that PATH environment variable contains JRE 1.5 (use RI) and Apache
> Ant (version >=1.6.5), and that JAVA_HOME and ANT_HOME are properly set up. Make
> sure that 'unzip' tool can also be found in your PATH.
> * If you use proxy server,
> specify proxy settings by setting ANT_OPTS environment variable:
> Windows:
>     set ANT_OPTS="-Dhttp.proxyHost=proxy.com -Dhttp.proxyPort=1111"
> Linux:
>     export ANT_OPTS="-Dhttp.proxyHost=proxy.com -Dhttp.proxyPort=1111"
> * For Linux only: make sure that X server is up and running and set $DISPLAY
> environment variable to the appropriate value.
> Run: 
> ant setup
> ant -Dtests="ui" | tee log
> When execution is complete, go through log file and consider the part of the log between
>      [exec]      [echo] Running org.eclipse.ui.tests.UiTestSuite
> and
>      [exec]      [echo] Running org.eclipse.jface.tests.AllTests
> Reproduced on: 
> svn = r540603, (May 22 2007), Windows/ia32/msvc 1310, debug build
> svn = r540593, (May 22 2007), Linux/ia32/gcc 3.3.3, debug build
> Please let me know if you have any troubles reproducing the issue.

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

View raw message