You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Elena Semukhina (JIRA)" <ji...@apache.org> on 2007/02/27 15:17:05 UTC
[jira] Created: (HARMONY-3256) [drlvm][thread manager] Waiting
thread gets InterruptedException with long delay
[drlvm][thread manager] Waiting thread gets InterruptedException with long delay
--------------------------------------------------------------------------------
Key: HARMONY-3256
URL: https://issues.apache.org/jira/browse/HARMONY-3256
Project: Harmony
Issue Type: Bug
Components: DRLVM
Reporter: Elena Semukhina
The kernel test ThreadTest.testInterrupt_Waiting() fails intermittently with the message "waiting thread has not received the InterruptedException".
This is easily reproduced on 2CPU x 4 core machine but happens much more rarely on 2 CPU machine. I usually see the failure on Windows 2003 2CPU x 4 core.
The attached test shows up the issue.
Some threads which are in the TIMED_WAITING state don't get InterruptedException in reasonable time (5 sec in the attached test). The test needs WAIT_CONDITION_TIME to be set nearly the same as THREAD_WAIT_TIME to pass.
Threads which are in the WAITING state don't get exception at all (intermittently).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-3256) [drlvm][thread manager] Waiting
thread gets InterruptedException with long delay
Posted by "Elena Semukhina (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12477288 ]
Elena Semukhina commented on HARMONY-3256:
------------------------------------------
I tried the patch. The attached test works properly.
I'll run the kernel tests iteratively over weekend to see if this fix is relevant to intermittent failure of ThreadTest.testInterrupt_Waiting().
> [drlvm][thread manager] Waiting thread gets InterruptedException with long delay
> --------------------------------------------------------------------------------
>
> Key: HARMONY-3256
> URL: https://issues.apache.org/jira/browse/HARMONY-3256
> Project: Harmony
> Issue Type: Bug
> Components: DRLVM
> Reporter: Elena Semukhina
> Assigned To: weldon washburn
> Attachments: H-3256.patch, TestInterruptTimedWaiting.java
>
>
> The kernel test ThreadTest.testInterrupt_Waiting() fails intermittently with the message "waiting thread has not received the InterruptedException".
> This is easily reproduced on 2CPU x 4 core machine but happens much more rarely on 2 CPU machine. I usually see the failure on Windows 2003 2CPU x 4 core.
> The attached test shows up the issue.
> Some threads which are in the TIMED_WAITING state don't get InterruptedException in reasonable time (5 sec in the attached test). The test needs WAIT_CONDITION_TIME to be set nearly the same as THREAD_WAIT_TIME to pass.
> Threads which are in the WAITING state don't get exception at all (intermittently).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-3256) [drlvm][thread manager] Waiting
thread gets InterruptedException with long delay
Posted by "Salikh Zakirov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12476971 ]
Salikh Zakirov commented on HARMONY-3256:
-----------------------------------------
Strangely, the patch has no waited_monitor assigment.
> [drlvm][thread manager] Waiting thread gets InterruptedException with long delay
> --------------------------------------------------------------------------------
>
> Key: HARMONY-3256
> URL: https://issues.apache.org/jira/browse/HARMONY-3256
> Project: Harmony
> Issue Type: Bug
> Components: DRLVM
> Reporter: Elena Semukhina
> Assigned To: weldon washburn
> Attachments: H-3256.patch, TestInterruptTimedWaiting.java
>
>
> The kernel test ThreadTest.testInterrupt_Waiting() fails intermittently with the message "waiting thread has not received the InterruptedException".
> This is easily reproduced on 2CPU x 4 core machine but happens much more rarely on 2 CPU machine. I usually see the failure on Windows 2003 2CPU x 4 core.
> The attached test shows up the issue.
> Some threads which are in the TIMED_WAITING state don't get InterruptedException in reasonable time (5 sec in the attached test). The test needs WAIT_CONDITION_TIME to be set nearly the same as THREAD_WAIT_TIME to pass.
> Threads which are in the WAITING state don't get exception at all (intermittently).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (HARMONY-3256) [drlvm][thread manager] Waiting
thread gets InterruptedException with long delay
Posted by "weldon washburn (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3256?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
weldon washburn reassigned HARMONY-3256:
----------------------------------------
Assignee: weldon washburn
> [drlvm][thread manager] Waiting thread gets InterruptedException with long delay
> --------------------------------------------------------------------------------
>
> Key: HARMONY-3256
> URL: https://issues.apache.org/jira/browse/HARMONY-3256
> Project: Harmony
> Issue Type: Bug
> Components: DRLVM
> Reporter: Elena Semukhina
> Assigned To: weldon washburn
> Attachments: H-3256.patch, TestInterruptTimedWaiting.java
>
>
> The kernel test ThreadTest.testInterrupt_Waiting() fails intermittently with the message "waiting thread has not received the InterruptedException".
> This is easily reproduced on 2CPU x 4 core machine but happens much more rarely on 2 CPU machine. I usually see the failure on Windows 2003 2CPU x 4 core.
> The attached test shows up the issue.
> Some threads which are in the TIMED_WAITING state don't get InterruptedException in reasonable time (5 sec in the attached test). The test needs WAIT_CONDITION_TIME to be set nearly the same as THREAD_WAIT_TIME to pass.
> Threads which are in the WAITING state don't get exception at all (intermittently).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HARMONY-3256) [drlvm][thread manager] Waiting
thread gets InterruptedException with long delay
Posted by "Elena Semukhina (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3256?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Elena Semukhina updated HARMONY-3256:
-------------------------------------
Attachment: TestInterruptTimedWaiting.java
> [drlvm][thread manager] Waiting thread gets InterruptedException with long delay
> --------------------------------------------------------------------------------
>
> Key: HARMONY-3256
> URL: https://issues.apache.org/jira/browse/HARMONY-3256
> Project: Harmony
> Issue Type: Bug
> Components: DRLVM
> Reporter: Elena Semukhina
> Attachments: TestInterruptTimedWaiting.java
>
>
> The kernel test ThreadTest.testInterrupt_Waiting() fails intermittently with the message "waiting thread has not received the InterruptedException".
> This is easily reproduced on 2CPU x 4 core machine but happens much more rarely on 2 CPU machine. I usually see the failure on Windows 2003 2CPU x 4 core.
> The attached test shows up the issue.
> Some threads which are in the TIMED_WAITING state don't get InterruptedException in reasonable time (5 sec in the attached test). The test needs WAIT_CONDITION_TIME to be set nearly the same as THREAD_WAIT_TIME to pass.
> Threads which are in the WAITING state don't get exception at all (intermittently).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (HARMONY-3256) [drlvm][thread manager] Waiting
thread gets InterruptedException with long delay
Posted by "weldon washburn (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3256?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
weldon washburn closed HARMONY-3256.
------------------------------------
Resolution: Fixed
build, build test passes on windowsxp 32 and RHEL 4.0 w/ gcc 4.0.2
> [drlvm][thread manager] Waiting thread gets InterruptedException with long delay
> --------------------------------------------------------------------------------
>
> Key: HARMONY-3256
> URL: https://issues.apache.org/jira/browse/HARMONY-3256
> Project: Harmony
> Issue Type: Bug
> Components: DRLVM
> Reporter: Elena Semukhina
> Assigned To: weldon washburn
> Attachments: H-3256.patch, TestInterruptTimedWaiting.java
>
>
> The kernel test ThreadTest.testInterrupt_Waiting() fails intermittently with the message "waiting thread has not received the InterruptedException".
> This is easily reproduced on 2CPU x 4 core machine but happens much more rarely on 2 CPU machine. I usually see the failure on Windows 2003 2CPU x 4 core.
> The attached test shows up the issue.
> Some threads which are in the TIMED_WAITING state don't get InterruptedException in reasonable time (5 sec in the attached test). The test needs WAIT_CONDITION_TIME to be set nearly the same as THREAD_WAIT_TIME to pass.
> Threads which are in the WAITING state don't get exception at all (intermittently).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-3256) [drlvm][thread manager] Waiting
thread gets InterruptedException with long delay
Posted by "Salikh Zakirov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12477341 ]
Salikh Zakirov commented on HARMONY-3256:
-----------------------------------------
My bad, have confused NULL assignment. Please commit.
> [drlvm][thread manager] Waiting thread gets InterruptedException with long delay
> --------------------------------------------------------------------------------
>
> Key: HARMONY-3256
> URL: https://issues.apache.org/jira/browse/HARMONY-3256
> Project: Harmony
> Issue Type: Bug
> Components: DRLVM
> Reporter: Elena Semukhina
> Assigned To: weldon washburn
> Attachments: H-3256.patch, TestInterruptTimedWaiting.java
>
>
> The kernel test ThreadTest.testInterrupt_Waiting() fails intermittently with the message "waiting thread has not received the InterruptedException".
> This is easily reproduced on 2CPU x 4 core machine but happens much more rarely on 2 CPU machine. I usually see the failure on Windows 2003 2CPU x 4 core.
> The attached test shows up the issue.
> Some threads which are in the TIMED_WAITING state don't get InterruptedException in reasonable time (5 sec in the attached test). The test needs WAIT_CONDITION_TIME to be set nearly the same as THREAD_WAIT_TIME to pass.
> Threads which are in the WAITING state don't get exception at all (intermittently).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-3256) [drlvm][thread manager] Waiting
thread gets InterruptedException with long delay
Posted by "Alexey Varlamov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12534807 ]
Alexey Varlamov commented on HARMONY-3256:
------------------------------------------
Weldon,
The test needed some massaging before adding it to regression testing framework - otherwise it may be simply skipped during actual test runs:
1) There are naming conventions described in working_vm\src\test\regression\README.txt which should be followed;
2) Only JUnit tests are picked up automatically, all other tests need Ant launcher along them - just look around in neighbor tests for getting examples.
I fixed this particular test at revision: 584744 so now it really runs & passes on my laptop, please be careful in advance.
> [drlvm][thread manager] Waiting thread gets InterruptedException with long delay
> --------------------------------------------------------------------------------
>
> Key: HARMONY-3256
> URL: https://issues.apache.org/jira/browse/HARMONY-3256
> Project: Harmony
> Issue Type: Bug
> Components: DRLVM
> Reporter: Elena Semukhina
> Assignee: weldon washburn
> Attachments: H-3256.patch, TestInterruptTimedWaiting.java
>
>
> The kernel test ThreadTest.testInterrupt_Waiting() fails intermittently with the message "waiting thread has not received the InterruptedException".
> This is easily reproduced on 2CPU x 4 core machine but happens much more rarely on 2 CPU machine. I usually see the failure on Windows 2003 2CPU x 4 core.
> The attached test shows up the issue.
> Some threads which are in the TIMED_WAITING state don't get InterruptedException in reasonable time (5 sec in the attached test). The test needs WAIT_CONDITION_TIME to be set nearly the same as THREAD_WAIT_TIME to pass.
> Threads which are in the WAITING state don't get exception at all (intermittently).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HARMONY-3256) [drlvm][thread manager] Waiting
thread gets InterruptedException with long delay
Posted by "Peter Novodvorsky (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3256?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Peter Novodvorsky updated HARMONY-3256:
---------------------------------------
Attachment: H-3256.patch
This patch adds interrupter thead that waits until thread locks on condition waiting and then interrupts it. It should also fix HARMONY-3139 bug.
> [drlvm][thread manager] Waiting thread gets InterruptedException with long delay
> --------------------------------------------------------------------------------
>
> Key: HARMONY-3256
> URL: https://issues.apache.org/jira/browse/HARMONY-3256
> Project: Harmony
> Issue Type: Bug
> Components: DRLVM
> Reporter: Elena Semukhina
> Attachments: H-3256.patch, TestInterruptTimedWaiting.java
>
>
> The kernel test ThreadTest.testInterrupt_Waiting() fails intermittently with the message "waiting thread has not received the InterruptedException".
> This is easily reproduced on 2CPU x 4 core machine but happens much more rarely on 2 CPU machine. I usually see the failure on Windows 2003 2CPU x 4 core.
> The attached test shows up the issue.
> Some threads which are in the TIMED_WAITING state don't get InterruptedException in reasonable time (5 sec in the attached test). The test needs WAIT_CONDITION_TIME to be set nearly the same as THREAD_WAIT_TIME to pass.
> Threads which are in the WAITING state don't get exception at all (intermittently).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-3256) [drlvm][thread manager] Waiting
thread gets InterruptedException with long delay
Posted by "Peter Novodvorsky (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12476593 ]
Peter Novodvorsky commented on HARMONY-3256:
--------------------------------------------
I'm looking at this bug. It looks like it's the same as HARMONY-3139, however Elena was first to create test that exposes the bug so often.
Thanks, Elena!
> [drlvm][thread manager] Waiting thread gets InterruptedException with long delay
> --------------------------------------------------------------------------------
>
> Key: HARMONY-3256
> URL: https://issues.apache.org/jira/browse/HARMONY-3256
> Project: Harmony
> Issue Type: Bug
> Components: DRLVM
> Reporter: Elena Semukhina
> Attachments: TestInterruptTimedWaiting.java
>
>
> The kernel test ThreadTest.testInterrupt_Waiting() fails intermittently with the message "waiting thread has not received the InterruptedException".
> This is easily reproduced on 2CPU x 4 core machine but happens much more rarely on 2 CPU machine. I usually see the failure on Windows 2003 2CPU x 4 core.
> The attached test shows up the issue.
> Some threads which are in the TIMED_WAITING state don't get InterruptedException in reasonable time (5 sec in the attached test). The test needs WAIT_CONDITION_TIME to be set nearly the same as THREAD_WAIT_TIME to pass.
> Threads which are in the WAITING state don't get exception at all (intermittently).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-3256) [drlvm][thread manager] Waiting
thread gets InterruptedException with long delay
Posted by "Peter Novodvorsky (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12477273 ]
Peter Novodvorsky commented on HARMONY-3256:
--------------------------------------------
Please, commit the patch. Salikh already accepted that his comment was a mistake.
> [drlvm][thread manager] Waiting thread gets InterruptedException with long delay
> --------------------------------------------------------------------------------
>
> Key: HARMONY-3256
> URL: https://issues.apache.org/jira/browse/HARMONY-3256
> Project: Harmony
> Issue Type: Bug
> Components: DRLVM
> Reporter: Elena Semukhina
> Assigned To: weldon washburn
> Attachments: H-3256.patch, TestInterruptTimedWaiting.java
>
>
> The kernel test ThreadTest.testInterrupt_Waiting() fails intermittently with the message "waiting thread has not received the InterruptedException".
> This is easily reproduced on 2CPU x 4 core machine but happens much more rarely on 2 CPU machine. I usually see the failure on Windows 2003 2CPU x 4 core.
> The attached test shows up the issue.
> Some threads which are in the TIMED_WAITING state don't get InterruptedException in reasonable time (5 sec in the attached test). The test needs WAIT_CONDITION_TIME to be set nearly the same as THREAD_WAIT_TIME to pass.
> Threads which are in the WAITING state don't get exception at all (intermittently).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.