harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Popov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-3314) [jdktools][jpda] DRLVM hangs on exit while detaching thread
Date Mon, 04 Jun 2007 10:07:36 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-3314?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Ivan Popov updated HARMONY-3314:

    Attachment: jpda_threads_workaround.patch

Yes, the proposed solution is specific for JPDA threads only, it does not solve general problem
with terminating daemon threads.

I'm attaching patch 'jpda_threads_workaround.patch' with the suggested workaround for JPDA
threads (it also includes some useful cosmetic changes form previous patch '3314.patch').
With this patch I ran JPDA tests on that slow Linux/x86 machine where many tests failed due
to VM hang, and now all tests passed. Tests also passed on other Windows and Linux machines.
So, we can apply this workaround to resolve problem with JPDA threads.

Gregory, could you please commit patches 'jpda_threads_workaround.patch' and 'jpda_tests.patch'.

> [jdktools][jpda] DRLVM hangs on exit while detaching thread
> -----------------------------------------------------------
>                 Key: HARMONY-3314
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3314
>             Project: Harmony
>          Issue Type: Bug
>          Components: JDK
>         Environment: Linux/ia32, Windows/ia32, Harmony-jdk-r514598, Harmony-jdk-r533073
>            Reporter: Ivan Popov
>            Assignee: Gregory Shimansky
>         Attachments: 3314.patch, jpda_tests.patch, jpda_threads_workaround.patch
> Many JDWP tests run long time on Linux because DRLVM intermittently crashed at exit.
> For example, the following test
>   org.apache.harmony.jpda.tests.jdwp.Events.VMDeathTest
> Here is typical diagnostics in the test output:
> Waiting for debuggee exit
> STDERR> Stack trace:
> STDERR> 	1: ?? (??:-1)
> STDERR> addr2line: '[heap]': No such file
> Ignoring exception in ProcessWaiter thread interrupted: java.lang.InterruptedException
> # ERROR: Enforced debuggee termination
> To reproduce this failure:
> 1. create Harmony JDK with federated build:
>     svn checkout https://svn.apache.org/repos/asf/harmony/enhanced/trunk
>     cd trunk
>     ant
> 2. goto jdktools directory, add junit to classpath, and run particular test:
>     cd working_jdktools
>     export CLASSPATH=<...>/trunk/common_resources/depends/jars/junit_3.8.2/junit.jar
>     ant test -Dbuild.module=jpda -Dtest.case=org.apache.harmony.jpda.tests.jdwp.Events.VMDeathTest
> 3. see results in <...>/trunk/working_jdktools/build/test_report/html/index.html
> It is possible also to run test directly from command line:
>    cd working_jdktools
>    deploy/jdk/bin/java -classpath ../common_resources/depends/jars/junit_3.8.2/junit.jar:build/tests/classes
>    org.apache.harmony.jpda.tests.jdwp.Events.VMDeathTest

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

View raw message