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

View: New views
3 Messages — Rating Filter:   Alert me  

[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 Threaded | Show Only this Message

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

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

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

Reply to Author | View Threaded | Show Only this Message


     [ http://jira.codehaus.org/browse/RVM-700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ian Rogers closed RVM-700.
--------------------------

    Resolution: Fixed

Fixed in r15151

> 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

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

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

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/RVM-700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=178809#action_178809 ]

Filip Pizlo commented on RVM-700:
---------------------------------

The fix introduced a long delay in VM startup; a better fix is on the way from Daniel.

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

       

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Jikesrvm-issues mailing list
Jikesrvm-issues@...
https://lists.sourceforge.net/lists/listinfo/jikesrvm-issues