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 2006/10/03 13:41:20 UTC

[jira] Created: (HARMONY-1669) Classlib test tests/api/java/io/PipedInputStreamTest hangs on Windows 2003

Classlib test tests/api/java/io/PipedInputStreamTest hangs on Windows 2003
--------------------------------------------------------------------------

                 Key: HARMONY-1669
                 URL: http://issues.apache.org/jira/browse/HARMONY-1669
             Project: Harmony
          Issue Type: Bug
          Components: DRLVM
            Reporter: Elena Semukhina
         Attachments: TestPipedInput1.java

Classlib test tests/api/java/io/PipedInputStreamTest hangs on 
2xXeon x64 (Woodcrest B, 2cores) / Bensley SDV, RAM: 4096MB, HDD: 120GB  
OS Windows 2003 32-bit SP1 
The test passes on my Windows XP.

To reproduce the issue please run 
ant -Dtest.jre.home=%DRLVM_HOME% -Dbuild.module=luni -Dtest.case=tests.api.java.io.PipedInputStreamTest test

NOTE: sometimes test passes.

I'll also attach a standalone test to reproduce the issue.



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HARMONY-1669) Classlib test tests/api/java/io/PipedInputStreamTest hangs on Windows 2003

Posted by "Geir Magnusson Jr (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-1669?page=comments#action_12439463 ] 
            
Geir Magnusson Jr commented on HARMONY-1669:
--------------------------------------------

onlyon 2003?  Any time on XP?

> Classlib test tests/api/java/io/PipedInputStreamTest hangs on Windows 2003
> --------------------------------------------------------------------------
>
>                 Key: HARMONY-1669
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1669
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Elena Semukhina
>         Attachments: TestPipedInput1.java
>
>
> Classlib test tests/api/java/io/PipedInputStreamTest hangs on 
> 2xXeon x64 (Woodcrest B, 2cores) / Bensley SDV, RAM: 4096MB, HDD: 120GB  
> OS Windows 2003 32-bit SP1 
> The test passes on my Windows XP.
> To reproduce the issue please run 
> ant -Dtest.jre.home=%DRLVM_HOME% -Dbuild.module=luni -Dtest.case=tests.api.java.io.PipedInputStreamTest test
> NOTE: sometimes test passes.
> I'll also attach a standalone test to reproduce the issue.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HARMONY-1669) Classlib test tests/api/java/io/PipedInputStreamTest hangs on Windows 2003

Posted by "Alexei Fedotov (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-1669?page=comments#action_12449530 ] 
            
Alexei Fedotov commented on HARMONY-1669:
-----------------------------------------

I was a bit surprised to find the following in text MSDN
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/profilerwp.asp

Problem 2: While you suspend the target thread, the target thread tries to suspend you.
You might say, "That can't happen!" Believe it or not, it can, if: 

Your application runs on a multiprocessor box, and 
Thread A runs on one processor and Thread B runs on another, and 
Thread A tries to suspend Thread B while Thread B tries to suspend Thread A. 

I like Windows* This validates the patch.

> Classlib test tests/api/java/io/PipedInputStreamTest hangs on Windows 2003
> --------------------------------------------------------------------------
>
>                 Key: HARMONY-1669
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1669
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Elena Semukhina
>         Attachments: TestPipedInput1.java, win32cyclic_suspend.patch
>
>
> Classlib test tests/api/java/io/PipedInputStreamTest hangs on 
> 2xXeon x64 (Woodcrest B, 2cores) / Bensley SDV, RAM: 4096MB, HDD: 120GB  
> OS Windows 2003 32-bit SP1 
> The test passes on my Windows XP.
> To reproduce the issue please run 
> ant -Dtest.jre.home=%DRLVM_HOME% -Dbuild.module=luni -Dtest.case=tests.api.java.io.PipedInputStreamTest test
> NOTE: sometimes test passes.
> I'll also attach a standalone test to reproduce the issue.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HARMONY-1669) Classlib test tests/api/java/io/PipedInputStreamTest hangs on Windows 2003

Posted by "Elena Semukhina (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-1669?page=comments#action_12439474 ] 
            
Elena Semukhina commented on HARMONY-1669:
------------------------------------------

Could not reproduce on XP. Neither on linux.


> Classlib test tests/api/java/io/PipedInputStreamTest hangs on Windows 2003
> --------------------------------------------------------------------------
>
>                 Key: HARMONY-1669
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1669
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Elena Semukhina
>         Attachments: TestPipedInput1.java
>
>
> Classlib test tests/api/java/io/PipedInputStreamTest hangs on 
> 2xXeon x64 (Woodcrest B, 2cores) / Bensley SDV, RAM: 4096MB, HDD: 120GB  
> OS Windows 2003 32-bit SP1 
> The test passes on my Windows XP.
> To reproduce the issue please run 
> ant -Dtest.jre.home=%DRLVM_HOME% -Dbuild.module=luni -Dtest.case=tests.api.java.io.PipedInputStreamTest test
> NOTE: sometimes test passes.
> I'll also attach a standalone test to reproduce the issue.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HARMONY-1669) Classlib test tests/api/java/io/PipedInputStreamTest hangs on Windows 2003

Posted by "Alexei Fedotov (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-1669?page=comments#action_12440570 ] 
            
Alexei Fedotov commented on HARMONY-1669:
-----------------------------------------

[drlvm][unit] Blocks http://wiki.apache.org/harmony/Unit_Tests_Pass_on_DRLVM 

> Classlib test tests/api/java/io/PipedInputStreamTest hangs on Windows 2003
> --------------------------------------------------------------------------
>
>                 Key: HARMONY-1669
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1669
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Elena Semukhina
>         Attachments: TestPipedInput1.java, win32cyclic_suspend.patch
>
>
> Classlib test tests/api/java/io/PipedInputStreamTest hangs on 
> 2xXeon x64 (Woodcrest B, 2cores) / Bensley SDV, RAM: 4096MB, HDD: 120GB  
> OS Windows 2003 32-bit SP1 
> The test passes on my Windows XP.
> To reproduce the issue please run 
> ant -Dtest.jre.home=%DRLVM_HOME% -Dbuild.module=luni -Dtest.case=tests.api.java.io.PipedInputStreamTest test
> NOTE: sometimes test passes.
> I'll also attach a standalone test to reproduce the issue.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HARMONY-1669) Classlib test tests/api/java/io/PipedInputStreamTest hangs on Windows 2003

Posted by "Alexey Varlamov (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-1669?page=comments#action_12450390 ] 
            
Alexey Varlamov commented on HARMONY-1669:
------------------------------------------

Yep, technically the solution looks rigth. 
Regarding the style, I'd prefer to declare pointer to critical section as static right there it is used, rather than juggle with initialization flags. Also, convert_priority() looks like a complete bogus - why didn't you just drop it?

> Classlib test tests/api/java/io/PipedInputStreamTest hangs on Windows 2003
> --------------------------------------------------------------------------
>
>                 Key: HARMONY-1669
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1669
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Elena Semukhina
>         Assigned To: Alexey Varlamov
>         Attachments: TestPipedInput1.java, win32cyclic_suspend.patch
>
>
> Classlib test tests/api/java/io/PipedInputStreamTest hangs on 
> 2xXeon x64 (Woodcrest B, 2cores) / Bensley SDV, RAM: 4096MB, HDD: 120GB  
> OS Windows 2003 32-bit SP1 
> The test passes on my Windows XP.
> To reproduce the issue please run 
> ant -Dtest.jre.home=%DRLVM_HOME% -Dbuild.module=luni -Dtest.case=tests.api.java.io.PipedInputStreamTest test
> NOTE: sometimes test passes.
> I'll also attach a standalone test to reproduce the issue.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-1669) Classlib test tests/api/java/io/PipedInputStreamTest hangs on Windows 2003

Posted by "Elena Semukhina (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1669?page=all ]

Elena Semukhina updated HARMONY-1669:
-------------------------------------

    Attachment: TestPipedInput1.java

the test attached.

> Classlib test tests/api/java/io/PipedInputStreamTest hangs on Windows 2003
> --------------------------------------------------------------------------
>
>                 Key: HARMONY-1669
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1669
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Elena Semukhina
>         Attachments: TestPipedInput1.java
>
>
> Classlib test tests/api/java/io/PipedInputStreamTest hangs on 
> 2xXeon x64 (Woodcrest B, 2cores) / Bensley SDV, RAM: 4096MB, HDD: 120GB  
> OS Windows 2003 32-bit SP1 
> The test passes on my Windows XP.
> To reproduce the issue please run 
> ant -Dtest.jre.home=%DRLVM_HOME% -Dbuild.module=luni -Dtest.case=tests.api.java.io.PipedInputStreamTest test
> NOTE: sometimes test passes.
> I'll also attach a standalone test to reproduce the issue.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HARMONY-1669) Classlib test tests/api/java/io/PipedInputStreamTest hangs on Windows 2003

Posted by "Artem Aliev (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-1669?page=comments#action_12450669 ] 
            
Artem Aliev commented on HARMONY-1669:
--------------------------------------

> Regarding the style, I'd prefer to declare pointer to critical section as static right there it is used, rather than juggle with initialization flags.
I do not know how to initialize static fields in the portlib at startup.
Suggestion? 

>  Also, convert_priority() looks like a complete bogus - why didn't you just drop it? 
There is no convert_priority() in the patch. Could you file a separate issue for this question.


> Classlib test tests/api/java/io/PipedInputStreamTest hangs on Windows 2003
> --------------------------------------------------------------------------
>
>                 Key: HARMONY-1669
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1669
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Elena Semukhina
>         Assigned To: Alexey Varlamov
>         Attachments: TestPipedInput1.java, win32cyclic_suspend.patch
>
>
> Classlib test tests/api/java/io/PipedInputStreamTest hangs on 
> 2xXeon x64 (Woodcrest B, 2cores) / Bensley SDV, RAM: 4096MB, HDD: 120GB  
> OS Windows 2003 32-bit SP1 
> The test passes on my Windows XP.
> To reproduce the issue please run 
> ant -Dtest.jre.home=%DRLVM_HOME% -Dbuild.module=luni -Dtest.case=tests.api.java.io.PipedInputStreamTest test
> NOTE: sometimes test passes.
> I'll also attach a standalone test to reproduce the issue.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-1669) Classlib test tests/api/java/io/PipedInputStreamTest hangs on Windows 2003

Posted by "Elena Semukhina (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1669?page=all ]

Elena Semukhina updated HARMONY-1669:
-------------------------------------

    Patch Info: [Patch Available]

> Classlib test tests/api/java/io/PipedInputStreamTest hangs on Windows 2003
> --------------------------------------------------------------------------
>
>                 Key: HARMONY-1669
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1669
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Elena Semukhina
>         Attachments: TestPipedInput1.java, win32cyclic_suspend.patch
>
>
> Classlib test tests/api/java/io/PipedInputStreamTest hangs on 
> 2xXeon x64 (Woodcrest B, 2cores) / Bensley SDV, RAM: 4096MB, HDD: 120GB  
> OS Windows 2003 32-bit SP1 
> The test passes on my Windows XP.
> To reproduce the issue please run 
> ant -Dtest.jre.home=%DRLVM_HOME% -Dbuild.module=luni -Dtest.case=tests.api.java.io.PipedInputStreamTest test
> NOTE: sometimes test passes.
> I'll also attach a standalone test to reproduce the issue.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (HARMONY-1669) Classlib test tests/api/java/io/PipedInputStreamTest hangs on Windows 2003

Posted by "Alexey Varlamov (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1669?page=all ]

Alexey Varlamov resolved HARMONY-1669.
--------------------------------------

    Resolution: Fixed

I cleaned the patch as suggested and applied at r476121. 
Please verify.

> Classlib test tests/api/java/io/PipedInputStreamTest hangs on Windows 2003
> --------------------------------------------------------------------------
>
>                 Key: HARMONY-1669
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1669
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Elena Semukhina
>         Assigned To: Alexey Varlamov
>         Attachments: TestPipedInput1.java, win32cyclic_suspend.patch
>
>
> Classlib test tests/api/java/io/PipedInputStreamTest hangs on 
> 2xXeon x64 (Woodcrest B, 2cores) / Bensley SDV, RAM: 4096MB, HDD: 120GB  
> OS Windows 2003 32-bit SP1 
> The test passes on my Windows XP.
> To reproduce the issue please run 
> ant -Dtest.jre.home=%DRLVM_HOME% -Dbuild.module=luni -Dtest.case=tests.api.java.io.PipedInputStreamTest test
> NOTE: sometimes test passes.
> I'll also attach a standalone test to reproduce the issue.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-1669) Classlib test tests/api/java/io/PipedInputStreamTest hangs on Windows 2003

Posted by "Artem Aliev (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1669?page=all ]

Artem Aliev updated HARMONY-1669:
---------------------------------

    Attachment: win32cyclic_suspend.patch

The win32 SuspendThread has cyclic suspend problem (as we have recently)
I add synchronization to solve the problem. 
The test passed.


> Classlib test tests/api/java/io/PipedInputStreamTest hangs on Windows 2003
> --------------------------------------------------------------------------
>
>                 Key: HARMONY-1669
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1669
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Elena Semukhina
>         Attachments: TestPipedInput1.java, win32cyclic_suspend.patch
>
>
> Classlib test tests/api/java/io/PipedInputStreamTest hangs on 
> 2xXeon x64 (Woodcrest B, 2cores) / Bensley SDV, RAM: 4096MB, HDD: 120GB  
> OS Windows 2003 32-bit SP1 
> The test passes on my Windows XP.
> To reproduce the issue please run 
> ant -Dtest.jre.home=%DRLVM_HOME% -Dbuild.module=luni -Dtest.case=tests.api.java.io.PipedInputStreamTest test
> NOTE: sometimes test passes.
> I'll also attach a standalone test to reproduce the issue.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Assigned: (HARMONY-1669) Classlib test tests/api/java/io/PipedInputStreamTest hangs on Windows 2003

Posted by "Alexey Varlamov (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1669?page=all ]

Alexey Varlamov reassigned HARMONY-1669:
----------------------------------------

    Assignee: Alexey Varlamov

> Classlib test tests/api/java/io/PipedInputStreamTest hangs on Windows 2003
> --------------------------------------------------------------------------
>
>                 Key: HARMONY-1669
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1669
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Elena Semukhina
>         Assigned To: Alexey Varlamov
>         Attachments: TestPipedInput1.java, win32cyclic_suspend.patch
>
>
> Classlib test tests/api/java/io/PipedInputStreamTest hangs on 
> 2xXeon x64 (Woodcrest B, 2cores) / Bensley SDV, RAM: 4096MB, HDD: 120GB  
> OS Windows 2003 32-bit SP1 
> The test passes on my Windows XP.
> To reproduce the issue please run 
> ant -Dtest.jre.home=%DRLVM_HOME% -Dbuild.module=luni -Dtest.case=tests.api.java.io.PipedInputStreamTest test
> NOTE: sometimes test passes.
> I'll also attach a standalone test to reproduce the issue.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HARMONY-1669) Classlib test tests/api/java/io/PipedInputStreamTest hangs on Windows 2003

Posted by "Alexei Fedotov (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-1669?page=comments#action_12440195 ] 
            
Alexei Fedotov commented on HARMONY-1669:
-----------------------------------------

My quick guess is that server likely has more processor power, so it is a better candidate for any race condition.

> Classlib test tests/api/java/io/PipedInputStreamTest hangs on Windows 2003
> --------------------------------------------------------------------------
>
>                 Key: HARMONY-1669
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1669
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Elena Semukhina
>         Attachments: TestPipedInput1.java
>
>
> Classlib test tests/api/java/io/PipedInputStreamTest hangs on 
> 2xXeon x64 (Woodcrest B, 2cores) / Bensley SDV, RAM: 4096MB, HDD: 120GB  
> OS Windows 2003 32-bit SP1 
> The test passes on my Windows XP.
> To reproduce the issue please run 
> ant -Dtest.jre.home=%DRLVM_HOME% -Dbuild.module=luni -Dtest.case=tests.api.java.io.PipedInputStreamTest test
> NOTE: sometimes test passes.
> I'll also attach a standalone test to reproduce the issue.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira