From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id qWvDBZ5/ZWHnVwAAWB0awg (envelope-from ) for ; Tue, 12 Oct 2021 08:29:18 -0400 Received: by simark.ca (Postfix, from userid 112) id 04AAE1F0BB; Tue, 12 Oct 2021 08:29:18 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,NICE_REPLY_A,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 372291E79C for ; Tue, 12 Oct 2021 08:29:17 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6CA933857406 for ; Tue, 12 Oct 2021 12:29:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6CA933857406 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1634041756; bh=RB54ZSq5LgOzCEyHrTaK8guKLnFfQaoSNsWOwlKRmu8=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=Vx3G0EwFdbZkUOyOVW0uKUK8A5KzErRiAcjV3+nb7b8FqrErjtG7XtN6NUruRXWu1 B2SNF7BH1GDc/7ABNiwDZni05HdPjTdAHs0DdqcRkpAXX2liovSz8imuw7u6tqS/YT yoF1VnUZS4jn4LaJp+kJp5+4evI7y97EiG7LHHa8= Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by sourceware.org (Postfix) with ESMTPS id 44DF93858430 for ; Tue, 12 Oct 2021 12:28:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 44DF93858430 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 6012F2008E; Tue, 12 Oct 2021 12:28:57 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 4422013B6F; Tue, 12 Oct 2021 12:28:57 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id e/0+D4l/ZWF0RAAAMHmgww (envelope-from ); Tue, 12 Oct 2021 12:28:57 +0000 Subject: Re: [committed][gdb/testsuite] Fix FAIL in gdb.mi/mi-var-child-f.exp To: gdb-patches@sourceware.org References: <20211011150013.GA13792@delia.home> Message-ID: Date: Tue, 12 Oct 2021 14:28:56 +0200 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: <20211011150013.GA13792@delia.home> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit 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: , From: Tom de Vries via Gdb-patches Reply-To: Tom de Vries Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" On 10/11/21 5:00 PM, Tom de Vries via Gdb-patches wrote: > Hi, > > When running test-case gdb.mi/mi-var-child-f.exp on openSUSE Tumbleweed > (with glibc 2.34) I run into: > ... > (gdb) ^M > PASS: gdb.mi/mi-var-child-f.exp: mi runto prog_array > Expecting: ^(-var-create array \* array[^M > ]+)?(\^done,name="array",numchild="[0-9]+",value=".*",type=.*,has_more="0"[^M > ]+[(]gdb[)] ^M > [ ]*) > -var-create array * array^M > &"Attempt to use a type name as an expression.\n"^M > ^error,msg="-var-create: unable to create variable object"^M > (gdb) ^M > FAIL: gdb.mi/mi-var-child-f.exp: create local variable array (unexpected output) > ... > > The problem is that the name array is used both: > - as the name for a local variable > - as the name of a type in glibc, in file malloc/dynarray-skeleton.c, as included > by nss/nss_files/files-hosts.c. > > Fix this by ignoring the shared lib symbols. > > Likewise in a couple of other fortran tests. > > Tested on x86_64-linux. > > Committed to trunk. Hmm, I just found https://bugzilla.redhat.com/show_bug.cgi?id=2012976 PR2012976 - "GDB's Fortran lexical analyzer can mis-categorize symbol tokens" which indicates that this is a symptom of an actual problem. Anyway, I don't think it's useful to revert the committed patch since there's no point in having this particular problem showing up in hundreds of FAILs. Thanks, - Tom