From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D4E573858D32; Sat, 3 Jun 2023 18:28:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D4E573858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1685816895; bh=iQLNedoDGvudAjKEJuzikjDQNXDy+Cp36Oz9RB/K9a8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=pQFYzaarrJ1rUy2CsjZcScEGPiZQqRD73v2eHds/XncUy5q+7CU4XhpPDRHpdLNFt CmmJkx3eRz1ahoAXoxUv9nl54h9bs29RUG65sGcQhxpkIbRfqv82DY2jkLRKWWWHbe R70N+jDX7rNoDK1GmpTmttO96io+bYUmXsBEv3ic= From: "marian.buschsieweke at posteo dot net" To: gdb-prs@sourceware.org Subject: [Bug gdb/30431] segfault when inspecting remote variable Date: Sat, 03 Jun 2023 18:28:14 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 13.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marian.buschsieweke at posteo dot net 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: attachments.isobsolete attachments.created 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=3D30431 Marian Buschsieweke changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #14870|0 |1 is obsolete| | --- Comment #6 from Marian Buschsieweke --- Created attachment 14914 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D14914&action=3Ded= it 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=20 [...] 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=20 /home/buildozer/aports/community/newlib/src/newlib-4.3.0.20230120/libgloss/= msp430/crt0.S: No such file or directory. (gdb) p BCSCTL1=20 Thread 1 "gdb-multiarch" received signal SIGSEGV, Segmentation fault. 0x000055555586ae9a in language_defn::read_var_value (this=3D, var=3D0x7ffff6acaec0, var_block=3D0x7ffff6a36b70, frame=3D...) 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=3D, var=3D0x7ffff6acaec0, var_block=3D0x7ffff6a36b70, frame=3D...) at ../../gdb/findvar.c:756 #1 0x0000555555867c1f in read_var_value (var=3Dvar@entry=3D0x7ffff6aca= ec0, var_block=3Dvar_block@entry=3D0x7ffff6a36b70, frame=3D...) at ../../gdb/fin= dvar.c:794 #2 0x0000555555cbf5e8 in value_of_variable (var=3Dvar@entry=3D0x7ffff6= acaec0, b=3D0x7ffff6a36b70) at ../../gdb/valops.c:1385 #3 0x000055555583e2db in evaluate_var_value (var=3D0x7ffff6acaec0, blk=3D, noside=3DEVAL_NORMAL) at ../../gdb/eval.c:559 #4 expr::var_value_operation::evaluate (this=3D0x7ffff6a9ee70, expect_type=3D, exp=3D, noside=3DEVAL_NORMAL)= at ../../gdb/eval.c:585 #5 0x000055555583e37d in expression::evaluate (this=3D0x7ffff6a9edd0, expect_type=3D0x0, noside=3Dnoside@entry=3DEVAL_NORMAL) at ../../gdb/eval.c= :101 #6 0x000055555583e6f7 in evaluate_expression (exp=3D, expect_type=3D) at ../../gdb/eval.c:115 #7 0x0000555555a84d91 in process_print_command_args (args=3D, print_opts=3Dprint_opts@entry=3D0x7fffffffdfa0, voidprint=3Dvoidprint@entry= =3Dtrue) at /usr/include/c++/13.1.1/bits/unique_ptr.h:199 #8 0x0000555555a85d80 in print_command_1 (args=3D, voidprint=3D1) at ../../gdb/printcmd.c:1319 #9 0x0000555555732f9d in cmd_func (cmd=3D, args=3D, from_tty=3D) at ../../gdb/cli/cli-decode.c:2543 #10 0x0000555555c6fbb0 in execute_command (p=3D, p@entry=3D0x7ffff70abac0 "p BCSCTL1 ", from_tty=3D) at ../../gdb/top.c:690 #11 0x00005555558454cd in command_handler (command=3D0x7ffff70abac0 "p BCSCTL1 ") at ../../gdb/event-top.c:616 #12 0x0000555555846ddd in command_line_handler (rl=3D...) at ../../gdb/event-top.c:852 #13 0x0000555555845a24 in gdb_rl_callback_handler (rl=3D0x7ffff70aba90 = "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=3D) at ../../gdb/event-top.c:221 #17 0x0000555555844bf8 in stdin_event_handler (error=3D, client_data=3D0x7ffff7f04e70) at ../../gdb/event-top.c:541 #18 0x00005555561a5f6c in gdb_wait_for_event (block=3Dblock@entry=3D1) = at ../../gdbsupport/event-loop.cc:716 #19 0x00005555561a68f0 in gdb_wait_for_event (block=3D1) at ../../gdbsupport/event-loop.cc:593 #20 gdb_do_one_event (mstimeout=3Dmstimeout@entry=3D-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=3Ddata@entry=3D0x7fffffff= e420) at ../../gdb/main.c:1330 #24 gdb_main (args=3Dargs@entry=3D0x7fffffffe450) at ../../gdb/main.c:1= 345 #25 0x00005555555d4e6a in main (argc=3D, argv=3D) at ../../gdb/gdb.c:32 --=20 You are receiving this mail because: You are on the CC list for the bug.=