public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug compile/29198] New: [Regression] specified bound 4294967295 may exceed maximum object size 2147483647
@ 2022-05-30 19:11 danglin at gcc dot gnu.org
2022-05-30 19:27 ` [Bug compile/29198] " mark at klomp dot org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: danglin at gcc dot gnu.org @ 2022-05-30 19:11 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29198
Bug ID: 29198
Summary: [Regression] specified bound 4294967295 may exceed
maximum object size 2147483647
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: compile
Assignee: unassigned at sourceware dot org
Reporter: danglin at gcc dot gnu.org
CC: tromey at sourceware dot org
Target Milestone: ---
Host: hppa*-*-linux*
Target: hppa*-*-linux*
Build: hppa*-*-linux*
The following compile error was introduced by commit
8839e3f3b0d1af5d93ba1d4f667ce33936bb7db2:
CXX debuginfod-support.o
In file included from /usr/include/c++/11/string:40,
from ../../src/gdb/../gdbsupport/ptid.h:36,
from ../../src/gdb/../gdbsupport/common-defs.h:198,
from ../../src/gdb/defs.h:28,
from ../../src/gdb/debuginfod-support.c:19:
In static member function 'static constexpr const char_type*
std::char_traits<char>::find(const char_type*, std::size_t, const char_type&)',
inlined from 'constexpr std::basic_string_view<_CharT, _Traits>::size_type
std::basic_string_view<_CharT, _Traits>::find(_CharT,
std::basic_string_view<_CharT, _Traits>::size_type) const [with _CharT = char;
_Traits = std::char_traits<char>]' at
/usr/include/c++/11/bits/string_view.tcc:87:41,
inlined from 'constexpr std::basic_string_view<_CharT, _Traits>::size_type
std::basic_string_view<_CharT, _Traits>::find_first_of(_CharT,
std::basic_string_view<_CharT, _Traits>::size_type) const [with _CharT = char;
_Traits = std::char_traits<char>]' at /usr/include/c++/11/string_view:431:26,
inlined from 'bool debuginfod_is_enabled()' at
../../src/gdb/debuginfod-support.c:193:40:
/usr/include/c++/11/bits/char_traits.h:413:62: error: 'void*
__builtin_memchr(const void*, int, unsigned int)' specified bound 4294967295
may exceed maximum object size 2147483647 [-Werror=stringop-overread]
413 | return static_cast<const char_type*>(__builtin_memchr(__s, __a,
__n));
|
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [Makefile:1659: debuginfod-support.o] Error 1
make[2]: Leaving directory '/home/dave/gnu/binutils/objdir/gdb'
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug compile/29198] [Regression] specified bound 4294967295 may exceed maximum object size 2147483647
2022-05-30 19:11 [Bug compile/29198] New: [Regression] specified bound 4294967295 may exceed maximum object size 2147483647 danglin at gcc dot gnu.org
@ 2022-05-30 19:27 ` mark at klomp dot org
2022-05-30 22:39 ` danglin at gcc dot gnu.org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: mark at klomp dot org @ 2022-05-30 19:27 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29198
Mark Wielaard <mark at klomp dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mark at klomp dot org
--- Comment #1 from Mark Wielaard <mark at klomp dot org> ---
commit 716e54731f30bc60b2fc52996ebe4fc087420b2e
gdb: Workaround stringop-overread warning in debuginfod-support.c on s390x
commit 73a5cb257a21ad38c85932b7be4a903404d91899
gdb: Workaround stringop-overread warning in debuginfod-support.c on powerpc64
Maybe that fix should not be arch specific?
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug compile/29198] [Regression] specified bound 4294967295 may exceed maximum object size 2147483647
2022-05-30 19:11 [Bug compile/29198] New: [Regression] specified bound 4294967295 may exceed maximum object size 2147483647 danglin at gcc dot gnu.org
2022-05-30 19:27 ` [Bug compile/29198] " mark at klomp dot org
@ 2022-05-30 22:39 ` danglin at gcc dot gnu.org
2022-05-31 9:06 ` mark at klomp dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: danglin at gcc dot gnu.org @ 2022-05-30 22:39 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29198
--- Comment #2 from John David Anglin <danglin at gcc dot gnu.org> ---
Might this be a gcc bug?
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug compile/29198] [Regression] specified bound 4294967295 may exceed maximum object size 2147483647
2022-05-30 19:11 [Bug compile/29198] New: [Regression] specified bound 4294967295 may exceed maximum object size 2147483647 danglin at gcc dot gnu.org
2022-05-30 19:27 ` [Bug compile/29198] " mark at klomp dot org
2022-05-30 22:39 ` danglin at gcc dot gnu.org
@ 2022-05-31 9:06 ` mark at klomp dot org
2022-06-06 13:31 ` [Bug build/29198] " tromey at sourceware dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: mark at klomp dot org @ 2022-05-31 9:06 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29198
Mark Wielaard <mark at klomp dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=97185
--- Comment #3 from Mark Wielaard <mark at klomp dot org> ---
(In reply to John David Anglin from comment #2)
> Might this be a gcc bug?
Yes, I suspect it is https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97185 where
some range information is removed for some, but not all builtins causing the
impossible warning message about the string size.
I proposed the following patch to just always suppress this diagnostic for now
on all arches:
https://sourceware.org/pipermail/gdb-patches/2022-May/189603.html
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug build/29198] [Regression] specified bound 4294967295 may exceed maximum object size 2147483647
2022-05-30 19:11 [Bug compile/29198] New: [Regression] specified bound 4294967295 may exceed maximum object size 2147483647 danglin at gcc dot gnu.org
` (2 preceding siblings ...)
2022-05-31 9:06 ` mark at klomp dot org
@ 2022-06-06 13:31 ` tromey at sourceware dot org
2022-12-23 20:04 ` tromey at sourceware dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: tromey at sourceware dot org @ 2022-06-06 13:31 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29198
Tom Tromey <tromey at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|compile |build
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug build/29198] [Regression] specified bound 4294967295 may exceed maximum object size 2147483647
2022-05-30 19:11 [Bug compile/29198] New: [Regression] specified bound 4294967295 may exceed maximum object size 2147483647 danglin at gcc dot gnu.org
` (3 preceding siblings ...)
2022-06-06 13:31 ` [Bug build/29198] " tromey at sourceware dot org
@ 2022-12-23 20:04 ` tromey at sourceware dot org
2022-12-23 21:26 ` dave.anglin at bell dot net
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: tromey at sourceware dot org @ 2022-12-23 20:04 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29198
--- Comment #4 from Tom Tromey <tromey at sourceware dot org> ---
Is this fixed now?
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug build/29198] [Regression] specified bound 4294967295 may exceed maximum object size 2147483647
2022-05-30 19:11 [Bug compile/29198] New: [Regression] specified bound 4294967295 may exceed maximum object size 2147483647 danglin at gcc dot gnu.org
` (4 preceding siblings ...)
2022-12-23 20:04 ` tromey at sourceware dot org
@ 2022-12-23 21:26 ` dave.anglin at bell dot net
2022-12-23 21:42 ` mark at klomp dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: dave.anglin at bell dot net @ 2022-12-23 21:26 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29198
--- Comment #5 from dave.anglin at bell dot net ---
On 2022-12-23 3:04 p.m., tromey at sourceware dot org wrote:
> https://sourceware.org/bugzilla/show_bug.cgi?id=29198
>
> --- Comment #4 from Tom Tromey <tromey at sourceware dot org> ---
> Is this fixed now?
The error no longer occurs but I'm not sure the underlying cause was fixed.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug build/29198] [Regression] specified bound 4294967295 may exceed maximum object size 2147483647
2022-05-30 19:11 [Bug compile/29198] New: [Regression] specified bound 4294967295 may exceed maximum object size 2147483647 danglin at gcc dot gnu.org
` (5 preceding siblings ...)
2022-12-23 21:26 ` dave.anglin at bell dot net
@ 2022-12-23 21:42 ` mark at klomp dot org
2022-12-24 1:56 ` tromey at sourceware dot org
2022-12-24 10:43 ` mark at klomp dot org
8 siblings, 0 replies; 10+ messages in thread
From: mark at klomp dot org @ 2022-12-23 21:42 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29198
--- Comment #6 from Mark Wielaard <mark at klomp dot org> ---
The patch to suppress this warning was pushed:
commit dac0515d825e788dec188fff4d5b9d4ac7383f33
Author: Mark Wielaard <mark@klomp.org>
Date: Tue May 31 11:00:06 2022 +0200
gdb: Always suppress stringop-overread warning in debuginfod-support.c
Just like on s390x with g++ 11.2.1 and ppc64le with g++ 11.3.1 g++ 11
on hppa produces a spurious warning for stringop-overread in
debuginfod_is_enabled for url_view. Just always suppress it on all
arches.
https://sourceware.org/bugzilla/show_bug.cgi?id=29198
gdb/ChangeLog:
* debuginfod-support.c (debuginfod_is_enabled): Always use
DIAGNOSTIC_IGNORE_STRINGOP_OVERREAD.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug build/29198] [Regression] specified bound 4294967295 may exceed maximum object size 2147483647
2022-05-30 19:11 [Bug compile/29198] New: [Regression] specified bound 4294967295 may exceed maximum object size 2147483647 danglin at gcc dot gnu.org
` (6 preceding siblings ...)
2022-12-23 21:42 ` mark at klomp dot org
@ 2022-12-24 1:56 ` tromey at sourceware dot org
2022-12-24 10:43 ` mark at klomp dot org
8 siblings, 0 replies; 10+ messages in thread
From: tromey at sourceware dot org @ 2022-12-24 1:56 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29198
Tom Tromey <tromey at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #7 from Tom Tromey <tromey at sourceware dot org> ---
Ok, thanks. I'm going to close this.
> The error no longer occurs but I'm not sure the underlying cause was fixed.
IIUC the underlying cause is a compiler bug, so I suppose
there ought to be an entry in the GCC bugzilla.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug build/29198] [Regression] specified bound 4294967295 may exceed maximum object size 2147483647
2022-05-30 19:11 [Bug compile/29198] New: [Regression] specified bound 4294967295 may exceed maximum object size 2147483647 danglin at gcc dot gnu.org
` (7 preceding siblings ...)
2022-12-24 1:56 ` tromey at sourceware dot org
@ 2022-12-24 10:43 ` mark at klomp dot org
8 siblings, 0 replies; 10+ messages in thread
From: mark at klomp dot org @ 2022-12-24 10:43 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29198
--- Comment #8 from Mark Wielaard <mark at klomp dot org> ---
(In reply to Tom Tromey from comment #7)
> IIUC the underlying cause is a compiler bug, so I suppose
> there ought to be an entry in the GCC bugzilla.
That would be https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97185
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2022-12-24 10:43 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-30 19:11 [Bug compile/29198] New: [Regression] specified bound 4294967295 may exceed maximum object size 2147483647 danglin at gcc dot gnu.org
2022-05-30 19:27 ` [Bug compile/29198] " mark at klomp dot org
2022-05-30 22:39 ` danglin at gcc dot gnu.org
2022-05-31 9:06 ` mark at klomp dot org
2022-06-06 13:31 ` [Bug build/29198] " tromey at sourceware dot org
2022-12-23 20:04 ` tromey at sourceware dot org
2022-12-23 21:26 ` dave.anglin at bell dot net
2022-12-23 21:42 ` mark at klomp dot org
2022-12-24 1:56 ` tromey at sourceware dot org
2022-12-24 10:43 ` mark at klomp dot org
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).