public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Luis Machado <luis.machado@arm.com>
To: Tom de Vries <tdevries@suse.de>,
	Simon Marchi <simon.marchi@polymtl.ca>,
	gdb-patches@sourceware.org
Subject: Re: [PATCH v2 11/13] gdb: make user-created frames reinflatable
Date: Mon, 23 Jan 2023 14:34:11 +0000	[thread overview]
Message-ID: <ee30771f-775e-a846-00b1-3bec8ef2fcab@arm.com> (raw)
In-Reply-To: <257ccf41-56aa-6ea7-ea41-99e2d937c1eb@suse.de>

On 1/23/23 12:57, Tom de Vries wrote:
> On 12/14/22 04:34, Simon Marchi via Gdb-patches wrote:
>>   gdb/testsuite/gdb.base/frame-view.exp    | 47 ++++++++++++--
> 
> Hi,
> 
> on aarch64-linux I get:
> ...
> FAIL: gdb.base/frame-view.exp: with_pretty_printer=true: frame (GDB internal error)
> FAIL: gdb.base/frame-view.exp: with_pretty_printer=true: frame again (GDB internal error)


I can reproduce this as well. It also happens on arm-linux Ubuntu 22.04/20.04, with a similar kind of backtrace.

> ...
> 
> In more detail:
> ...
> (gdb) PASS: gdb.base/frame-view.exp: with_pretty_printer=true: set scheduler-locking on
> frame^M
> #0  baz (z1=hahaha, /home/tdevries/gdb/src/gdb/value.c:4056: internal-error: value_fetch_lazy_register: Assertion `next_frame != NULL' failed.^M
> ...
> 
> 
> Back-trace:
> ...
> ----- Backtrace -----
> Resyncing due to internal error.
> 0x563033 gdb_internal_backtrace_1
>          /home/tdevries/gdb/src/gdb/bt-utils.c:122
> 0x5630f3 _Z22gdb_internal_backtracev
>          /home/tdevries/gdb/src/gdb/bt-utils.c:168
> 0xb4461f internal_vproblem
>          /home/tdevries/gdb/src/gdb/utils.c:396
> 0xb44a33 _Z15internal_verrorPKciS0_St9__va_list
>          /home/tdevries/gdb/src/gdb/utils.c:476
> 0xdb8e97 _Z18internal_error_locPKciS0_z
>          /home/tdevries/gdb/src/gdbsupport/errors.cc:58
> 0xb7a1d7 value_fetch_lazy_register
>          /home/tdevries/gdb/src/gdb/value.c:4056
> 0xb7a88b _Z16value_fetch_lazyP5value
>          /home/tdevries/gdb/src/gdb/value.c:4180
> 0xb74c93 _Z19value_optimized_outP5value
>          /home/tdevries/gdb/src/gdb/value.c:1500
> 0x770b2f _Z30frame_unwind_register_unsigned14frame_info_ptri
>          /home/tdevries/gdb/src/gdb/frame.c:1337
> 0x42bac3 aarch64_dwarf2_prev_register
>          /home/tdevries/gdb/src/gdb/aarch64-tdep.c:1280
> 0x680ec3 dwarf2_frame_prev_register
>          /home/tdevries/gdb/src/gdb/dwarf2/frame.c:1217
> 0x770587 _Z27frame_unwind_register_value14frame_info_ptri
>          /home/tdevries/gdb/src/gdb/frame.c:1244
> 0x770ad3 _Z30frame_unwind_register_unsigned14frame_info_ptri
>          /home/tdevries/gdb/src/gdb/frame.c:1333
> 0x76c30f _Z17default_unwind_pcP7gdbarch14frame_info_ptr
>          /home/tdevries/gdb/src/gdb/frame-unwind.c:244
> 0x4b652b _Z17gdbarch_unwind_pcP7gdbarch14frame_info_ptr
>          /home/tdevries/gdb/src/gdb/gdbarch.c:2959
> 0x67d363 _Z29dwarf2_tailcall_sniffer_first14frame_info_ptrPPvPKl
>          /home/tdevries/gdb/src/gdb/dwarf2/frame-tailcall.c:390
> 0x680593 dwarf2_frame_cache
>          /home/tdevries/gdb/src/gdb/dwarf2/frame.c:1089
> 0x68070f dwarf2_frame_unwind_stop_reason
>          /home/tdevries/gdb/src/gdb/dwarf2/frame.c:1101
> 0x773503 get_prev_frame_always_1
>          /home/tdevries/gdb/src/gdb/frame.c:2281
> 0x773beb _Z21get_prev_frame_always14frame_info_ptr
>          /home/tdevries/gdb/src/gdb/frame.c:2376
> 0x775d6b _Z28get_frame_unwind_stop_reason14frame_info_ptr
>          /home/tdevries/gdb/src/gdb/frame.c:3051
> 0x68151f _Z16dwarf2_frame_cfa14frame_info_ptr
>          /home/tdevries/gdb/src/gdb/dwarf2/frame.c:1356
> 0x678b13 _ZN18dwarf_expr_context16execute_stack_opEPKhS1_
>          /home/tdevries/gdb/src/gdb/dwarf2/expr.c:2110
> 0x676f4f _ZN18dwarf_expr_context4evalEPKhm
>          /home/tdevries/gdb/src/gdb/dwarf2/expr.c:1239
> 0x677faf _ZN18dwarf_expr_context16execute_stack_opEPKhS1_
>          /home/tdevries/gdb/src/gdb/dwarf2/expr.c:1811
> 0x676f4f _ZN18dwarf_expr_context4evalEPKhm
>          /home/tdevries/gdb/src/gdb/dwarf2/expr.c:1239
> 0x6769e3 _ZN18dwarf_expr_context8evaluateEPKhmbP18dwarf2_per_cu_data14frame_info_ptrPK18property_addr_infoP4typeS9_l
>          /home/tdevries/gdb/src/gdb/dwarf2/expr.c:1078
> 0x6a924b dwarf2_evaluate_loc_desc_full
>          /home/tdevries/gdb/src/gdb/dwarf2/loc.c:1513
> 0x6a941f _Z24dwarf2_evaluate_loc_descP4type14frame_info_ptrPKhmP18dwarf2_per_cu_dataP18dwarf2_per_objfileb
>          /home/tdevries/gdb/src/gdb/dwarf2/loc.c:1558
> 0x6abb83 locexpr_read_variable
>          /home/tdevries/gdb/src/gdb/dwarf2/loc.c:3052
> 0x769083 _ZNK13language_defn14read_var_valueEP6symbolPK5block14frame_info_ptr
>          /home/tdevries/gdb/src/gdb/findvar.c:578
> 0x769a17 _Z14read_var_valueP6symbolPK5block14frame_info_ptr
>          /home/tdevries/gdb/src/gdb/findvar.c:794
> 0xa188ef _Z14read_frame_argRK19frame_print_optionsP6symbol14frame_info_ptrP9frame_argS6_
>          /home/tdevries/gdb/src/gdb/stack.c:540
> 0xa19557 print_frame_args
>          /home/tdevries/gdb/src/gdb/stack.c:888
> 0xa1ae4b print_frame
>          /home/tdevries/gdb/src/gdb/stack.c:1390
> 0xa1a0e3 _Z16print_frame_infoRK19frame_print_options14frame_info_ptri10print_whatii
>          /home/tdevries/gdb/src/gdb/stack.c:1116
> 0xa180c7 _Z17print_stack_frame14frame_info_ptri10print_whati
>          /home/tdevries/gdb/src/gdb/stack.c:367
> 0xa1801b _Z26print_stack_frame_to_uioutP6ui_out14frame_info_ptri10print_whati
>          /home/tdevries/gdb/src/gdb/stack.c:346
> 0xa9d44f _Z27print_selected_thread_frameP6ui_out10enum_flagsI23user_selected_what_flagE
>          /home/tdevries/gdb/src/gdb/thread.c:1994
> 0xa1c907 frame_command_core
>          /home/tdevries/gdb/src/gdb/stack.c:1857
> 0xa20ec7 base_command
>          /home/tdevries/gdb/src/gdb/stack.c:1962
> 0x5b8f9f do_simple_func
>          /home/tdevries/gdb/src/gdb/cli/cli-decode.c:95
> 0x5be36b _Z8cmd_funcP16cmd_list_elementPKci
>          /home/tdevries/gdb/src/gdb/cli/cli-decode.c:2737
> 0xaa41ef _Z15execute_commandPKci
>          /home/tdevries/gdb/src/gdb/top.c:688
> 0x7421cf _Z15command_handlerPKc
>          /home/tdevries/gdb/src/gdb/event-top.c:616
> 0x74272f _Z20command_line_handlerOSt10unique_ptrIcN3gdb13xfree_deleterIcEEE
>          /home/tdevries/gdb/src/gdb/event-top.c:852
> 0xacc9c7 tui_command_line_handler
>          /home/tdevries/gdb/src/gdb/tui/tui-interp.c:104
> 0x74184f gdb_rl_callback_handler
>          /home/tdevries/gdb/src/gdb/event-top.c:246
> 0xffff957ba97f ???
> 0x74169b gdb_rl_callback_read_char_wrapper_noexcept
>          /home/tdevries/gdb/src/gdb/event-top.c:188
> 0x741733 gdb_rl_callback_read_char_wrapper
>          /home/tdevries/gdb/src/gdb/event-top.c:221
> 0x741fa3 stdin_event_handler
>          /home/tdevries/gdb/src/gdb/event-top.c:541
> 0xdba083 handle_file_event
>          /home/tdevries/gdb/src/gdbsupport/event-loop.cc:573
> 0xdba537 gdb_wait_for_event
>          /home/tdevries/gdb/src/gdbsupport/event-loop.cc:694
> 0xdb91cb _Z16gdb_do_one_eventi
>          /home/tdevries/gdb/src/gdbsupport/event-loop.cc:264
> 0x868d9b start_event_loop
>          /home/tdevries/gdb/src/gdb/main.c:411
> 0x868ee7 captured_command_loop
>          /home/tdevries/gdb/src/gdb/main.c:471
> 0x86a807 captured_main
>          /home/tdevries/gdb/src/gdb/main.c:1310
> 0x86a86f _Z8gdb_mainP18captured_main_args
>          /home/tdevries/gdb/src/gdb/main.c:1325
> 0x418597 main
>          /home/tdevries/gdb/src/gdb/gdb.c:32
> ...
> 
> Thanks,
> - Tom


  reply	other threads:[~2023-01-23 14:34 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-14  3:34 [PATCH v2 00/13] Make frame_info_ptr automatic Simon Marchi
2022-12-14  3:34 ` [PATCH v2 01/13] gdb: move type_map_instance to compile/compile.c Simon Marchi
2022-12-14  3:34 ` [PATCH v2 02/13] gdb: move compile_instance to compile/compile.h Simon Marchi
2022-12-14  3:34 ` [PATCH v2 03/13] gdb: remove language.h include from frame.h Simon Marchi
2022-12-14  3:34 ` [PATCH v2 04/13] gdb: move sect_offset and cu_offset to dwarf2/types.h Simon Marchi
2022-12-14  3:34 ` [PATCH v2 05/13] gdb: move call site types to call-site.h Simon Marchi
2022-12-14  3:34 ` [PATCH v2 06/13] gdb: move frame_info_ptr to frame.{c,h} Simon Marchi
2022-12-20 17:01   ` Bruno Larsen
2023-01-03 18:59     ` Simon Marchi
2022-12-14  3:34 ` [PATCH v2 07/13] gdb: add frame_id::user_created_p Simon Marchi
2022-12-14  3:34 ` [PATCH v2 08/13] gdb: add user-created frames to stash Simon Marchi
2022-12-14  3:34 ` [PATCH v2 09/13] gdb: add create_new_frame(frame_id) overload Simon Marchi
2022-12-14  3:34 ` [PATCH v2 10/13] gdb: make it possible to restore selected user-created frames Simon Marchi
2022-12-14  3:34 ` [PATCH v2 11/13] gdb: make user-created frames reinflatable Simon Marchi
2023-01-23 12:57   ` Tom de Vries
2023-01-23 14:34     ` Luis Machado [this message]
2023-01-24  3:55       ` Simon Marchi
2023-01-24  8:22         ` Luis Machado
2023-01-25  3:45           ` Simon Marchi
2023-01-30  8:49             ` Luis Machado
2023-01-30 16:20               ` Simon Marchi
2022-12-14  3:34 ` [PATCH v2 12/13] gdb: make frame_info_ptr grab frame level and id on construction Simon Marchi
2022-12-14  3:34 ` [PATCH v2 13/13] gdb: make frame_info_ptr auto-reinflatable Simon Marchi
2022-12-20 16:57 ` [PATCH v2 00/13] Make frame_info_ptr automatic Bruno Larsen
2023-01-03 19:00   ` Simon Marchi
2023-01-03 19:09 ` Simon Marchi
2023-01-18 18:10 ` Tom Tromey
2023-01-19  3:40   ` Simon Marchi

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=ee30771f-775e-a846-00b1-3bec8ef2fcab@arm.com \
    --to=luis.machado@arm.com \
    --cc=gdb-patches@sourceware.org \
    --cc=simon.marchi@polymtl.ca \
    --cc=tdevries@suse.de \
    /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: link
Be 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).