public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "vries at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug symtab/32742] New: [gdb/symtab, fission] read.c:20914: internal-error: set_lang: Assertion `old_value == language_unknown || old_value == language_minimal || old_value == lang' failed Date: Tue, 25 Feb 2025 09:59:55 +0000 [thread overview] Message-ID: <bug-32742-4717@http.sourceware.org/bugzilla/> (raw) https://sourceware.org/bugzilla/show_bug.cgi?id=32742 Bug ID: 32742 Summary: [gdb/symtab, fission] read.c:20914: internal-error: set_lang: Assertion `old_value == language_unknown || old_value == language_minimal || old_value == lang' failed 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 the test suite with target board fission, in test-case gdb.ada/access_tagged_param.exp I run into: ... (gdb) break pck.adb:19^M /data/vries/gdb/src/gdb/dwarf2/read.c:20914: internal-error: set_lang: Assertion `old_value == language_unknown || old_value == language_minimal || old_value == lang' failed.^M ... Backtrace: ... (gdb) bt #0 0x00007ffff5ea941c in __pthread_kill_implementation () from /lib64/libc.so.6 #1 0x00007ffff5e57842 in raise () from /lib64/libc.so.6 #2 0x00007ffff5e3f5cf in abort () from /lib64/libc.so.6 #3 0x0000000000d9462c in dump_core () at /data/vries/gdb/src/gdb/utils.c:225 #4 0x0000000000d94c6d in internal_vproblem(internal_problem *, const char *, int, const char *, typedef __va_list_tag __va_list_tag *) ( problem=0x2825160 <internal_error_problem>, file=0x164fd30 "/data/vries/gdb/src/gdb/dwarf2/read.c", line=20914, fmt=0x164ef8f "%s: Assertion `%s' failed.", ap=0x7fffffffbd68) at /data/vries/gdb/src/gdb/utils.c:477 #5 0x0000000000d94d43 in internal_verror ( file=0x164fd30 "/data/vries/gdb/src/gdb/dwarf2/read.c", line=20914, fmt=0x164ef8f "%s: Assertion `%s' failed.", ap=0x7fffffffbd68) at /data/vries/gdb/src/gdb/utils.c:503 #6 0x0000000001573595 in internal_error_loc ( file=0x164fd30 "/data/vries/gdb/src/gdb/dwarf2/read.c", line=20914, fmt=0x164ef8f "%s: Assertion `%s' failed.") at /data/vries/gdb/src/gdbsupport/errors.cc:57 #7 0x0000000000791c56 in dwarf2_per_cu_data::set_lang (this=0x7fffd4004820, lang=language_minimal, dw_lang=0) at /data/vries/gdb/src/gdb/dwarf2/read.c:20912 #8 0x00000000007928ab in cutu_reader::prepare_one_comp_unit ( this=0x7fffffffbf70, cu=0x2e91e20, pretend_language=language_minimal) at /data/vries/gdb/src/gdb/dwarf2/read.c:21139 #9 0x0000000000766057 in cutu_reader::cutu_reader (this=0x7fffffffbf70, this_cu=0x7fffd4004820, per_objfile=0x2ed6df0, pretend_language=language_minimal, parent_cu=0x0, dwo_file=0x0) at /data/vries/gdb/src/gdb/dwarf2/read.c:3533 #10 0x0000000000761b1d in dw2_get_file_names (this_cu=0x7fffd4004820, per_objfile=0x2ed6df0) at /data/vries/gdb/src/gdb/dwarf2/read.c:1971 #11 0x0000000000762445 in dw_expand_symtabs_matching_file_matcher(dwarf2_per_objfile*, gdb::function_view<bool (char const*, bool)>) (per_objfile=0x2ed6df0, file_matcher=...) at /data/vries/gdb/src/gdb/dwarf2/read.c:2174 #12 0x000000000078673e in cooked_index_functions::expand_symtabs_matching(objfile*, gdb::function_view<bool (char const*, bool)>, lookup_name_info const*, gdb::function_view<bool (char const*)>, gdb::function_view<bool (compunit_symtab*)>, enum_flags<block_search_flag_values>, enum_flags<domain_search_flag>, gdb::function_view<bool (language)>) (this=0x2f18f90, objfile=0x2f11d30, file_matcher=..., lookup_name=0x0, symbol_matcher=..., expansion_notify=..., search_flags=..., domain=..., lang_matcher=...) at /data/vries/gdb/src/gdb/dwarf2/read.c:16015 #13 0x0000000000c67c13 in objfile::map_symtabs_matching_filename(char const*, char const*, gdb::function_view<bool (symtab*)>) (this=0x2f11d30, name=0x38eff20 "pck.adb", real_path=0x0, callback=...) at /data/vries/gdb/src/gdb/symfile-debug.c:207 #14 0x0000000000c84ac0 in iterate_over_symtabs(program_space*, char const*, gdb::function_view<bool (symtab*)>) (pspace=0x2b99240, name=0x38eff20 "pck.adb", callback=...) at /data/vries/gdb/src/gdb/symtab.c:727 #15 0x00000000009116c7 in collect_symtabs_from_filename ( file=0x38eff20 "pck.adb", search_pspace=0x0) at /data/vries/gdb/src/gdb/linespec.c:3640 #16 0x00000000009117a4 in symtabs_from_filename ( filename=0x38eff20 "pck.adb", search_pspace=0x0) at /data/vries/gdb/src/gdb/linespec.c:3657 #17 0x000000000090e801 in parse_linespec (parser=0x7fffffffcac0, arg=0x2e16910 "pck.adb:19", match_type=symbol_name_match_type::WILD) at /data/vries/gdb/src/gdb/linespec.c:2559 #18 0x000000000090fb1b in location_spec_to_sals (parser=0x7fffffffcac0, locspec=0x3a2a7a0) at /data/vries/gdb/src/gdb/linespec.c:3037 #19 0x000000000090feda in decode_line_full (locspec=0x3a2a7a0, flags=1, search_pspace=0x0, default_symtab=0x2f13810, default_line=17, canonical=0x7fffffffcf50, select_mode=0x0, filter=0x0) at /data/vries/gdb/src/gdb/linespec.c:3113 #20 0x00000000005891ae in parse_breakpoint_sals (locspec=0x3a2a7a0, canonical=0x7fffffffcf50, search_pspace=0x0) at /data/vries/gdb/src/gdb/breakpoint.c:9077 #21 0x0000000000589c36 in create_breakpoint (gdbarch=0x38cd3e0, locspec=0x3a2a7a0, cond_string=0x0, thread=-1, inferior=-1, extra_string=0x0, force_condition=false, parse_extra=1, tempflag=0, type_wanted=bp_breakpoint, ignore_count=0, pending_break_support=AUTO_BOOLEAN_AUTO, ops=0x15f5540 <code_breakpoint_ops>, from_tty=0, enabled=1, internal=0, flags=0) at /data/vries/gdb/src/gdb/breakpoint.c:9312 #22 0x000000000058a648 in break_command_1 (arg=0x3a27b50 "", flag=0, from_tty=0) at /data/vries/gdb/src/gdb/breakpoint.c:9471 #23 0x000000000058a8c9 in break_command (arg=0x3a27b46 "pck.adb:19", from_tty=0) at /data/vries/gdb/src/gdb/breakpoint.c:9541 #24 0x0000000000614cff in do_simple_func (args=0x3a27b46 "pck.adb:19", from_tty=0, c=0x2cdd470) at /data/vries/gdb/src/gdb/cli/cli-decode.c:95 #25 0x000000000061a2a2 in cmd_func (cmd=0x2cdd470, args=0x3a27b46 "pck.adb:19", from_tty=0) at /data/vries/gdb/src/gdb/cli/cli-decode.c:2839 #26 0x0000000000cef370 in execute_command (p=0x3a27b4f "9", from_tty=0) at /data/vries/gdb/src/gdb/top.c:564 #27 0x00000000007e34dc in command_handler ( command=0x3a27b40 "break pck.adb:19") at /data/vries/gdb/src/gdb/event-top.c:613 #28 0x0000000000ceea86 in read_command_file (stream=0x2b4fdc0) at /data/vries/gdb/src/gdb/top.c:333 #29 0x0000000000629729 in script_from_file (stream=0x2b4fdc0, file=0x7fffffffe1e7 "outputs/gdb.ada/access_tagged_param/gdb.in.1") at /data/vries/gdb/src/gdb/cli/cli-script.c:1643 #30 0x000000000060abbd in source_script_from_stream (stream=0x2b4fdc0, file=0x7fffffffe1e7 "outputs/gdb.ada/access_tagged_param/gdb.in.1", file_to_open=0x2b7a6e0 "outputs/gdb.ada/access_tagged_param/gdb.in.1") at /data/vries/gdb/src/gdb/cli/cli-cmds.c:705 #31 0x000000000060ad17 in source_script_with_search ( file=0x7fffffffe1e7 "outputs/gdb.ada/access_tagged_param/gdb.in.1", from_tty=0, search_path=0) at /data/vries/gdb/src/gdb/cli/cli-cmds.c:750 #32 0x000000000060ad93 in source_script ( file=0x7fffffffe1e7 "outputs/gdb.ada/access_tagged_param/gdb.in.1", from_tty=0) at /data/vries/gdb/src/gdb/cli/cli-cmds.c:759 #33 0x0000000000985fcb in catch_command_errors ( command=0x60ad6e <source_script(char const*, int)>, arg=0x7fffffffe1e7 "outputs/gdb.ada/access_tagged_param/gdb.in.1", from_tty=0, do_bp_actions=false) at /data/vries/gdb/src/gdb/main.c:508 #34 0x000000000098619a in execute_cmdargs (cmdarg_vec=0x7fffffffd8c0, file_type=CMDARG_FILE, cmd_type=CMDARG_COMMAND, ret=0x7fffffffd89c) at /data/vries/gdb/src/gdb/main.c:604 #35 0x0000000000987611 in captured_main_1 (context=0x7fffffffdb80) at /data/vries/gdb/src/gdb/main.c:1308 #36 0x0000000000987876 in captured_main (data=0x7fffffffdb80) at /data/vries/gdb/src/gdb/main.c:1333 #37 0x0000000000987915 in gdb_main (args=0x7fffffffdb80) at /data/vries/gdb/src/gdb/main.c:1362 #38 0x000000000041a403 in main (argc=7, argv=0x7fffffffdcb8) at /data/vries/gdb/src/gdb/gdb.c:38 (gdb) ... -- You are receiving this mail because: You are on the CC list for the bug.
next reply other threads:[~2025-02-25 9:59 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2025-02-25 9:59 vries at gcc dot gnu.org [this message] 2025-02-26 12:17 ` [Bug symtab/32742] " vries at gcc dot gnu.org 2025-02-26 12:29 ` vries at gcc dot gnu.org 2025-02-26 12:56 ` vries at gcc dot gnu.org 2025-02-27 18:12 ` tromey at sourceware dot org 2025-03-04 20:03 ` simark at simark dot ca 2025-03-07 14:54 ` simon.marchi at polymtl dot ca 2025-03-08 2:55 ` cvs-commit at gcc dot gnu.org 2025-03-08 2:56 ` simon.marchi at polymtl dot ca 2025-03-09 17:21 ` simon.marchi at polymtl dot ca 2025-03-09 17:21 ` simon.marchi at polymtl dot ca 2025-03-11 13:35 ` tromey at sourceware 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-32742-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: linkBe 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).