harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geir Magnusson Jr (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-1830) [drlvm][reliability] VM crashes on java.net.InetAddress.isReachable()
Date Fri, 03 Nov 2006 11:52:18 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-1830?page=comments#action_12446921 ] 
            
Geir Magnusson Jr commented on HARMONY-1830:
--------------------------------------------

Actually, as of r470644, I get the following on Ubuntu 6 : 

Iterations: 140
Iterations: 150
Iterations: 160
java.net.SocketException: Too many open files
        at org.apache.harmony.luni.platform.OSNetworkSystem.createSocketImpl(OSNetworkSystem.java)
        at org.apache.harmony.luni.platform.OSNetworkSystem.createSocket(OSNetworkSystem.java:78)
        at java.net.InetAddress.isReachableByTCP(InetAddress.java:878)
        at java.net.InetAddress.isReachable(InetAddress.java:791)
        at java.net.InetAddress.isReachable(InetAddress.java:762)
        at Test2.main(Test2.java:12)




> [drlvm][reliability] VM crashes on java.net.InetAddress.isReachable()
> ---------------------------------------------------------------------
>
>                 Key: HARMONY-1830
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1830
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Nikolay Bannikov
>         Assigned To: Geir Magnusson Jr
>
> VM crashes on java.net.InetAddress.isReachable() methods after 300 iterations.
> Note, that all works fine on RI.
> import java.net.*;
> class Test2{
>   public static void main(String[] args){
>     String[] arr = {"localhost", "localhost", "localhost", "localhost", "localhost",
"localhost"};
>     for(int j = 0; j < 500; j++) {
>       if (j % 10 == 0) {
>             System.out.println("Iterations: " + j);
>       }
>       try{
>         for(int i=0; i<arr.length; i++){
>           InetAddress inet = InetAddress.getByName(arr[i]);
>           inet.isReachable(1000);
>           inet = null;
>         }
>         System.gc();
>       }catch(Exception e){
>         e.printStackTrace();
>       }
>     }
>   }
> }
> HARMONY output:
> =============
> Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundation or
its licensors, as applicable.
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r450941, (Sep 28 2006), Windows/ia32/msvc 1310, release build http://incubator.apache.org/harmony
> Iterations: 260
> Iterations: 270
> Iterations: 280
> Iterations: 290
> Iterations: 300
> JNI.ExceptionDescribe: java/lang/NoClassDefFoundError:
> java/lang/NoClassDefFoundError : org/apache/harmony/luni/net/NetUtil
>  at java.net.InetAddress.isReachable (InetAddress.java: 788)
>  at java.net.InetAddress.isReachable (InetAddress.java: 759)
>  at Test2.main (Test2.java: 14)
> Error occured while running starter class: Exception left unhandled before destroying

> JNI.ExceptionDescribe: java/lang/NoClassDefFoundError:
> java/lang/NoClassDefFoundError : org/apache/harmony/luni/net/NetUtil
>  at java.net.InetAddress.isReachable (InetAddress.java: 788)
>  at java.net.InetAddress.isReachable (InetAddress.java: 759)
>  at Test2.main (Test2.java: 14)
> Error occured in starter class shutdown() method.
> An unhandled error (8) has occurred.
> HyGeneric_Signal_Number=00000008
> ExceptionCode=c0000006
> ExceptionAddress=7C35F0CB
> ContextFlags=0001003f
> Handler1=00401010
> Handler2=11105CE0
> EDI=00000000
> ESI=7C38CC8C
> EAX=7C35F0CB
> EBX=00252198
> ECX=7C38CCA4
> EDX=7C38B160
> EIP=7C35F0CB
> ESP=0013F7E8
> EBP=0013F820
> Module= \jdk\jre\bin\MSVCR71.dll
> Module_base_address=7C340000
> Offset_in_DLL=0001f0cb
> This application has requested the Runtime to terminate it in an unusual way.
> Please contact the application's support team for more information.

-- 
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

        

Mime
View raw message