From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 123750 invoked by alias); 12 Mar 2019 18:20:26 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 123515 invoked by uid 89); 12 Mar 2019 18:20:26 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-6.9 required=5.0 tests=BAYES_00,GIT_PATCH_2,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=1798, reproducing, sk:databas X-HELO: mail-wm1-f52.google.com Received: from mail-wm1-f52.google.com (HELO mail-wm1-f52.google.com) (209.85.128.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 12 Mar 2019 18:20:24 +0000 Received: by mail-wm1-f52.google.com with SMTP id y15so3713825wma.0 for ; Tue, 12 Mar 2019 11:20:24 -0700 (PDT) Return-Path: Received: from abulafia.quesejoda.com (46.red-79-159-61.dynamicip.rima-tde.net. [79.159.61.46]) by smtp.gmail.com with ESMTPSA id 132sm7223328wmd.27.2019.03.12.11.20.21 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Tue, 12 Mar 2019 11:20:21 -0700 (PDT) To: GCC Mailing List Cc: Ian Lance Taylor From: Aldy Hernandez Subject: debugging libgo failures Message-ID: <34d2fc8d-a827-8932-dfbe-4e3327c8cae9@redhat.com> Date: Tue, 12 Mar 2019 18:20:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-03/txt/msg00097.txt.bz2 Hi Ian. Hi folks. I have some libgo failures which I'm pretty sure I caused (see below for details), but I can't seem to figure out how to reproduce. Before I go down the rabbit hole, is there an easy way of reproducing say: FAIL: database/sql FAIL: net/http I'm used to scouring x86_64-pc-linux-gnu/libWHATEVER/testsuite/libWHATEVER.log and gaining insight on how to manually run tests. However, there's nothing in libgo/testsuite, and libgo/libgo.log just has a summary of tests. Ideally I'd like a way of building a test (with say -fdump-tree-all), and/or sticking gdb on the resulting executable. Thanks. Aldy --- FAIL: TestMaxIdleConns (0.00s) sql_test.go:1789: freeConns after set to zero = -1; want 0 sql_test.go:1798: freeConns = -1; want 0 panic: runtime error: makeslice: cap out of range [recovered] panic: runtime error: makeslice: cap out of range goroutine 202 [running]: panic /home/cygnus/aldyh/src/gcc/libgo/go/runtime/panic.go:588 testing.tRunner..func1 /home/cygnus/aldyh/src/gcc/libgo/go/testing/testing.go:765 panic /home/cygnus/aldyh/src/gcc/libgo/go/runtime/panic.go:535 database..z2fsql.DB.Close /home/cygnus/aldyh/bld/ranger/x86_64-pc-linux-gnu/libgo/gotest51314/test/sql.go:768 sql.closeDB /home/cygnus/aldyh/bld/ranger/x86_64-pc-linux-gnu/libgo/gotest51314/test/sql_test.go:140 database..z2fsql.TestMaxIdleConns /home/cygnus/aldyh/bld/ranger/x86_64-pc-linux-gnu/libgo/gotest51314/test/sql_test.go:1800 testing.tRunner /home/cygnus/aldyh/src/gcc/libgo/go/testing/testing.go:827 created by testing.T.Run /home/cygnus/aldyh/src/gcc/libgo/go/testing/testing.go:878 +1163 FAIL: database/sql [snip] [snip] net..z2fhttp.persistConn.writeLoop /home/cygnus/aldyh/bld/ranger/x86_64-pc-linux-gnu/32/libgo/gotest2965/test/transport.go:1888 created by net..z2fhttp.Transport.dialConn /home/cygnus/aldyh/bld/ranger/x86_64-pc-linux-gnu/32/libgo/gotest2965/test/transport.go:1339 +2693 eax 0x0 ebx 0x2 ecx 0xcbbdd84c edx 0x0 edi 0x0 esi 0x8 ebp 0xcbbdd84c esp 0xcbbdd830 eip 0xf7f93049 eflags 0x286 cs 0x23 fs 0x0 gs 0x63 FAIL: net/http