[Bug d/33201] New: internal-error: d_lookup_nested_symbol: called with non-aggregate type.
ibuclaw at gdcproject dot org
sourceware-bugzilla@sourceware.org
Wed Jul 23 11:46:51 GMT 2025
https://sourceware.org/bugzilla/show_bug.cgi?id=33201
Bug ID: 33201
Summary: internal-error: d_lookup_nested_symbol: called with
non-aggregate type.
Product: gdb
Version: HEAD
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: d
Assignee: unassigned at sourceware dot org
Reporter: ibuclaw at gdcproject dot org
Target Milestone: ---
Observed when mistyping the name of a local variable and got a match for what I
assume to be a global symbol.
(gdb) p df
../../gdb/d-namespace.c:357: internal-error: d_lookup_nested_symbol: called
with non-aggregate type.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
----- Backtrace -----
0x572a06659ded gdb_internal_backtrace_1
../../gdb/bt-utils.c:122
0x572a06659e4f _Z22gdb_internal_backtracev
../../gdb/bt-utils.c:175
0x572a06f7f1d2 internal_vproblem
../../gdb/utils.c:423
0x572a06f7f684 _Z15internal_verrorPKciS0_P13__va_list_tag
../../gdb/utils.c:503
0x572a078110ac _Z18internal_error_locPKciS0_z
../../gdbsupport/errors.cc:57
0x572a0677fc54 _Z22d_lookup_nested_symbolP4typePKcPK5block
../../gdb/d-namespace.c:357
0x572a0677f08d d_lookup_symbol
../../gdb/d-namespace.c:158
0x572a0677f2d0 d_lookup_symbol_in_module
../../gdb/d-namespace.c:186
0x572a0677f519 lookup_module_scope
../../gdb/d-namespace.c:243
0x572a0677f3ea lookup_module_scope
../../gdb/d-namespace.c:223
0x572a067801e9
_Z24d_lookup_symbol_nonlocalPK13language_defnPKcPK5block10enum_flagsI18domain_search_flagE
../../gdb/d-namespace.c:517
0x572a0677e6ad
_ZNK10d_language22lookup_symbol_nonlocalEPKcPK5block10enum_flagsI18domain_search_flagE
../../gdb/d-lang.c:175
0x572a06e3ad9a lookup_symbol_aux
../../gdb/symtab.c:2215
0x572a06e3a22c
_Z25lookup_symbol_in_languagePKcPK5block10enum_flagsI18domain_search_flagE8languageP20field_of_this_result
../../gdb/symtab.c:2026
0x572a06e3a2f3
_Z13lookup_symbolPKcPK5block10enum_flagsI18domain_search_flagEP20field_of_this_result
../../gdb/symtab.c:2039
0x572a06778561 classify_name
../../gdb/d-exp.y:1337
0x572a06778aaa d_yylex
../../gdb/d-exp.y:1453
0x572a067749c3 _Z9d_yyparsev
/home/ibuclaw/repos/gcc/binutils-gdb/build/gdb/d-exp.c.tmp:1419
0x572a067797b2 _Z7d_parseP12parser_state
../../gdb/d-exp.y:1624
0x572a0677e6cf _ZNK10d_language6parserEP12parser_state
../../gdb/d-lang.c:182
0x572a06b69d99 parse_exp_in_context
../../gdb/parse.c:430
0x572a06b6a067
_Z16parse_expressionPKcP23innermost_block_tracker10enum_flagsI11parser_flagE
../../gdb/parse.c:478
0x572a06ba45e9 process_print_command_args
../../gdb/printcmd.c:1326
0x572a06ba46ed print_command_1
../../gdb/printcmd.c:1340
0x572a06ba4ae6 print_command
../../gdb/printcmd.c:1407
0x572a066bbcae do_simple_func
../../gdb/cli/cli-decode.c:95
0x572a066c2319 _Z8cmd_funcP16cmd_list_elementPKci
../../gdb/cli/cli-decode.c:2827
0x572a06eb5ae5 _Z15execute_commandPKci
../../gdb/top.c:564
0x572a068d9a4e _Z15command_handlerPKc
../../gdb/event-top.c:613
0x572a068da036
_Z20command_line_handlerOSt10unique_ptrIcN3gdb13xfree_deleterIcEEE
../../gdb/event-top.c:849
0x572a06ee8c5a tui_command_line_handler
../../gdb/tui/tui-interp.c:101
0x572a068d91a3 gdb_rl_callback_handler
../../gdb/event-top.c:288
0x572a07028f9f rl_callback_read_char
../../../readline/readline/callback.c:302
0x572a068d8e24 gdb_rl_callback_read_char_wrapper_sjlj
../../gdb/event-top.c:197
0x572a068d8f4d gdb_rl_callback_read_char_wrapper_noexcept
../../gdb/event-top.c:240
0x572a068d8fd3 gdb_rl_callback_read_char_wrapper
../../gdb/event-top.c:252
0x572a06f23d2a stdin_event_handler
../../gdb/ui.c:154
0x572a078121d4 handle_file_event
../../gdbsupport/event-loop.cc:551
0x572a07812855 gdb_wait_for_event
../../gdbsupport/event-loop.cc:672
0x572a07811613 _Z16gdb_do_one_eventi
../../gdbsupport/event-loop.cc:263
0x572a066c9952 _ZN6interp12do_one_eventEi
../../gdb/interps.h:87
0x572a06a95da5 start_event_loop
../../gdb/main.c:402
0x572a06a95f98 captured_command_loop
../../gdb/main.c:467
0x572a06a97c43 captured_main
../../gdb/main.c:1347
0x572a06a97ced _Z8gdb_mainP18captured_main_args
../../gdb/main.c:1366
0x572a06476ece main
../../gdb/gdb.c:38
---------------------
../../gdb/d-namespace.c:357: internal-error: d_lookup_nested_symbol: called
with non-aggregate type.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Gdb-prs
mailing list