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

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).