From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 613C03858426; Tue, 26 Mar 2024 15:49:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 613C03858426 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1711468162; bh=QxKGYgXg/F5GfWklxPq+Mb7BSS4XTpVSM0FhVdFOohA=; h=From:To:Subject:Date:From; b=O7XemXOUiwUSll6MbqWxJ4a/uTr7xwKDN5K/KUrdJyvKsb3MM1wIYbvnl1ZhxZFa5 pEsZJzOo16HJqJ7702XSBuAXLNdmiSuO7DH8pkocDsH9dB7u1CWyTXI2z+ixeXMFU2 scCJyJyZ986pkE0DPBblQrA9m0m5THtoaC4MdRbs= From: "wingo at igalia dot com" To: gdb-prs@sourceware.org Subject: [Bug backtrace/31560] New: Segfault when computing backtrace Date: Tue, 26 Mar 2024 15:49:21 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: backtrace X-Bugzilla-Version: 14.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: wingo at igalia dot com X-Bugzilla-Status: UNCONFIRMED 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=3D31560 Bug ID: 31560 Summary: Segfault when computing backtrace Product: gdb Version: 14.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: backtrace Assignee: unassigned at sourceware dot org Reporter: wingo at igalia dot com Target Milestone: --- Hi, Using gdb 14.1 from Guix, I get a segfault in GDB while printing a backtrac= e, either when traversing a core file or attached to a live process. The spec= ific process is part of the V8 test suite (with some patches from me). gdb 12.1 successfully prints the backtrace. The backtrace of GDB: ``` (gdb) bt #0 block::scope (this=3D) at ../../gdb-14.1/gdb/block.c:293 #1 0x000000000055b6b7 in cp_lookup_transparent_type (name=3D0x85e4b00 "v8::internal::ExternalPointerTable::Space") at ../../gdb-14.1/gdb/cp-namespace.c:1029 #2 0x0000000000627b1d in check_typedef (type=3D, type@entry=3D0x76f7780) at ../../gdb-14.1/gdb/gdbtypes.c:3052 #3 0x00000000005134dc in c_value_print_ptr (options=3D0x7fffffffda30, recu= rse=3D2, stream=3D0x7fffffffdb10, val=3D0xf0ce9e0) at ../../gdb-14.1/gdb/c-valprint.= c:352 #4 c_value_print_inner (val=3D0xf0ce9e0, stream=3D0x7fffffffdb10, recurse= =3D2, options=3D0x7fffffffda30) at ../../gdb-14.1/gdb/c-valprint.c:435 #5 0x00000000008941bb in common_val_print (value=3D0xf0ce9e0, stream=3D0x7fffffffdb10, recurse=3D2, options=3D0x7fffffffdae0, language=3D= 0xd73150 ) at ../../gdb-14.1/gdb/valprint.c:1092 #6 0x00000000008942ec in common_val_print_checked (val=3D, stream=3D, recurse=3D, options=3D, language=3D) at ../../gdb-14.1/gdb/valprint.c:1184 #7 0x00000000007e5d8a in print_frame_arg (fp_opts=3D..., arg=3Darg@entry=3D0x7fffffffdbd0) at ../../gdb-14.1/gdb/stack.c:487 #8 0x00000000007ea0c2 in print_frame_args (fp_opts=3D..., func=3D, frame=3D..., num=3D-1, stream=3D0xdb8d20) at ../../gdb-14.1/gdb/stack.c:883 #9 0x00000000007ed950 in print_frame (sal=3D..., print_args=3D1, print_what=3DLOCATION, print_level=3D, frame=3D..., fp_opts= =3D...) at ../../gdb-14.1/gdb/stack.c:1382 #10 print_frame_info (fp_opts=3D..., frame=3D..., print_level=3D, print_what=3DLOCATION, print_args=3D1, set_current_sal=3D0) at ../../gdb-14.1/gdb/stack.c:1108 #11 0x00000000007eec00 in backtrace_command_1 (from_tty=3D1, count_exp=3D, bt_opts=3D..., fp_opts=3D...) at ../../gdb-14.1/gdb/stack.c:2062 #12 backtrace_command (arg=3D, from_tty=3D1) at ../../gdb-14.1/gdb/stack.c:2168 #13 0x00000000005220e5 in cmd_func (cmd=3D, args=3D, from_tty=3D) at ../../gdb-14.1/gdb/cli/cli-decode.c:2735 #14 0x000000000084e1c7 in execute_command (p=3D, p@entry=3D0= xdb8f10 "bt", from_tty=3D1) at ../../gdb-14.1/gdb/top.c:575 #15 0x00000000005f5140 in command_handler (command=3D0xdb8f10 "bt") at ../../gdb-14.1/gdb/event-top.c:552 #16 0x00000000005f62ee in command_line_handler (rl=3D...) at ../../gdb-14.1/gdb/event-top.c:788 #17 0x00000000005f5a3c in gdb_rl_callback_handler (rl=3D0x162d090 "bt") at ../../gdb-14.1/gdb/event-top.c:259 #18 0x00000000008c8a98 in rl_callback_read_char () at ../../../gdb-14.1/readline/readline/callback.c:290 #19 0x00000000005f4cee in gdb_rl_callback_read_char_wrapper_noexcept () at ../../gdb-14.1/gdb/event-top.c:195 #20 0x00000000005f592d in gdb_rl_callback_read_char_wrapper (client_data=3D) at ../../gdb-14.1/gdb/event-top.c:234 #21 0x000000000087e7a0 in stdin_event_handler (error=3D, client_data=3D0xdb8c00) at ../../gdb-14.1/gdb/ui.c:155 #22 0x00000000009c783e in gdb_wait_for_event (block=3Dblock@entry=3D1) at ../../gdb-14.1/gdbsupport/event-loop.cc:694 #23 0x00000000009c81de in gdb_wait_for_event (block=3D1) at ../../gdb-14.1/gdbsupport/event-loop.cc:593 #24 gdb_do_one_event (mstimeout=3Dmstimeout@entry=3D-1) at ../../gdb-14.1/gdbsupport/event-loop.cc:264 #25 0x00000000006dae5a in start_event_loop () at ../../gdb-14.1/gdb/main.c:= 407 #26 captured_command_loop () at ../../gdb-14.1/gdb/main.c:471 #27 0x00000000006dcd85 in captured_main (data=3Ddata@entry=3D0x7fffffffe590= ) at ../../gdb-14.1/gdb/main.c:1324 #28 gdb_main (args=3Dargs@entry=3D0x7fffffffe5d0) at ../../gdb-14.1/gdb/mai= n.c:1343 #29 0x0000000000442e65 in main (argc=3D3, argv=3D0x7fffffffe718) at ../../gdb-14.1/gdb/gdb.c:39 ``` --=20 You are receiving this mail because: You are on the CC list for the bug.=