From: Tom de Vries via Gdb-patches <gdb-patches@sourceware.org>
To: gdb-patches@sourceware.org
Subject: Re: [committed][gdb/testsuite] Fix FAIL in gdb.mi/mi-var-child-f.exp
Date: Tue, 12 Oct 2021 14:28:56 +0200 [thread overview]
Message-ID: <aff2d6b1-87af-a0ee-00bb-c1212b7e47e8@suse.de> (raw)
In-Reply-To: <20211011150013.GA13792@delia.home>
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
prev parent reply other threads:[~2021-10-12 12:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-11 15:00 Tom de Vries via Gdb-patches
2021-10-12 12:28 ` Tom de Vries via Gdb-patches [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aff2d6b1-87af-a0ee-00bb-c1212b7e47e8@suse.de \
--to=gdb-patches@sourceware.org \
--cc=tdevries@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox