public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "tromey at sourceware dot org" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug build/30780] gdb: -Werror=stringop-overflow build failure
Date: Fri, 18 Aug 2023 13:46:36 +0000 [thread overview]
Message-ID: <bug-30780-4717-GaYfPoY9Gi@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-30780-4717@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=30780
Tom Tromey <tromey at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at sourceware dot org
--- Comment #2 from Tom Tromey <tromey at sourceware dot org> ---
(In reply to Arsen Arsenović from comment #1)
> this might be a gcc bug.
inlined from ‘value* call_function_by_hand_dummy(value*, type*,
gdb::array_view<value*>, void (*)(void*, int), void*)’ at infcall.c:1239:23:
Looking at the code I see:
/* Add the new argument to the front of the argument list. */
new_args.reserve (args.size ());
new_args.push_back
(value_from_pointer (lookup_pointer_type (values_type), struct_addr));
new_args.insert (new_args.end (), args.begin (), args.end ());
To me this looks like an off-by-one in the reserve call.
At the same time, that should be irrelevant because insert
ought to grow the vector anyway.
So I tend to agree that it is a compiler problem.
--
You are receiving this mail because:
You are on the CC list for the bug.
next prev parent reply other threads:[~2023-08-18 13:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-18 10:00 [Bug build/30780] New: " sam at gentoo dot org
2023-08-18 10:00 ` [Bug build/30780] " sam at gentoo dot org
2023-08-18 10:10 ` arsen at sourceware dot org
2023-08-18 13:46 ` tromey at sourceware dot org [this message]
2023-08-18 14:05 ` tromey at sourceware dot org
2023-08-18 19:07 ` cvs-commit at gcc dot gnu.org
2023-08-19 6:49 ` sam at gentoo dot org
2023-08-19 6:51 ` [Bug build/30780] gdb: -Werror=stringop-overflow build failure with -D_GLIBCXX_ASSERTIONS sam at gentoo dot org
2023-08-28 13:49 ` tromey at sourceware dot org
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=bug-30780-4717-GaYfPoY9Gi@http.sourceware.org/bugzilla/ \
--to=sourceware-bugzilla@sourceware.org \
--cc=gdb-prs@sourceware.org \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).