You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexey Varlamov (JIRA)" <ji...@apache.org> on 2007/06/09 12:03:25 UTC

[jira] Created: (HARMONY-4116) [classlib][nio] SelectorTest.test_wakeup fails

[classlib][nio] SelectorTest.test_wakeup fails
----------------------------------------------

                 Key: HARMONY-4116
                 URL: https://issues.apache.org/jira/browse/HARMONY-4116
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
         Environment: SLES9@x86
SLES9@x86_64
            Reporter: Alexey Varlamov


The  org.apache.harmony.nio.tests.java.nio.channels.SelectorTest unit test fails on Linuxes:
java.net.SocketException 
at org.apache.harmony.luni.platform.OSNetworkSystem.select(OSNetworkSystem.java:312) 
at org.apache.harmony.nio.internal.SelectorImpl.selectInternal(SelectorImpl.java:190) 
at org.apache.harmony.nio.internal.SelectorImpl.select(SelectorImpl.java:157) 
at org.apache.harmony.nio.tests.java.nio.channels.SelectorTest.selectOnce(SelectorTest.java:549) 
at org.apache.harmony.nio.tests.java.nio.channels.SelectorTest.test_wakeup(SelectorTest.java:322) 
at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)

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


[jira] Commented: (HARMONY-4116) [classlib][nio] SelectorTest.test_wakeup fails

Posted by "Alexey Varlamov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-4116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12503047 ] 

Alexey Varlamov commented on HARMONY-4116:
------------------------------------------

Excluded the test on Linuxes.

> [classlib][nio] SelectorTest.test_wakeup fails
> ----------------------------------------------
>
>                 Key: HARMONY-4116
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4116
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: SLES9@x86
> SLES9@x86_64
>            Reporter: Alexey Varlamov
>
> The  org.apache.harmony.nio.tests.java.nio.channels.SelectorTest unit test fails on Linuxes:
> java.net.SocketException 
> at org.apache.harmony.luni.platform.OSNetworkSystem.select(OSNetworkSystem.java:312) 
> at org.apache.harmony.nio.internal.SelectorImpl.selectInternal(SelectorImpl.java:190) 
> at org.apache.harmony.nio.internal.SelectorImpl.select(SelectorImpl.java:157) 
> at org.apache.harmony.nio.tests.java.nio.channels.SelectorTest.selectOnce(SelectorTest.java:549) 
> at org.apache.harmony.nio.tests.java.nio.channels.SelectorTest.test_wakeup(SelectorTest.java:322) 
> at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)

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


[jira] Assigned: (HARMONY-4116) [classlib][nio] SelectorTest.test_wakeup fails

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Ellison reassigned HARMONY-4116:
------------------------------------

    Assignee: Tim Ellison

> [classlib][nio] SelectorTest.test_wakeup fails
> ----------------------------------------------
>
>                 Key: HARMONY-4116
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4116
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: SLES9@x86
> SLES9@x86_64
>            Reporter: Alexey Varlamov
>            Assignee: Tim Ellison
>         Attachments: patch_luni.diff
>
>
> The  org.apache.harmony.nio.tests.java.nio.channels.SelectorTest unit test fails on Linuxes:
> java.net.SocketException 
> at org.apache.harmony.luni.platform.OSNetworkSystem.select(OSNetworkSystem.java:312) 
> at org.apache.harmony.nio.internal.SelectorImpl.selectInternal(SelectorImpl.java:190) 
> at org.apache.harmony.nio.internal.SelectorImpl.select(SelectorImpl.java:157) 
> at org.apache.harmony.nio.tests.java.nio.channels.SelectorTest.selectOnce(SelectorTest.java:549) 
> at org.apache.harmony.nio.tests.java.nio.channels.SelectorTest.test_wakeup(SelectorTest.java:322) 
> at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)

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


[jira] Commented: (HARMONY-4116) [classlib][nio] SelectorTest.test_wakeup fails

Posted by "Sergey Dmitriev (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-4116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12504318 ] 

Sergey Dmitriev commented on HARMONY-4116:
------------------------------------------

Guys probably you'll find interesting info in HARMONY-3888 and HARMONY-3915.

Here is the quote from HARMONY-3915:
    After fixing JIRA#3888 suddenly SelectorTest.test_wakeup() started to
    fail. So fixed 3888 has discovered another issue with selector.
    As it turned out java.nio.channels.Selector.select([long timeout])
    wakes up and throws SocketException when some thread dies.


> [classlib][nio] SelectorTest.test_wakeup fails
> ----------------------------------------------
>
>                 Key: HARMONY-4116
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4116
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: SLES9@x86
> SLES9@x86_64
>            Reporter: Alexey Varlamov
>            Assignee: Tim Ellison
>         Attachments: patch_luni.diff
>
>
> The  org.apache.harmony.nio.tests.java.nio.channels.SelectorTest unit test fails on Linuxes:
> java.net.SocketException 
> at org.apache.harmony.luni.platform.OSNetworkSystem.select(OSNetworkSystem.java:312) 
> at org.apache.harmony.nio.internal.SelectorImpl.selectInternal(SelectorImpl.java:190) 
> at org.apache.harmony.nio.internal.SelectorImpl.select(SelectorImpl.java:157) 
> at org.apache.harmony.nio.tests.java.nio.channels.SelectorTest.selectOnce(SelectorTest.java:549) 
> at org.apache.harmony.nio.tests.java.nio.channels.SelectorTest.test_wakeup(SelectorTest.java:322) 
> at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)

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


[jira] Updated: (HARMONY-4116) [classlib][nio] SelectorTest.test_wakeup fails

Posted by "Leo Li (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leo Li updated HARMONY-4116:
----------------------------

    Attachment: patch_luni.diff

Hi, Alexey:
      I cannot reproduce the problem on my machine.  And  a review of the source code give me no hint what is wrong.
      And from the mailing list [1] the problem occurs intermittently. But the bad thing is that current harmony's code will not give any further information about the error.
      In the patch I give here is just to get the error number of the system call.  Could you apply it to the machine that  can reproduce the problem and see what is the error code?

Thanks
Leo.
[1]http://permalink.gmane.org/gmane.comp.java.harmony.devel/27494

> [classlib][nio] SelectorTest.test_wakeup fails
> ----------------------------------------------
>
>                 Key: HARMONY-4116
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4116
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: SLES9@x86
> SLES9@x86_64
>            Reporter: Alexey Varlamov
>         Attachments: patch_luni.diff
>
>
> The  org.apache.harmony.nio.tests.java.nio.channels.SelectorTest unit test fails on Linuxes:
> java.net.SocketException 
> at org.apache.harmony.luni.platform.OSNetworkSystem.select(OSNetworkSystem.java:312) 
> at org.apache.harmony.nio.internal.SelectorImpl.selectInternal(SelectorImpl.java:190) 
> at org.apache.harmony.nio.internal.SelectorImpl.select(SelectorImpl.java:157) 
> at org.apache.harmony.nio.tests.java.nio.channels.SelectorTest.selectOnce(SelectorTest.java:549) 
> at org.apache.harmony.nio.tests.java.nio.channels.SelectorTest.test_wakeup(SelectorTest.java:322) 
> at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)

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


[jira] Commented: (HARMONY-4116) [classlib][nio] SelectorTest.test_wakeup fails

Posted by "Vladimir Ivanov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-4116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12504179 ] 

Vladimir Ivanov commented on HARMONY-4116:
------------------------------------------

Leo, with your patch the test failed as:
    <error message="SocketException with errno-4" type="java.net.SocketException">java.net.SocketException: SocketException with errno-4
        at org.apache.harmony.luni.platform.OSNetworkSystem.select(OSNetworkSystem.java:312)
        at org.apache.harmony.nio.internal.SelectorImpl.selectInternal(SelectorImpl.java:190)
        at org.apache.harmony.nio.internal.SelectorImpl.select(SelectorImpl.java:167)
        at org.apache.harmony.nio.tests.java.nio.channels.SelectorTest.selectOnce(SelectorTest.java:552)
        at org.apache.harmony.nio.tests.java.nio.channels.SelectorTest.test_wakeup(SelectorTest.java:337)
        at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
</error>

 thanks, Vladimir

> [classlib][nio] SelectorTest.test_wakeup fails
> ----------------------------------------------
>
>                 Key: HARMONY-4116
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4116
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: SLES9@x86
> SLES9@x86_64
>            Reporter: Alexey Varlamov
>            Assignee: Tim Ellison
>         Attachments: patch_luni.diff
>
>
> The  org.apache.harmony.nio.tests.java.nio.channels.SelectorTest unit test fails on Linuxes:
> java.net.SocketException 
> at org.apache.harmony.luni.platform.OSNetworkSystem.select(OSNetworkSystem.java:312) 
> at org.apache.harmony.nio.internal.SelectorImpl.selectInternal(SelectorImpl.java:190) 
> at org.apache.harmony.nio.internal.SelectorImpl.select(SelectorImpl.java:157) 
> at org.apache.harmony.nio.tests.java.nio.channels.SelectorTest.selectOnce(SelectorTest.java:549) 
> at org.apache.harmony.nio.tests.java.nio.channels.SelectorTest.test_wakeup(SelectorTest.java:322) 
> at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)

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