Hi,
The issue is also reproducible on a Ubuntu 9.04 (clean) install.
jpantu...@tamserver:/export/xmpp/server/openfire/bin$ uname -a
Linux tamserver.xxx.xx 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17
01:57:59 UTC 2009 i686 GNU/Linux
jpantu...@tamserver:/export/xmpp/server/openfire/bin$ jruby -v
jruby 1.3.1 (ruby 1.8.6p287) (2009-06-15 2fd6c3d) (Java HotSpot(TM)
Client VM 1.6.0_14) [i386-java]
jpantu...@tamserver:/export/xmpp/server/openfire/bin$ jruby
-J-Djruby.backtrace.style=raw -rresolv -e' p
Resolv.getaddress("google.com") '
Thread.java:1436:in `getStackTrace': closed stream (IOError)
from RubyException.java:139:in `setBacktraceFrames'
from RaiseException.java:160:in `setException'
from RaiseException.java:72:in `<init>'
from Ruby.java:3033:in `newRaiseException'
from Ruby.java:2977:in `newIOError'
from OpenFile.java:151:in `checkClosed'
from RubyIO.java:304:in `getOpenFileChecked'
from RubyIO.java:357:in `getChannel'
from RubyUDPSocket.java:124:in `bind'
from
org/jruby/ext/socket/RubyUDPSocket$i_method_2_0$RUBYINVOKER$bind.gen:-1:in
`call'
from CachingCallSite.java:298:in `cacheAndCall'
from CachingCallSite.java:157:in `call'
from CallTwoArgNode.java:59:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from RescueNode.java:225:in `executeBody'
from RescueNode.java:147:in `interpretWithJavaExceptions'
from RescueNode.java:110:in `interpret'
from BeginNode.java:83:in `interpret'
from NewlineNode.java:104:in `interpret'
from InterpretedMethod.java:173:in `call'
from DefaultMethod.java:151:in `call'
from CachingCallSite.java:278:in `cacheAndCall'
from CachingCallSite.java:117:in `call'
from CallOneArgNode.java:57:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from InterpretedMethod.java:192:in `call'
from DefaultMethod.java:159:in `call'
from CachingCallSite.java:288:in `cacheAndCall'
from CachingCallSite.java:126:in `callBlock'
from CachingCallSite.java:131:in `call'
from RubyClass.java:616:in `call'
from DynamicMethod.java:164:in `call'
from CachingCallSite.java:278:in `cacheAndCall'
from CachingCallSite.java:117:in `call'
from CallOneArgNode.java:57:in `interpret'
from NewlineNode.java:104:in `interpret'
from IfNode.java:112:in `interpret'
from NewlineNode.java:104:in `interpret'
from InterpretedMethod.java:136:in `call'
from DefaultMethod.java:135:in `call'
from CachingCallSite.java:258:in `cacheAndCall'
from CachingCallSite.java:77:in `call'
from VCallNode.java:85:in `interpret'
from LocalAsgnNode.java:123:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from InterpretedMethod.java:229:in `call'
from DefaultMethod.java:175:in `call'
from CachingCallSite.java:308:in `cacheAndCall'
from CachingCallSite.java:166:in `callBlock'
from CachingCallSite.java:181:in `callIter'
from FCallTwoArgBlockNode.java:34:in `interpret'
from NewlineNode.java:104:in `interpret'
from InterpretedMethod.java:192:in `call'
from DefaultMethod.java:159:in `call'
from CachingCallSite.java:288:in `cacheAndCall'
from CachingCallSite.java:126:in `callBlock'
from CachingCallSite.java:131:in `call'
from CallOneArgBlockNode.java:60:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from InterpretedBlock.java:218:in `evalBlockBody'
from InterpretedBlock.java:169:in `yield'
from Block.java:194:in `yield'
from RubyArray.java:1562:in `each'
from org/jruby/RubyArray$i_method_0_0$RUBYFRAMEDINVOKER$each.gen:-1:in
`call'
from CachingCallSite.java:268:in `cacheAndCall'
from CachingCallSite.java:86:in `callBlock'
from CachingCallSite.java:91:in `call'
from CallNoArgBlockNode.java:64:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from InterpretedMethod.java:192:in `call'
from DefaultMethod.java:159:in `call'
from CachingCallSite.java:288:in `cacheAndCall'
from CachingCallSite.java:126:in `callBlock'
from CachingCallSite.java:141:in `callIter'
from FCallOneArgBlockNode.java:34:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from InterpretedMethod.java:173:in `call'
from DefaultMethod.java:151:in `call'
from CachingCallSite.java:278:in `cacheAndCall'
from CachingCallSite.java:117:in `call'
from CallOneArgNode.java:57:in `interpret'
from NewlineNode.java:104:in `interpret'
from InterpretedMethod.java:173:in `call'
from DefaultMethod.java:151:in `call'
from CachingCallSite.java:278:in `cacheAndCall'
from CachingCallSite.java:117:in `call'
from -e:1:in `__file__'
from -e:-1:in `load'
from Ruby.java:592:in `runScript'
from Ruby.java:514:in `runNormally'
from Ruby.java:360:in `runFromMain'
from Main.java:268:in `run'
from Main.java:113:in `run'
from Main.java:97:in `main'
Thanks,
jpa
On Tue, Aug 4, 2009 at 2:36 AM, Aman Gupta (JIRA)<[email protected]> wrote:
> Resolv.getaddress is broken on OSX 1.5
> --------------------------------------
>
> Key: JRUBY-3849
> URL: http://jira.codehaus.org/browse/JRUBY-3849
> Project: JRuby
> Issue Type: Bug
> Components: Core Classes/Modules
> Affects Versions: JRuby 1.3.1
> Environment: OSX Leopard
> Reporter: Aman Gupta
>
>
> fine on linux:
> {noformat}
> $ jruby -v
> jruby 1.3.1 (ruby 1.8.6p287) (2009-06-15 2fd6c3d) (Java HotSpot(TM) 64-Bit
> Server VM 1.5.0_17) [amd64-java]
>
> $ jruby -rresolv -e' p Resolv.getaddress("google.com") '
> "74.125.45.100"
> {noformat}
>
> broken on osx:
> {noformat}
> $ jruby -v
> jruby 1.4.0dev (ruby 1.8.6p287) (2009-08-03 6586) (Java HotSpot(TM) Client VM
> 1.5.0_19) [i386-java]
>
> $ jruby -rresolv -e' p Resolv.getaddress("google.com") '
> /custom/jruby/lib/ruby/1.8/resolv.rb:582:in `bind_random_port': closed stream
> (IOError)
> from /custom/jruby/lib/ruby/1.8/resolv.rb:680:in `initialize'
> from /custom/jruby/lib/ruby/1.8/resolv.rb:492:in `new'
> from /custom/jruby/lib/ruby/1.8/resolv.rb:492:in `make_requester'
> from /custom/jruby/lib/ruby/1.8/resolv.rb:463:in `each_resource'
> from /custom/jruby/lib/ruby/1.8/resolv.rb:422:in `each_address'
> from /custom/jruby/lib/ruby/1.8/resolv.rb:249:in `each_address'
> from /custom/jruby/lib/ruby/1.8/resolv.rb:248:in `each'
> from /custom/jruby/lib/ruby/1.8/resolv.rb:248:in `each_address'
> from /custom/jruby/lib/ruby/1.8/resolv.rb:232:in `getaddress'
> from /custom/jruby/lib/ruby/1.8/resolv.rb:204:in `getaddress'
>
> $ jruby -rresolv-replace -e' p Resolv.getaddress("google.com") '
> /custom/jruby/lib/ruby/1.8/resolv-replace.rb:27:in `bind': closed stream
> (IOError)
> {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
>
>
>
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email