Issue #14175 has been reported by vo.x (Vit Ondruch).

----------------------------------------
Bug #14175: TestResolvMDNS#test_mdns_each_address fails
https://bugs.ruby-lang.org/issues/14175

* Author: vo.x (Vit Ondruch)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.5.0dev (2017-12-12 trunk 61169) [powerpc64-linux]
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
I observe the following test error on Fedora builders:

~~~
  1) Error:
TestResolvMDNS#test_mdns_each_address:
Errno::EPERM: Operation not permitted - sendto(2) for "224.0.0.251" port 5353
    /builddir/build/BUILD/ruby-2.5.0-r61169/lib/resolv.rb:793:in `send'
    /builddir/build/BUILD/ruby-2.5.0-r61169/lib/resolv.rb:793:in `send'
    /builddir/build/BUILD/ruby-2.5.0-r61169/lib/resolv.rb:672:in `request'
    /builddir/build/BUILD/ruby-2.5.0-r61169/lib/resolv.rb:528:in `block in fetch_resource'
    /builddir/build/BUILD/ruby-2.5.0-r61169/lib/resolv.rb:1096:in `block (3 levels) in resolv'
    /builddir/build/BUILD/ruby-2.5.0-r61169/lib/resolv.rb:1094:in `each'
    /builddir/build/BUILD/ruby-2.5.0-r61169/lib/resolv.rb:1094:in `block (2 levels) in resolv'
    /builddir/build/BUILD/ruby-2.5.0-r61169/lib/resolv.rb:1093:in `each'
    /builddir/build/BUILD/ruby-2.5.0-r61169/lib/resolv.rb:1093:in `block in resolv'
    /builddir/build/BUILD/ruby-2.5.0-r61169/lib/resolv.rb:1091:in `each'
    /builddir/build/BUILD/ruby-2.5.0-r61169/lib/resolv.rb:1091:in `resolv'
    /builddir/build/BUILD/ruby-2.5.0-r61169/lib/resolv.rb:519:in `fetch_resource'
    /builddir/build/BUILD/ruby-2.5.0-r61169/lib/resolv.rb:509:in `each_resource'
    /builddir/build/BUILD/ruby-2.5.0-r61169/test/resolv/test_mdns.rb:12:in `test_mdns_each_address'
~~~

Unfortunately, I have failed to reproduce the issue locally so far, but it fails consistently on the builders :/ I suspect that it might happen when the DNS cannot resolve the addresses, when /etc/resolv.conf is not present on the system. 



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>