public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "danglin at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug compile/29198] New: [Regression] specified bound 4294967295 may exceed maximum object size 2147483647
Date: Mon, 30 May 2022 19:11:52 +0000	[thread overview]
Message-ID: <bug-29198-4717@http.sourceware.org/bugzilla/> (raw)

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.

             reply	other threads:[~2022-05-30 19:11 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-30 19:11 danglin at gcc dot gnu.org [this message]
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

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-29198-4717@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).