From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 60A973858C56; Tue, 26 Mar 2024 15:51:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 60A973858C56 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1711468264; bh=B66gZ3+YOeHe+rkkRtmyKmCcgnGObhRekr0xVtM+ID0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=MMLcqWcgt4qZdcAeQMF7crj6G+2W2FswBEOi0PyVAzpgBszKtybBGCM9lPIkTCPVR pDcegouBZbraiG6xJ8PgW/71asfz4cC4fCaC5SMXwsbv9pr2gcr7HHxjp3YRedqbnf opEm4ryAqwj9UeeDV40FarP37IyN7dTVLu6LlJmM= From: "wingo at igalia dot com" To: gdb-prs@sourceware.org Subject: [Bug backtrace/31560] Segfault when computing backtrace Date: Tue, 26 Mar 2024 15:51:03 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed 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: Message-ID: In-Reply-To: References: 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 --- Comment #1 from Andy Wingo --- (gdb) disassemble Dump of assembler code for function _ZNK5block5scopeEv: =3D> 0x00000000004c3350 <+0>: mov 0x28(%rdi),%rax 0x00000000004c3354 <+4>: test %rax,%rax 0x00000000004c3357 <+7>: je 0x4c3361 <_ZNK5block5scopeEv+17> 0x00000000004c3359 <+9>: mov (%rax),%rax 0x00000000004c335c <+12>: test %rax,%rax 0x00000000004c335f <+15>: jne 0x4c336f <_ZNK5block5scopeEv+31> 0x00000000004c3361 <+17>: mov 0x18(%rdi),%rdi 0x00000000004c3365 <+21>: test %rdi,%rdi 0x00000000004c3368 <+24>: jne 0x4c3350 <_ZNK5block5scopeEv> 0x00000000004c336a <+26>: mov $0xacd413,%eax 0x00000000004c336f <+31>: ret And a bt full: #0 block::scope (this=3D) at ../../gdb-14.1/gdb/block.c:293 block =3D #1 0x000000000055b6b7 in cp_lookup_transparent_type (name=3D0x85e4b00 "v8::internal::ExternalPointerTable::Space") at ../../gdb-14.1/gdb/cp-namespace.c:1029 t =3D 0x0 scope =3D #2 0x0000000000627b1d in check_typedef (type=3D, type@entry=3D0x76f7780) at ../../gdb-14.1/gdb/gdbtypes.c:3052 name =3D newtype =3D orig_type =3D 0x76f7780 __func__ =3D "check_typedef" instance_flags =3D {m_enum_value =3D 0} #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 unresolved_elttype =3D 0x76f7780 elttype =3D addr =3D type =3D 0x76f7820 valaddr =3D 0x2a6a760 "\b`\370\222BV" type =3D valaddr =3D addr =3D unresolved_elttype =3D elttype =3D addr =3D #4 c_value_print_inner (val=3D0xf0ce9e0, stream=3D0x7fffffffdb10, recurse= =3D2, options=3D0x7fffffffda30) at ../../gdb-14.1/gdb/c-valprint.c:435 type =3D #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 local_opts =3D {prettyformat =3D Val_no_prettyformat, prettyformat_= arrays =3D false, prettyformat_structs =3D false, vtblprint =3D false, unionprint =3D = true, addressprint =3D true, nibblesprint =3D false, objectprint =3D false, print= _max =3D 200, print_max_chars =3D 0,=20 repeat_count_threshold =3D 10, output_format =3D 0, format =3D 0, memory_tag_violations =3D true, stop_print_at_null =3D false, print_array_i= ndexes =3D false, deref_ref =3D true, static_field_print =3D true, pascal_static_field= _print =3D true, raw =3D false, summary =3D true,=20 symbol_print =3D true, max_depth =3D 20} type =3D 0x76f7820 real_type =3D 0x76f7820 #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 No locals. #7 0x00000000007e5d8a in print_frame_arg (fp_opts=3D..., arg=3Darg@entry=3D0x7fffffffdbd0) at ../../gdb-14.1/gdb/stack.c:487 language =3D 0xd73150 vp_opts =3D {prettyformat =3D Val_no_prettyformat, prettyformat_arr= ays =3D false, prettyformat_structs =3D false, vtblprint =3D false, unionprint =3D = true, addressprint =3D true, nibblesprint =3D false, objectprint =3D false, print= _max =3D 200, print_max_chars =3D 0,=20 repeat_count_threshold =3D 10, output_format =3D 0, format =3D 0, memory_tag_violations =3D true, stop_print_at_null =3D false, print_array_i= ndexes =3D false, deref_ref =3D true, static_field_print =3D true, pascal_static_field= _print =3D true, raw =3D false, summary =3D true,=20 symbol_print =3D true, max_depth =3D 20} uiout =3D 0xf21b10 stb =3D { =3D {_vptr.ui_file =3D 0xafba90 , m_applied_style =3D {m_foreground =3D {m_simple =3D true, = {m_value =3D -1, {m_red =3D 255 '\377', m_green =3D 255 '\377', m_blue =3D 255 '\377'}}}, m_background =3D {m_simple =3D true, {m_value =3D -1, { m_red =3D 255 '\377', m_green =3D 255 '\377', m_blue = =3D 255 '\377'}}}, m_intensity =3D ui_file_style::NORMAL, m_reverse =3D false}}, m_= string =3D "", m_term_out =3D false} __func__ =3D "print_frame_arg" arg_emitter =3D tuple_emitter =3D {m_uiout =3D 0xf21b10} style =3D {m_foreground =3D {m_simple =3D true, {m_value =3D -1, {m= _red =3D 255 '\377', m_green =3D 255 '\377', m_blue =3D 255 '\377'}}}, m_background =3D = {m_simple =3D true, {m_value =3D -1, {m_red =3D 255 '\377', m_green =3D 255 '\377', m= _blue =3D 255 '\377'}}},=20 m_intensity =3D ui_file_style::NORMAL, m_reverse =3D false} #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 arg =3D {sym =3D 0x16cb05f0, val =3D 0xf0ce9e0, error =3D std::uniq= ue_ptr =3D {get() =3D 0x0}, entry_kind =3D 0xadfe37 "no"} entryarg =3D {sym =3D 0x16cb05f0, val =3D 0x0, error =3D std::uniqu= e_ptr =3D {get() =3D 0x0}, entry_kind =3D 0xadfe37 "no"} sym =3D 0x16cb05f0 __for_range =3D @0x7fffffffdca0: {m_begin =3D {m_sym =3D 0x16cb0570= , m_iter =3D {d =3D {compunit_symtab =3D 0x16cb07f0, block =3D 0x16cb07f0}, name =3D 0x0= , idx =3D -1, which =3D FIRST_LOCAL_BLOCK, mdict_iter =3D {mdict =3D 0x16cb0830, iterator= =3D {dict =3D 0x16cb0850, index =3D 0,=20 current =3D 0x48f6fa49db}, current_idx =3D 0}}}, m_end = =3D {m_sym =3D 0x0, m_iter =3D {d =3D {compunit_symtab =3D 0x1, block =3D 0x1}, name =3D 0= x9cac78 , idx =3D 1, which =3D GLOBAL_BLOCK, mdict_= iter =3D { mdict =3D 0x87cb75 , it= erator =3D {dict =3D 0x7fffffffdec0, index =3D 208603584, current =3D 0x3ffffe040}, current_idx =3D 65535}}}} __for_begin =3D {m_sym =3D 0x16cb05f0, m_iter =3D {d =3D {compunit_= symtab =3D 0x16cb07f0, block =3D 0x16cb07f0}, name =3D 0x0, idx =3D -1, which =3D FIRST_LOCAL_BLOCK, mdict_iter =3D {mdict =3D 0x16cb0830, iterator =3D {dict= =3D 0x16cb0850, index =3D 1, current =3D 0x48f6fa49db},=20 current_idx =3D 0}}} __for_end =3D b =3D 0x16cb07f0 uiout =3D 0xf21b10 first =3D highest_offset =3D -1 args_printed =3D print_names =3D true print_args =3D true __func__ =3D "print_frame_args" --=20 You are receiving this mail because: You are on the CC list for the bug.=