public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug go/59506] New: net FAILs (timeout) on alpha
@ 2013-12-14 11:20 ubizjak at gmail dot com
  2013-12-14 11:30 ` [Bug go/59506] " ubizjak at gmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: ubizjak at gmail dot com @ 2013-12-14 11:20 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59506

            Bug ID: 59506
           Summary: net FAILs (timeout) on alpha
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: go
          Assignee: ian at airs dot com
          Reporter: ubizjak at gmail dot com

$ gmake GOTESTFLAGS=--keep net/check
panic: test timed out after 4m0s

goroutine 112 [running]:
testing.$nested6
        ../../../gcc-svn/trunk/libgo/go/testing/testing.go:596
created by time.goFunc
        ../../../gcc-svn/trunk/libgo/go/time/sleep.go:123

goroutine 1 [chan receive]:
testing.RunTests
        ../../../gcc-svn/trunk/libgo/go/testing/testing.go:472
testing.Main
        ../../../gcc-svn/trunk/libgo/go/testing/testing.go:403
main.main
       
/home/uros/gcc-build/alphaev68-unknown-linux-gnu/libgo/gotest13607/test/_testmain.go:167

goroutine 110 [IO wait]:
net.runtime_pollWait
        ../../../gcc-svn/trunk/libgo/runtime/netpoll.goc:121
net.Wait.pN12_net.pollDesc
       
/home/uros/gcc-build/alphaev68-unknown-linux-gnu/libgo/gotest13607/test/fd_poll_runtime.go:81
net.WaitWrite.pN12_net.pollDesc
       
/home/uros/gcc-build/alphaev68-unknown-linux-gnu/libgo/gotest13607/test/fd_poll_runtime.go:90
net.connect.pN9_net.netFD
       
/home/uros/gcc-build/alphaev68-unknown-linux-gnu/libgo/gotest13607/test/fd_unix.go:86
net.dial.pN9_net.netFD
       
/home/uros/gcc-build/alphaev68-unknown-linux-gnu/libgo/gotest13607/test/sock_posix.go:121
net.socket
       
/home/uros/gcc-build/alphaev68-unknown-linux-gnu/libgo/gotest13607/test/sock_posix.go:91
net.internetSocket
       
/home/uros/gcc-build/alphaev68-unknown-linux-gnu/libgo/gotest13607/test/ipsock_posix.go:136
net.dialTCP
       
/home/uros/gcc-build/alphaev68-unknown-linux-gnu/libgo/gotest13607/test/tcpsock_posix.go:155
net.dialSingle
       
/home/uros/gcc-build/alphaev68-unknown-linux-gnu/libgo/gotest13607/test/dial.go:225
net.$nested102
       
/home/uros/gcc-build/alphaev68-unknown-linux-gnu/libgo/gotest13607/test/dial.go:158
net.dial
       
/home/uros/gcc-build/alphaev68-unknown-linux-gnu/libgo/gotest13607/test/fd_unix.go:40
net.Dial.pN10_net.Dialer
       
/home/uros/gcc-build/alphaev68-unknown-linux-gnu/libgo/gotest13607/test/dial.go:165
net.Dial
       
/home/uros/gcc-build/alphaev68-unknown-linux-gnu/libgo/gotest13607/test/dial.go:138
net.TestSelfConnect
       
/home/uros/gcc-build/alphaev68-unknown-linux-gnu/libgo/gotest13607/test/dial_test.go:150
testing.tRunner
        ../../../gcc-svn/trunk/libgo/go/testing/testing.go:391
created by testing.RunTests
        ../../../gcc-svn/trunk/libgo/go/testing/testing.go:471

goroutine 13 [chan send]:
net.$nested4
       
/home/uros/gcc-build/alphaev68-unknown-linux-gnu/libgo/gotest13607/test/dial_test.go:58
created by net.TestDialTimeout
       
/home/uros/gcc-build/alphaev68-unknown-linux-gnu/libgo/gotest13607/test/dial_test.go:56

[... some 100 goroutines, all with the same backtrace ...]

goroutine 109 [chan send]:
net.$nested4
       
/home/uros/gcc-build/alphaev68-unknown-linux-gnu/libgo/gotest13607/test/dial_test.go:58
created by net.TestDialTimeout
       
/home/uros/gcc-build/alphaev68-unknown-linux-gnu/libgo/gotest13607/test/dial_test.go:56
Keeping gotest13607
FAIL: net
Makefile:4567: recipe for target 'net/check' failed
gmake: *** [net/check] Error 1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug go/59506] net FAILs (timeout) on alpha
  2013-12-14 11:20 [Bug go/59506] New: net FAILs (timeout) on alpha ubizjak at gmail dot com
@ 2013-12-14 11:30 ` ubizjak at gmail dot com
  2013-12-19 19:09 ` ubizjak at gmail dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: ubizjak at gmail dot com @ 2013-12-14 11:30 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59506

--- Comment #1 from Uroš Bizjak <ubizjak at gmail dot com> ---
Created attachment 31438
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31438&action=edit
strace -f output

Some ~30 seconds of strace dump.
>From gcc-bugs-return-437570-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Dec 14 11:31:43 2013
Return-Path: <gcc-bugs-return-437570-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13374 invoked by alias); 14 Dec 2013 11:31:43 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 13348 invoked by uid 48); 14 Dec 2013 11:31:39 -0000
From: "octoploid at yandex dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/59505] gcc-4.9.0-20131208 can't link glsl_compiler with -flto=4 in -m32 where gcc-4.8.2 works fine
Date: Sat, 14 Dec 2013 11:31:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: octoploid at yandex dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-59505-4-rQatHAtn0S@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59505-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59505-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-12/txt/msg01225.txt.bz2
Content-length: 805

http://gcc.gnu.org/bugzilla/show_bug.cgi?idY505

--- Comment #12 from Markus Trippelsdorf <octoploid at yandex dot com> ---
(In reply to David Kredba from comment #11)
> And I will try your binutils patch.
>
> Do you think that for 4.9.0 GCC release binutils will support
> slim-LTO-objects?
> LTO support for general use in Gentoo will not be enabled without it in my
> opinion. (But maybe if USE/FEATURE lto will be detected they can let
> ebuild/emerge export AS=gcc-as AR=gcc-ar NM=gcc-nm RANLIB=gcc-ranlib to
> environment.)

I'm not sure. I've posted the simple patch a while ago and it was ignored.
BTW the best solution would be if one could install *both* plugins
to the ../lib/bfd-plugins directory and the correct one would be used
automatically. I don't know if anyone is working on that.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug go/59506] net FAILs (timeout) on alpha
  2013-12-14 11:20 [Bug go/59506] New: net FAILs (timeout) on alpha ubizjak at gmail dot com
  2013-12-14 11:30 ` [Bug go/59506] " ubizjak at gmail dot com
@ 2013-12-19 19:09 ` ubizjak at gmail dot com
  2013-12-27 14:53 ` ian at airs dot com
  2013-12-27 21:44 ` ian at airs dot com
  3 siblings, 0 replies; 5+ messages in thread
From: ubizjak at gmail dot com @ 2013-12-19 19:09 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="UTF-8", Size: 3996 bytes --]

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59506

--- Comment #2 from Uroš Bizjak <ubizjak at gmail dot com> ---
This is the TestSelfConnect testcase (from net/dial_test.go) problem:

--cut here--
    // Try to connect to that address repeatedly.
    n := 100000
    if testing.Short() {
        n = 1000
    }
    switch runtime.GOOS {
    case "darwin", "dragonfly", "freebsd", "netbsd", "openbsd", "plan9",
"solaris", "windows":
        // Non-Linux systems take a long time to figure
        // out that there is nothing listening on localhost.
        n = 100
    }
    for i := 0; i < n; i++ {
        c, err := Dial("tcp", addr)
        if err == nil {
            c.Close()
            t.Errorf("#%d: Dial %q succeeded", i, addr)
        }
    }
--cut here--

The Dial takes approx a second to timeout on alpha (kernel 3.12.2, glibc 2.15),
so the test with 100000 connections timeouts. Changing the number of
repetitions to 100 "fixes" the test, while trying with 1000 still timeouts.

However, I would like to propose following patch to change Dial to DialTimeout
with a millisecond deterministic timeout:

--cut here--
Index: go/net/dial_test.go
===================================================================
--- go/net/dial_test.go (revision 206123)
+++ go/net/dial_test.go (working copy)
@@ -147,7 +147,7 @@
                n = 100
        }
        for i := 0; i < n; i++ {
-               c, err := Dial("tcp", addr)
+               c, err := DialTimeout("tcp", addr, time.Millisecond)
                if err == nil {
                        c.Close()
                        t.Errorf("#%d: Dial %q succeeded", i, addr)
--cut here--

Patched test succeeds without problems (and would probably succeed for other
special-cased OSes too), while I believe it still correctly tests for
selfconnect misfeature [1],[2].

[1] http://golang.org/issue/2690
[2] http://stackoverflow.com/questions/4949858/
>From gcc-bugs-return-438230-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Dec 19 19:43:37 2013
Return-Path: <gcc-bugs-return-438230-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 9620 invoked by alias); 19 Dec 2013 19:43:36 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 9601 invoked by uid 48); 19 Dec 2013 19:43:33 -0000
From: "egor_suvorov at mail dot ru" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/59564] False positive array -Warray-bounds check with -O2
Date: Thu, 19 Dec 2013 19:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egor_suvorov at mail dot ru
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-59564-4-gKGvwmgzkp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59564-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59564-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-12/txt/msg01885.txt.bz2
Content-length: 239

http://gcc.gnu.org/bugzilla/show_bug.cgi?idY564

--- Comment #1 from Egor Suvorov <egor_suvorov at mail dot ru> ---
Created attachment 31483
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id1483&actioníit
Preprocessed source file


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug go/59506] net FAILs (timeout) on alpha
  2013-12-14 11:20 [Bug go/59506] New: net FAILs (timeout) on alpha ubizjak at gmail dot com
  2013-12-14 11:30 ` [Bug go/59506] " ubizjak at gmail dot com
  2013-12-19 19:09 ` ubizjak at gmail dot com
@ 2013-12-27 14:53 ` ian at airs dot com
  2013-12-27 21:44 ` ian at airs dot com
  3 siblings, 0 replies; 5+ messages in thread
From: ian at airs dot com @ 2013-12-27 14:53 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59506

Ian Lance Taylor <ian at airs dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-12-27
     Ever confirmed|0                           |1

--- Comment #3 from Ian Lance Taylor <ian at airs dot com> ---
Thanks for the suggestion.

https://codereview.appspot.com/39200044


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug go/59506] net FAILs (timeout) on alpha
  2013-12-14 11:20 [Bug go/59506] New: net FAILs (timeout) on alpha ubizjak at gmail dot com
                   ` (2 preceding siblings ...)
  2013-12-27 14:53 ` ian at airs dot com
@ 2013-12-27 21:44 ` ian at airs dot com
  3 siblings, 0 replies; 5+ messages in thread
From: ian at airs dot com @ 2013-12-27 21:44 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59506

Ian Lance Taylor <ian at airs dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Ian Lance Taylor <ian at airs dot com> ---
Fixed, I hope.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-12-27 21:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-14 11:20 [Bug go/59506] New: net FAILs (timeout) on alpha ubizjak at gmail dot com
2013-12-14 11:30 ` [Bug go/59506] " ubizjak at gmail dot com
2013-12-19 19:09 ` ubizjak at gmail dot com
2013-12-27 14:53 ` ian at airs dot com
2013-12-27 21:44 ` ian at airs dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).