From: v.ondruch@... Date: 2014-03-03T08:43:14+00:00 Subject: [ruby-core:61247] [ruby-trunk - Bug #9373] test_autobind(TestSocket_UNIXSocket) fails on PPC Issue #9373 has been updated by Vit Ondruch. So this issue was recently reported also into RH bugzilla [1] and Gustavo provided reproducer [2] for this issue: ``` #include #include int main() { int fd = socket(PF_LOCAL, SOCK_STREAM|SOCK_CLOEXEC, 0); int i = 1; setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &i, 4); struct sockaddr addr; addr.sa_family = AF_LOCAL; bind(fd, &addr, 2); listen(fd, 128); struct sockaddr_storage ss; socklen_t sslen = (socklen_t)sizeof(ss); getsockname(fd, (struct sockaddr*)&ss, &sslen); fd = socket(PF_LOCAL, SOCK_STREAM|SOCK_CLOEXEC, 0); if (connect(fd, (struct sockaddr*)&ss, sslen) == -1){ perror(NULL); return 1; } printf("OK\n"); return 0; } ``` [1] https://bugzilla.redhat.com/show_bug.cgi?id=1070206 [2] https://bugzilla.redhat.com/show_bug.cgi?id=1070206#c2 ---------------------------------------- Bug #9373: test_autobind(TestSocket_UNIXSocket) fails on PPC https://bugs.ruby-lang.org/issues/9373#change-45589 * Author: Vit Ondruch * Status: Open * Priority: Normal * Assignee: * Category: * Target version: * ruby -v: ruby 2.0.0p247 (2013-06-27) [powerpc-linux] * Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: UNKNOWN ---------------------------------------- =begin test_autobind(TestSocket_UNIXSocket) fails quite often on PPC: test_autobind(TestSocket_UNIXSocket): Errno::ECONNREFUSED: Connection refused - connect(2) /builddir/build/BUILD/ruby-2.0.0-p247/.ext/common/socket.rb:65:in `connect' /builddir/build/BUILD/ruby-2.0.0-p247/.ext/common/socket.rb:65:in `connect_internal' /builddir/build/BUILD/ruby-2.0.0-p247/.ext/common/socket.rb:135:in `connect' /builddir/build/BUILD/ruby-2.0.0-p247/.ext/common/socket.rb:765:in `unix' /builddir/build/BUILD/ruby-2.0.0-p247/test/socket/test_unix.rb:589:in `block in test_autobind' /builddir/build/BUILD/ruby-2.0.0-p247/.ext/common/socket.rb:806:in `unix_server_socket' /builddir/build/BUILD/ruby-2.0.0-p247/test/socket/test_unix.rb:585:in `test_autobind' =end -- http://bugs.ruby-lang.org/