From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 08E9D3835428; Wed, 30 Jun 2021 09:30:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 08E9D3835428 From: "ahajkova at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/28030] New: ../../gdb/gdbtypes.c:5438: internal-error: Unexpected type field location kind: 4 Date: Wed, 30 Jun 2021 09:30:15 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ahajkova at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2021 09:30:16 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28030 Bug ID: 28030 Summary: ../../gdb/gdbtypes.c:5438: internal-error: Unexpected type field location kind: 4 Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: ahajkova at redhat dot com Target Milestone: --- Compile this code with g++ -g sb.C (using any recent GCC, although the line= 221 used below is for Fedora's default compiler, gcc-c++-11.1.1-3.fc34): #include #include int main() { std::istringstream in(" abc"); std::ostringstream out; in >> out.rdbuf(); puts(out.str().c_str()); } Then run: gdb -q -ex start -ex n -ex n -ex step -ex finish -ex step -ex n -ex "br 22= 1" -ex r a.out It crashes: Reading symbols from a.out... Temporary breakpoint 1 at 0x4022f2: file sb.cc, line 6. Starting program: /tmp/a.out=20 Temporary breakpoint 1, main () at sb.cc:6 6 std::istringstream in(" abc"); 7 std::ostringstream out; 8 in >> out.rdbuf(); std::__cxx11::basic_ostringstream, std::allocator >::rdbuf (this=3D0x7fffffffd400) at /usr/src/debug/gcc-11.1.1-3.fc34.x86_64/obj-x86_64-redhat-linux/x86_64-redh= at-linux/libstdc++-v3/include/sstream:908 908 rdbuf() const Run till exit from #0 std::__cxx11::basic_ostringstream, std::allocator >::rdbuf (this=3D0x7fffffffd40= 0) at /usr/src/debug/gcc-11.1.1-3.fc34.x86_64/obj-x86_64-redhat-linux/x86_64-redh= at-linux/libstdc++-v3/include/sstream:908 0x0000000000402364 in main () at sb.cc:8 8 in >> out.rdbuf(); Value returned is $1 =3D (std::__cxx11::basic_ostringstream, std::allocator >::__stringbuf_type *) 0x7fffffffd408 std::istream::operator>> (this=3D0x7fffffffd580, __sbout=3D0x7fffffffd408) at /usr/src/debug/gcc-11.1.1-3.fc34.x86_64/obj-x86_64-redhat-linux/x86_64-redh= at-linux/libstdc++-v3/include/bits/istream.tcc:211 211 basic_istream<_CharT, _Traits>:: 734 operator bool() const Breakpoint 2 at 0x7ffff7e3ec40: /usr/src/debug/gcc-11.1.1-3.fc34.x86_64/obj-x86_64-redhat-linux/x86_64-redh= at-linux/libstdc++-v3/include/istream:221. (8 locations) The program being debugged has been started already. Start it from the beginning? (y or n) y ../../gdb/gdbtypes.c:5438: internal-error: Unexpected type field location k= ind: 4 A problem internal to GDB has been detected, further debugging may prove unreliable. Quit this debugging session? (y or n) y This is a bug, please report it. For instructions, see: . ../../gdb/gdbtypes.c:5438: internal-error: Unexpected type field location k= ind: 4 A problem internal to GDB has been detected, further debugging may prove unreliable. Create a core file of GDB? (y or n) n --=20 You are receiving this mail because: You are on the CC list for the bug.=