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

[jira] Commented: (HARMONY-3314) [drlvm][threads] DRLVM hangs on exit while detaching thread

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

Rana Dasgupta commented on HARMONY-3314:
----------------------------------------

Ivan,
  I tried to repro this problem but on Linux I could not reproduce this at all. On Windows, I could frequently see exactly as below:

Waiting for debugee exit..
...and then a longish wait...
Ignoring exception in Processwaiter thread interrupted: java.lang.InterruptedException
#ERROR: Enforced debugee termination

Is this a workaround? Or expected behaviour?

 There is possibly more than one problem. I applied the shutdown patch shutdown_problem2.patch in JIRA issue 3582 and this appears to make the problem much less frequent, the debugee most often exits cleanly, but the above symptom still can be seen sometimes. There were no hanging java processes. Could you please try this patch, I am not 100% sure I understand the expected behaviour,

Thanks,
Rana



> [drlvm][threads] 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: DRLVM, JDK
>         Environment: Linux/ia32, Windows/ia32, Harmony-jdk-r514598, Harmony-jdk-r533073
>            Reporter: Ivan Popov
>         Assigned To: weldon washburn
>
> 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> SIGSEGV in VM code.
> 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.