From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id 1BD4E385482F for ; Mon, 19 Jul 2021 18:53:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1BD4E385482F Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 16JIrHXa019713 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 19 Jul 2021 14:53:22 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 16JIrHXa019713 Received: from [10.0.0.11] (192-222-157-6.qc.cable.ebox.net [192.222.157.6]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id 879F41E54D; Mon, 19 Jul 2021 14:53:17 -0400 (EDT) Subject: Re: [PATCH] gdb/testsuite: capture GDB tty name in default_gdb_spawn To: Bernd Edlinger , Tom Tromey , Simon Marchi via Gdb-patches References: <20210608212126.1673188-1-simon.marchi@polymtl.ca> <874ke7jcrv.fsf@tromey.com> <269336aa-5500-c03e-9e00-81279c24e5be@polymtl.ca> <87a6nxinjj.fsf@tromey.com> From: Simon Marchi Message-ID: Date: Mon, 19 Jul 2021 14:53:17 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Mon, 19 Jul 2021 18:53:17 +0000 X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jul 2021 18:53:27 -0000 > every time I do "make check-gdb" since this patch, > I see a SIGSEGV in /usr/bin/expect at the end: > > The symptoms are: > > === gdb Summary === > > # of expected passes 80145 > # of unexpected failures 867 > # of expected failures 72 > # of unknown successes 3 > # of known failures 121 > # of unresolved testcases 5 > # of untested testcases 41 > # of unsupported tests 257 > # of duplicate test names 100 > /home/ed/gnu/gdb-build-2/gdb/testsuite/../../gdb/gdb version 11.0.50.20210610-git -nw -nx -data-directory /home/ed/gnu/gdb-build-2/gdb/testsuite/../data-directory -iex "set height 0" -iex "set width 0" > > /bin/bash: line 1: 8471 Segmentation fault (core dumped) runtest --status > make[3]: *** [check-single] Error 139 > make[3]: Leaving directory `/home/ed/gnu/gdb-build-2/gdb/testsuite' > make[2]: *** [check] Error 2 > make[2]: Leaving directory `/home/ed/gnu/gdb-build-2/gdb/testsuite' > make[1]: *** [check] Error 2 > make[1]: Leaving directory `/home/ed/gnu/gdb-build-2/gdb' > make: *** [check-gdb] Error 2 > > > the crash is always: > > "expect -- /usr/share/dejagnu/runtest.exp --status" > > crashed with SIGSEGV in Tcl_GetChannelName() > > Do you have any idea what is wrong here, and how to fix it? I don't know, probably an Expect bug? Does it happen when running any test or when running a specific test? What version do you have? For reference, I have: - expect 5.45.4 - tcl 8.6.11 - dejagnu 1.6.2 And I don't see that. Simon