Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 6372 invoked from network); 20 Mar 2007 16:36:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Mar 2007 16:36:56 -0000 Received: (qmail 8641 invoked by uid 500); 20 Mar 2007 16:37:01 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 8604 invoked by uid 500); 20 Mar 2007 16:37:01 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 8551 invoked by uid 99); 20 Mar 2007 16:37:01 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Mar 2007 09:37:01 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Mar 2007 09:36:52 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B0380714083 for ; Tue, 20 Mar 2007 09:36:32 -0700 (PDT) Message-ID: <30945326.1174408592717.JavaMail.jira@brutus> Date: Tue, 20 Mar 2007 09:36:32 -0700 (PDT) From: "Ivan Popov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-3314) [drlvm][threads] DRLVM hangs on exit while detaching thread In-Reply-To: <11304542.1173198024499.JavaMail.root@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-3314?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ivan Popov updated HARMONY-3314: -------------------------------- Component/s: DRLVM Summary: [drlvm][threads] DRLVM hangs on exit while detaching thread (was: [jdktools][jpda] JDWP tests on Linux/ia32 cause intermittent DRLVM crash at exit) Since this problem relates to DRLVM kernel classes, I'm changing subject and linking this issue to DRLVM component. To reproduce it onehas to run JDWP test several times until it hangs and then attach gdb to a hung debuggee JVM. It's better to use -Xint mode for debuggee JVM, otherwise gdb is not able to print stack trace. Use the following command line to run test in a loop: cd working_jdktools while true; do \ deploy/jdk/bin/java -classpath ../common_resources/depends/jars/junit_3.8.2/junit.jar:build/tests/classes \ -Djpda.settings.timeout=6000000 -Djpda.settings.debuggeeVMExtraOptions=-Xint \ org.apache.harmony.jpda.tests.jdwp.Events.VMDeathTest ; \ done The test usually hangs after printing the following string: Waiting for debuggee exit > [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, Harmony-jdk-r514598 > Reporter: Ivan Popov > > 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.