public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "wingo at igalia dot com" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug backtrace/31560] Segfault when computing backtrace Date: Tue, 26 Mar 2024 15:51:03 +0000 [thread overview] Message-ID: <bug-31560-4717-XervgKcFsM@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-31560-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=31560 --- Comment #1 from Andy Wingo <wingo at igalia dot com> --- (gdb) disassemble Dump of assembler code for function _ZNK5block5scopeEv: => 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=<optimized out>) at ../../gdb-14.1/gdb/block.c:293 block = <optimized out> #1 0x000000000055b6b7 in cp_lookup_transparent_type (name=0x85e4b00 "v8::internal::ExternalPointerTable::Space") at ../../gdb-14.1/gdb/cp-namespace.c:1029 t = 0x0 scope = <optimized out> #2 0x0000000000627b1d in check_typedef (type=<optimized out>, type@entry=0x76f7780) at ../../gdb-14.1/gdb/gdbtypes.c:3052 name = <optimized out> newtype = <optimized out> orig_type = 0x76f7780 __func__ = "check_typedef" instance_flags = {m_enum_value = 0} #3 0x00000000005134dc in c_value_print_ptr (options=0x7fffffffda30, recurse=2, stream=0x7fffffffdb10, val=0xf0ce9e0) at ../../gdb-14.1/gdb/c-valprint.c:352 unresolved_elttype = 0x76f7780 elttype = <optimized out> addr = <optimized out> type = 0x76f7820 valaddr = 0x2a6a760 "\b`\370\222BV" type = <optimized out> valaddr = <optimized out> addr = <optimized out> unresolved_elttype = <optimized out> elttype = <optimized out> addr = <optimized out> #4 c_value_print_inner (val=0xf0ce9e0, stream=0x7fffffffdb10, recurse=2, options=0x7fffffffda30) at ../../gdb-14.1/gdb/c-valprint.c:435 type = <optimized out> #5 0x00000000008941bb in common_val_print (value=0xf0ce9e0, stream=0x7fffffffdb10, recurse=2, options=0x7fffffffdae0, language=0xd73150 <cplus_language_defn>) at ../../gdb-14.1/gdb/valprint.c:1092 local_opts = {prettyformat = Val_no_prettyformat, prettyformat_arrays = false, prettyformat_structs = false, vtblprint = false, unionprint = true, addressprint = true, nibblesprint = false, objectprint = false, print_max = 200, print_max_chars = 0, repeat_count_threshold = 10, output_format = 0, format = 0, memory_tag_violations = true, stop_print_at_null = false, print_array_indexes = false, deref_ref = true, static_field_print = true, pascal_static_field_print = true, raw = false, summary = true, symbol_print = true, max_depth = 20} type = 0x76f7820 real_type = 0x76f7820 #6 0x00000000008942ec in common_val_print_checked (val=<optimized out>, stream=<optimized out>, recurse=<optimized out>, options=<optimized out>, language=<optimized out>) at ../../gdb-14.1/gdb/valprint.c:1184 No locals. #7 0x00000000007e5d8a in print_frame_arg (fp_opts=..., arg=arg@entry=0x7fffffffdbd0) at ../../gdb-14.1/gdb/stack.c:487 language = 0xd73150 <cplus_language_defn> vp_opts = {prettyformat = Val_no_prettyformat, prettyformat_arrays = false, prettyformat_structs = false, vtblprint = false, unionprint = true, addressprint = true, nibblesprint = false, objectprint = false, print_max = 200, print_max_chars = 0, repeat_count_threshold = 10, output_format = 0, format = 0, memory_tag_violations = true, stop_print_at_null = false, print_array_indexes = false, deref_ref = true, static_field_print = true, pascal_static_field_print = true, raw = false, summary = true, symbol_print = true, max_depth = 20} uiout = 0xf21b10 stb = {<ui_file> = {_vptr.ui_file = 0xafba90 <vtable for string_file+16>, m_applied_style = {m_foreground = {m_simple = true, {m_value = -1, {m_red = 255 '\377', m_green = 255 '\377', m_blue = 255 '\377'}}}, m_background = {m_simple = true, {m_value = -1, { m_red = 255 '\377', m_green = 255 '\377', m_blue = 255 '\377'}}}, m_intensity = ui_file_style::NORMAL, m_reverse = false}}, m_string = "", m_term_out = false} __func__ = "print_frame_arg" arg_emitter = <optimized out> tuple_emitter = {m_uiout = 0xf21b10} style = {m_foreground = {m_simple = true, {m_value = -1, {m_red = 255 '\377', m_green = 255 '\377', m_blue = 255 '\377'}}}, m_background = {m_simple = true, {m_value = -1, {m_red = 255 '\377', m_green = 255 '\377', m_blue = 255 '\377'}}}, m_intensity = ui_file_style::NORMAL, m_reverse = false} #8 0x00000000007ea0c2 in print_frame_args (fp_opts=..., func=<optimized out>, frame=..., num=-1, stream=0xdb8d20) at ../../gdb-14.1/gdb/stack.c:883 arg = {sym = 0x16cb05f0, val = 0xf0ce9e0, error = std::unique_ptr<char> = {get() = 0x0}, entry_kind = 0xadfe37 <print_entry_values_no> "no"} entryarg = {sym = 0x16cb05f0, val = 0x0, error = std::unique_ptr<char> = {get() = 0x0}, entry_kind = 0xadfe37 <print_entry_values_no> "no"} sym = 0x16cb05f0 __for_range = @0x7fffffffdca0: {m_begin = {m_sym = 0x16cb0570, m_iter = {d = {compunit_symtab = 0x16cb07f0, block = 0x16cb07f0}, name = 0x0, idx = -1, which = FIRST_LOCAL_BLOCK, mdict_iter = {mdict = 0x16cb0830, iterator = {dict = 0x16cb0850, index = 0, current = 0x48f6fa49db}, current_idx = 0}}}, m_end = {m_sym = 0x0, m_iter = {d = {compunit_symtab = 0x1, block = 0x1}, name = 0x9cac78 <operator new(unsigned long)+24>, idx = 1, which = GLOBAL_BLOCK, mdict_iter = { mdict = 0x87cb75 <ui_out::push_level(ui_out_type)+21>, iterator = {dict = 0x7fffffffdec0, index = 208603584, current = 0x3ffffe040}, current_idx = 65535}}}} __for_begin = {m_sym = 0x16cb05f0, m_iter = {d = {compunit_symtab = 0x16cb07f0, block = 0x16cb07f0}, name = 0x0, idx = -1, which = FIRST_LOCAL_BLOCK, mdict_iter = {mdict = 0x16cb0830, iterator = {dict = 0x16cb0850, index = 1, current = 0x48f6fa49db}, current_idx = 0}}} __for_end = <optimized out> b = 0x16cb07f0 uiout = 0xf21b10 first = <optimized out> highest_offset = -1 args_printed = <optimized out> print_names = true print_args = true __func__ = "print_frame_args" -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2024-03-26 15:51 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-03-26 15:49 [Bug backtrace/31560] New: " wingo at igalia dot com 2024-03-26 15:51 ` wingo at igalia dot com [this message] 2024-03-26 16:57 ` [Bug backtrace/31560] " tromey at sourceware dot org 2024-03-27 13:15 ` wingo at igalia dot com 2024-03-27 13:16 ` wingo at igalia dot com 2024-03-27 15:12 ` simon.marchi at polymtl dot ca 2024-03-29 7:41 ` wingo at igalia dot com 2024-03-29 8:00 ` wingo at igalia dot com
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-31560-4717-XervgKcFsM@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).