TCPServer#peeraddr on crashes JRuby
-----------------------------------

                 Key: JRUBY-2738
                 URL: http://jira.codehaus.org/browse/JRUBY-2738
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.1.2
         Environment: Latest JRuby
            Reporter: Vladimir Sizikov
            Assignee: Vladimir Sizikov
             Fix For: JRuby 1.1.3


require 'socket'
server = TCPServer.new(5555)
server.peeraddr

This crasesh JRuby:

{noformat}
Exception in thread "main" java.lang.NullPointerException
        at org.jruby.ext.socket.RubyIPSocket.addrFor(RubyIPSocket.java:73)
        at org.jruby.ext.socket.RubyIPSocket.peeraddr(RubyIPSocket.java:90)
        at 
org.jruby.ext.socket.RubyIPSocketInvoker$peeraddr_method_0_0.call(Unknown 
Source)
        at 
org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:117)
        at 
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:306)
        at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:57)
        at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
        at org.jruby.ast.RootNode.interpret(RootNode.java:126)
        at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:87)
        at 
org.jruby.evaluator.ASTInterpreter.evalWithBinding(ASTInterpreter.java:140)
        at org.jruby.RubyKernel.eval(RubyKernel.java:829)
        at org.jruby.RubyKernelInvoker$eval_s_method_0_3.call(Unknown Source)
        at 
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:126)
        at 
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:273)
{noformat}

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

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to