From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7D4E63858C41; Wed, 30 Aug 2023 06:56:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7D4E63858C41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1693378568; bh=LeU/gBBaObFXpjO7sV0HA4/HJ2OwL3hRfRM0zDJK25M=; h=From:To:Subject:Date:From; b=keuTJ7l0Xe3OFsMHoIUlB+NvVjJvjQXDrWCKWe9ti764J6eULXtUDvnNxKQ9qWs0Z iYBUzSA2RriDKK0VkijaMtnbWha94P8D3H3dWs3VGmSc/V2gsd8lmi6HCufcumflkV I9MUcj4GwRGi+bEJ4bW6vEImf5eJPUSYKOMGLI7M= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug symtab/30810] New: [gdb/symtab, stabs] gdbtypes.c:5596: internal-error: Unexpected type field location kind: 6 Date: Wed, 30 Aug 2023 06:56:07 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: symtab X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30810 Bug ID: 30810 Summary: [gdb/symtab, stabs] gdbtypes.c:5596: internal-error: Unexpected type field location kind: 6 Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: symtab Assignee: unassigned at sourceware dot org Reporter: vries at gcc dot gnu.org Target Milestone: --- When running test-case gdb.dwarf2/per-bfd-sharing.exp with make-check-all.s= h, I run into: ... TARGET BOARD: stabs ERROR: Could not resync from internal error (eof) ERROR: GDB process no longer exists FAIL: gdb.dwarf2/per-bfd-sharing.exp: first=3Dindex: second=3Dreadnow: thir= d=3Dindex: load third: file index (GDB internal error) FAIL: gdb.dwarf2/per-bfd-sharing.exp: first=3Dindex: second=3Dreadnow: third=3Dreadnow: load third: file readnow (GDB internal error) FAIL: gdb.dwarf2/per-bfd-sharing.exp: first=3Dindex: second=3Dreadnow: third=3Dstandard: load third: file (GDB internal error) # of expected passes 259 # of unexpected core files 6 # of unexpected failures 3 # of unresolved testcases 11 ... In more detail, using c++filt: ... (gdb) file build/gdb/testsuite/outputs/gdb.dwarf2/per-bfd-sharing/per-bfd-sharing Reading symbols from build/gdb/testsuite/outputs/gdb.dwarf2/per-bfd-sharing/per-bfd-sharing... Fatal signal: Segmentation fault ----- Backtrace ----- 0x59cca0 gdb_internal_backtrace_1 gdb/bt-utils.c:122 0x59cd43 gdb_internal_backtrace() gdb/bt-utils.c:168 0x790ce0 handle_fatal_signal gdb/event-top.c:889 0x790e4c handle_sigsegv gdb/event-top.c:962 0x7f91519d890f ??? =20=20=20=20=20=20=20 /usr/src/debug/glibc-2.31-150300.52.2.x86_64/nptl/../sysdeps/unix/sysv/linu= x/x86_64/sigaction.c:0 0x7f914f9cbdf7 __strlen_avx2 ../sysdeps/x86_64/multiarch/strlen-avx2.S:100 0x14844ac xstrdup libiberty/xstrdup.c:33 0x7efa63 copy_type_recursive(type*, htab*) gdb/gdbtypes.c:5572 0xd1c7c3 value::preserve(objfile*, htab*) gdb/value.c:2388 0xd1ca39 preserve_values(objfile*) gdb/value.c:2448 0x9940e2 objfile::~objfile() gdb/objfiles.c:532 0x997ad5 std::default_delete::operator()(objfile*) const /usr/include/c++/7/bits/unique_ptr.h:78 0x9974d2 std::unique_ptr >::~unique_p= tr() /usr/include/c++/7/bits/unique_ptr.h:263 0x9fccc3 void __gnu_cxx::new_allocator > > >::destroy > >(std::unique_ptr >*) /usr/include/c++/7/ext/new_allocator.h:140 0x9fc682 void std::allocator_traits > > > >::destroy > >(std::allocator > > >&, std::unique_ptr >*) /usr/include/c++/7/bits/alloc_traits.h:487 0x9fc269 std::__cxx11::list >, std::allocator > > >::_M_erase(std::_List_iterator > >) /usr/include/c++/7/bits/stl_list.h:1815 0x9fbabd std::__cxx11::list >, std::allocator > > >::erase(std::_List_const_iterator > >) /usr/include/c++/7/bits/list.tcc:157 0x9fa07d program_space::remove_objfile(objfile*) gdb/progspace.c:175 0x993f9f objfile::unlink() gdb/objfiles.c:470 0xbc8ab7 syms_from_objfile_1 gdb/symfile.c:936 0xbc8c7b syms_from_objfile gdb/symfile.c:983 0xbc9176 symbol_file_add_with_addrs gdb/symfile.c:1086 0xbc9503 symbol_file_add_from_bfd(gdb::ref_ptr con= st&, char const*, enum_flags, std::vector >*, enum_flags, objfile*) gdb/symfile.c:1167 0xbc9552 symbol_file_add(char const*, enum_flags, std::vector >*, enum_flags) gdb/symfile.c:1180 0xbc9617 symbol_file_add_main_1 gdb/symfile.c:1203 0xbcab69 symbol_file_command(char const*, int) gdb/symfile.c:1681 0x793660 file_command gdb/exec.c:554 0x5f5856 do_simple_func gdb/cli/cli-decode.c:95 0x5fa86a cmd_func(cmd_list_element*, char const*, int) gdb/cli/cli-decode.c:2735 0xc3f91f execute_command(char const*, int) gdb/top.c:575 0x790499 command_handler(char const*) gdb/event-top.c:552 0x7909a1 command_line_handler(std::unique_ptr >&&) gdb/event-top.c:788 0xc6be4f tui_command_line_handler gdb/tui/tui-interp.c:104 0x78fdef gdb_rl_callback_handler gdb/event-top.c:259 0xd79293 rl_callback_read_char readline/readline/callback.c:290 0x78fc57 gdb_rl_callback_read_char_wrapper_noexcept gdb/event-top.c:195 0x78fcf3 gdb_rl_callback_read_char_wrapper gdb/event-top.c:234 0xc95597 stdin_event_handler gdb/ui.c:155 0x149fe51 handle_file_event gdbsupport/event-loop.cc:573 0x14a03e7 gdb_wait_for_event gdbsupport/event-loop.cc:694 0x149f2ad gdb_do_one_event(int) gdbsupport/event-loop.cc:264 0x8f869e start_event_loop gdb/main.c:412 0x8f87f8 captured_command_loop gdb/main.c:476 0x8f9fe4 captured_main gdb/main.c:1320 0x8fa07e gdb_main(captured_main_args*) gdb/main.c:1339 0x415f52 main gdb/gdb.c:39 --------------------- A fatal error internal to GDB has been detected, further debugging is not possible. GDB will now terminate. This is a bug, please report it. For instructions, see: . ERROR: GDB process no longer exists GDB process exited with wait status 3221 exp9 0 0 CHILDKILLED SIGSEGV {segmentation violation} ... When running from the command line instead: ... $ gdb -q -batch -x outputs/gdb.dwarf2/per-bfd-sharing/gdb.in.26 ... I get: ... /data/vries/gdb/src/gdb/gdbtypes.c:5596: internal-error: Unexpected type fi= eld location kind: 6 A problem internal to GDB has been detected, further debugging may prove unreliable. ----- Backtrace ----- 0x59cca0 gdb_internal_backtrace_1 /data/vries/gdb/src/gdb/bt-utils.c:122 0x59cd43 _Z22gdb_internal_backtracev /data/vries/gdb/src/gdb/bt-utils.c:168 0xce6b30 internal_vproblem /data/vries/gdb/src/gdb/utils.c:396 0xce6eff _Z15internal_verrorPKciS0_P13__va_list_tag /data/vries/gdb/src/gdb/utils.c:476 0x149ee84 _Z18internal_error_locPKciS0_z /data/vries/gdb/src/gdbsupport/errors.cc:58 0x7efc34 _Z19copy_type_recursiveP4typeP4htab /data/vries/gdb/src/gdb/gdbtypes.c:5595 ... --=20 You are receiving this mail because: You are on the CC list for the bug.=