public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "marian.buschsieweke at posteo dot net" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug gdb/30431] segfault when inspecting remote variable Date: Sat, 03 Jun 2023 18:28:14 +0000 [thread overview] Message-ID: <bug-30431-4717-vJvuaelwCO@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-30431-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=30431 Marian Buschsieweke <marian.buschsieweke at posteo dot net> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #14870|0 |1 is obsolete| | --- Comment #6 from Marian Buschsieweke <marian.buschsieweke at posteo dot net> --- Created attachment 14914 --> https://sourceware.org/bugzilla/attachment.cgi?id=14914&action=edit hello-world.elf (new version) Thx for your reply and sorry for the long latency. I can still reproduce the issue; using a new ELF file this time (see attachment). $ gdb gdb-multiarch [...] (gdb) run -nx bin/olimex-msp430-h1611/hello-world.elf [...] For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from bin/olimex-msp430-h1611/hello-world.elf... (gdb) set remotelogfile /home/maribu/remotelogfile (gdb) tar rem :2000 Remote debugging using :2000 __crt0_start () at /home/buildozer/aports/community/newlib/src/newlib-4.3.0.20230120/libgloss/msp430/crt0.S:56 56 /home/buildozer/aports/community/newlib/src/newlib-4.3.0.20230120/libgloss/msp430/crt0.S: No such file or directory. (gdb) p BCSCTL1 Thread 1 "gdb-multiarch" received signal SIGSEGV, Segmentation fault. 0x000055555586ae9a in language_defn::read_var_value (this=<optimized out>, var=0x7ffff6acaec0, var_block=0x7ffff6a36b70, frame=...) at ../../gdb/findvar.c:756 756 ../../gdb/findvar.c: No such file or directory. (gdb) bt #0 0x000055555586ae9a in language_defn::read_var_value (this=<optimized out>, var=0x7ffff6acaec0, var_block=0x7ffff6a36b70, frame=...) at ../../gdb/findvar.c:756 #1 0x0000555555867c1f in read_var_value (var=var@entry=0x7ffff6acaec0, var_block=var_block@entry=0x7ffff6a36b70, frame=...) at ../../gdb/findvar.c:794 #2 0x0000555555cbf5e8 in value_of_variable (var=var@entry=0x7ffff6acaec0, b=0x7ffff6a36b70) at ../../gdb/valops.c:1385 #3 0x000055555583e2db in evaluate_var_value (var=0x7ffff6acaec0, blk=<optimized out>, noside=EVAL_NORMAL) at ../../gdb/eval.c:559 #4 expr::var_value_operation::evaluate (this=0x7ffff6a9ee70, expect_type=<optimized out>, exp=<optimized out>, noside=EVAL_NORMAL) at ../../gdb/eval.c:585 #5 0x000055555583e37d in expression::evaluate (this=0x7ffff6a9edd0, expect_type=0x0, noside=noside@entry=EVAL_NORMAL) at ../../gdb/eval.c:101 #6 0x000055555583e6f7 in evaluate_expression (exp=<optimized out>, expect_type=<optimized out>) at ../../gdb/eval.c:115 #7 0x0000555555a84d91 in process_print_command_args (args=<optimized out>, print_opts=print_opts@entry=0x7fffffffdfa0, voidprint=voidprint@entry=true) at /usr/include/c++/13.1.1/bits/unique_ptr.h:199 #8 0x0000555555a85d80 in print_command_1 (args=<optimized out>, voidprint=1) at ../../gdb/printcmd.c:1319 #9 0x0000555555732f9d in cmd_func (cmd=<optimized out>, args=<optimized out>, from_tty=<optimized out>) at ../../gdb/cli/cli-decode.c:2543 #10 0x0000555555c6fbb0 in execute_command (p=<optimized out>, p@entry=0x7ffff70abac0 "p BCSCTL1 ", from_tty=<optimized out>) at ../../gdb/top.c:690 #11 0x00005555558454cd in command_handler (command=0x7ffff70abac0 "p BCSCTL1 ") at ../../gdb/event-top.c:616 #12 0x0000555555846ddd in command_line_handler (rl=...) at ../../gdb/event-top.c:852 #13 0x0000555555845a24 in gdb_rl_callback_handler (rl=0x7ffff70aba90 "p BCSCTL1 ") at ../../gdb/event-top.c:246 #14 0x00007ffff7ddfc86 in rl_callback_read_char () from /usr/lib/libreadline.so.8 #15 0x0000555555845b6e in gdb_rl_callback_read_char_wrapper_noexcept () at ../../gdb/event-top.c:188 #16 0x0000555555845ce0 in gdb_rl_callback_read_char_wrapper (client_data=<optimized out>) at ../../gdb/event-top.c:221 #17 0x0000555555844bf8 in stdin_event_handler (error=<optimized out>, client_data=0x7ffff7f04e70) at ../../gdb/event-top.c:541 #18 0x00005555561a5f6c in gdb_wait_for_event (block=block@entry=1) at ../../gdbsupport/event-loop.cc:716 #19 0x00005555561a68f0 in gdb_wait_for_event (block=1) at ../../gdbsupport/event-loop.cc:593 #20 gdb_do_one_event (mstimeout=mstimeout@entry=-1) at ../../gdbsupport/event-loop.cc:264 #21 0x000055555599fb6a in start_event_loop () at ../../gdb/main.c:411 #22 captured_command_loop () at ../../gdb/main.c:471 #23 0x00005555559a1ac5 in captured_main (data=data@entry=0x7fffffffe420) at ../../gdb/main.c:1330 #24 gdb_main (args=args@entry=0x7fffffffe450) at ../../gdb/main.c:1345 #25 0x00005555555d4e6a in main (argc=<optimized out>, argv=<optimized out>) at ../../gdb/gdb.c:32 -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2023-06-03 18:28 UTC|newest] Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-05-08 21:05 [Bug gdb/30431] New: " marian.buschsieweke at ovgu dot de 2023-05-09 15:01 ` [Bug gdb/30431] " tromey at sourceware dot org 2023-05-09 15:59 ` marian.buschsieweke at ovgu dot de 2023-05-09 16:53 ` marian.buschsieweke at ovgu dot de 2023-06-02 7:19 ` marian.buschsieweke at posteo dot net 2023-06-02 15:06 ` tromey at sourceware dot org 2023-06-03 18:28 ` marian.buschsieweke at posteo dot net [this message] 2023-06-03 18:29 ` marian.buschsieweke at posteo dot net 2023-06-03 20:31 ` tromey at sourceware dot org 2023-06-03 21:33 ` marian.buschsieweke at posteo dot net 2023-06-03 21:35 ` marian.buschsieweke at posteo dot net 2023-06-04 17:25 ` tromey at sourceware dot org 2023-06-04 20:19 ` marian.buschsieweke at posteo dot net 2023-06-20 21:20 ` tromey at sourceware dot org 2023-06-20 21:21 ` tromey at sourceware dot org 2023-07-10 17:19 ` cvs-commit at gcc dot gnu.org 2023-07-10 17:19 ` tromey at sourceware dot org
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-30431-4717-vJvuaelwCO@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).