« Return to Thread: [jira] Created: (RVM-700) Not running class initializer for InetAddress causing ServerSocket failures

[jira] Created: (RVM-700) Not running class initializer for InetAddress causing ServerSocket failures

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View in Thread

Not running class initializer for InetAddress causing ServerSocket failures
---------------------------------------------------------------------------

                 Key: RVM-700
                 URL: http://jira.codehaus.org/browse/RVM-700
             Project: RVM
          Issue Type: Bug
          Components: Runtime: Class Library: GNU Classpath
    Affects Versions: 3.0.1
            Reporter: Ian Rogers
            Assignee: Ian Rogers
             Fix For: 3.0.2


Suriya Subramanian noticed that ServerSockets had broken in recent RVM releases, this was due to a change in the primordials and not adding the corresponding execution of the class initializer. If we'd be running mauve or similar regressions this would have been picked up. Below is Suriya's original e-mail:


Hi all,

I have a simple program that demonstrates different behavior with different
versions of Jikes RVM. Jikes RVM 2.9.1 produces same output as Sun's JVM.
3.0.1 causes a SocketException when trying to create a new ServerSocket.

I am trying to run Jetty webserver (http://www.mortbay.org/jetty/) and it
comes down crashing with a segmentation fault on 3.0.1. The program below
might explain why.

Does anyone an idea why this fails? Any solutions/workarounds? Would using
a different version of classpath help? I am working towards PLDI and I'd be
really grateful for a quick response.

$ cat Server.java
public class Server {
 public static void main(String a[]) {
   try {
     new java.net.ServerSocket(8000);
     System.err.println("No exception");
   } catch (java.io.IOException ioe) {
     System.err.println(ioe.toString());
   }
 }
}
$ java Server
No exception
$ ./jikesrvm-2.9.1/dist/prototype_ia32-linux/rvm Server
No exception
$ ./jikesrvm-3.0.1/dist/prototype_ia32-linux/rvm Server
java.net.SocketException: Unresolved address

Thanks,
Suriya

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

       

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Jikesrvm-issues mailing list
Jikesrvm-issues@...
https://lists.sourceforge.net/lists/listinfo/jikesrvm-issues

 « Return to Thread: [jira] Created: (RVM-700) Not running class initializer for InetAddress causing ServerSocket failures