From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 27DCF3858C41; Tue, 5 Mar 2024 01:54:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 27DCF3858C41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1709603656; bh=hJAha1Eg6FwhxAkeOoAagzG98bQaU6rtMLNKgAFrRQ8=; h=From:To:Subject:Date:From; b=pGCvmqppCme13A7YIJByjBgxv6d7oV2wGBRR0A/7Pb0Wlna6yEPDjaUn8we3ibII8 7+f3CX5Z6MSURk2w6ujFneju60jOuwjclSlkOSetCfIWreclho43QQJlIcGWAaJb2b SbfCcUmkrrz0AbiGdh0hTjLc9gTz/bXzh5Ha6lbM= From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug tui/31449] New: TUI crash with debuginfod support Date: Tue, 05 Mar 2024 01:54:14 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: tui X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at sourceware dot 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=3D31449 Bug ID: 31449 Summary: TUI crash with debuginfod support Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: tui Assignee: unassigned at sourceware dot org Reporter: tromey at sourceware dot org Target Milestone: --- I noticed this when looking at the tui-missing-src.exp test case. If I "gdb -nx ...exe-from-that-test", then at the first prompt type "tui enable", gdb will crash. #7 0x0000000000c82d7d in tui_inject_newline_into_command_window () at ../../binutils-gdb/gdb/tui/tui-io.c:1065 #8 0x0000000000c548d7 in show_history_filename (file=3D0x7ffeb152c460, from_tty=3D0, c=3D0x2e03930,=20 value=3D0x200000000 ) at ../../binutils-gdb/gdb/top.c:901 #9 0x0000000000786517 in gdb_rl_callback_handler (rl=3D0x2e03590 "n") at ../../binutils-gdb/gdb/event-top.c:259 #10 0x0000000000d752e5 in _rl_callback_newline () at ../../../binutils-gdb/readline/readline/callback.c:95 #11 0x00007f9ed8002ea0 in ?? () #12 0x00007ffeb152c540 in ?? () #13 0x0000000000786366 in gdb_rl_callback_read_char_wrapper_noexcept () at ../../binutils-gdb/gdb/event-top.c:195 #14 0x000000000078641c in gdb_rl_callback_read_char_wrapper (client_data=3D0x2a8c770) at ../../binutils-gdb/gdb/event-top.c:234 #15 0x0000000000cad582 in ui::ui (this=3D0x7f9ed8002ea0, instream_=3D0x7ffeb152c590, outstream_=3D0x787738 , errstream_=3D0x0) at ../../binutils-gdb/gdb/ui.c:53 #16 0x000000000122ff4f in delete_file_handler (fd=3D0) at ../../binutils-gdb/gdbsupport/event-loop.cc:458 #17 0x00000000012304fb in gdb_wait_for_event (block=3D1) at ../../binutils-gdb/gdbsupport/event-loop.cc:632 #18 0x000000000122f47d in internal_warning_loc (file=3D0x100000001 , line=3D32766,=20 fmt=3D0x12304fb "\001H\211\005\215\006G\001H\211\025\216\006G\001H\213\005\017\005G\001H\21= 3\025\020\005G\001H\211\005\201\006G\001H\211\025\202\006G\001H\213\005\003= \005G\001H\213\025\004\005G\001H\211\005u\006G\001H\211\025v\006G\001H\213\= 005\367\004G\001H\213\025\370\004G\001H\211\005i\006G\001H\211\025j\006G\00= 1H\213\005\353\004G\001H\213\025\354\004G\001H\211\005]\006G\001H\211\025^\= 006G\001H\213\005\337\004G\001H\213\025\340\004G\001H\211\005Q\006G\001H\21= 1\025R\006G\001H\213\005\323\004G\001H\213\025\324\004G\001H\211\005E\006G\= 001H\211\025F\006G\001H\213\005\307\004G\001H\213\025\310\004G\001H\211\005= "...) at ../../binutils-gdb/gdbsupport/errors.cc:69 #19 0x0000000000c549a1 in gdb_readline_wrapper (prompt=3D0x2ebf710 "Enable debuginfod for this session? (y or [n]) ") at ../../binutils-gdb/gdb/top.c:= 1038 #20 0x0000000000ce9125 in maybe_quit () at ../../binutils-gdb/gdb/utils.c:6= 93 #21 0x0000000000ce937f in defaulted_query(const char *, char, typedef __va_list_tag __va_list_tag *) ( ctlstr=3D0xce937f "\030\377\377\377H\211\316H\211\307\3506#",=20 defchar=3D-2 '\376', args=3D0x0) at ../../binutils-gdb/gdb/utils.c:847 #22 0x000000000069030c in debuginfod_is_enabled () at ../../binutils-gdb/gdb/debuginfod-support.c:268 #23 0x00000000006904a3 in debuginfod_source_query (build_id=3D0x2de9f18 "\320Ou\033\223A\236\004T\302\364\344\026\305 4A\"\337O", build_id_len=3D20= ,=20 srcpath=3D0x2e03240 "/home/tromey/gdb/build/gdb/testsuite/outputs/gdb.tui/tui-missing-src/main.= c", destname=3D0x7ffeb152cb08) at ../../binutils-gdb/gdb/debuginfod-support.c:311 #24 0x0000000000ba3d99 in open_source_file (s=3D0x2df3370) at ../../binutils-gdb/gdb/source.c:1180 #25 0x0000000000ba4015 in symtab_to_fullname (s=3D0x2df3370) at ../../binutils-gdb/gdb/source.c:1242 #26 0x0000000000bf8bed in find_line_symtab (sym_tab=3D0x2df3370, line=3D1, index=3D0x7ffeb152ccf4, exact_match=3D0x0) at ../../binutils-gdb/gdb/symtab= .c:3439 #27 0x0000000000bf90d6 in find_pcs_for_symtab_line (symtab=3D0x7ffeb152cd10, line=3D0, best_item=3D0x7ffeb152cce0) at ../../binutils-gdb/gdb/symtab.c:35= 44 #28 0x0000000000c76630 in tui_disasm_window::set_contents (this=3D0x50266bd= 58, arch=3D0x2df3880, sal=3D...) at ../../binutils-gdb/gdb/tui/tui-disasm.c:388 #29 0x0000000000c9dd14 in tui_source_window_base::tui_source_window_base ( this=3D0xa5c3f5 (std::tuple<_wi= n_st*, curses_deleter> const&)+24>) at ../../binutils-gdb/gdb/tui/tui-winsource.c:423 #30 0x0000000000c87219 in tui_win_info::resize (this=3D0x2e903e0, height_= =3D24, width_=3D158, origin_x_=3D0, origin_y_=3D0) at ../../binutils-gdb/gdb/tui/tui-layout.c:294 #31 0x0000000000c87981 in tui_layout_window::apply (this=3D0x2de8a30, x_=3D= 0, y_=3D0, width_=3D158, height_=3D24, preserve_cmd_win_size_p=3Dfalse) at ../../binutils-gdb/gdb/tui/tui-layout.c:429 #32 0x0000000000c89bf4 in tui_layout_split::apply (this=3D0x2e035b0, x_=3D0= , y_=3D0, width_=3D158, height_=3D38, preserve_cmd_win_size_p=3Dfalse) at ../../binutils-gdb/gdb/tui/tui-layout.c:1031 #33 0x0000000000c867f2 in tui_apply_current_layout (preserve_cmd_win_size_p=3Dfalse) at ../../binutils-gdb/gdb/tui/tui-layout.= c:71 #34 0x0000000000c86c64 in tui_set_layout (layout=3D0x2bd5fe0) at ../../binutils-gdb/gdb/tui/tui-layout.c:134 #35 0x0000000000c86f0d in tui_next_layout () at ../../binutils-gdb/gdb/tui/tui-layout.c:195 #36 0x0000000000c9ff90 in tui_ensure_readline_initialized () at ../../binutils-gdb/gdb/tui/tui.c:342 #37 0x0000000000ca0245 in tui_enable () at ../../binutils-gdb/gdb/tui/tui.c= :424 --=20 You are receiving this mail because: You are on the CC list for the bug.=