This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug rust/20603] gdb fails to properly restart a rust test executable
- From: "skimo-bugzilla2 at kotnet dot org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 02 Aug 2017 09:45:21 +0000
- Subject: [Bug rust/20603] gdb fails to properly restart a rust test executable
- Auto-submitted: auto-generated
- References: <bug-20603-4717@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=20603
Sven Verdoolaege <skimo-bugzilla2 at kotnet dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |skimo-bugzilla2 at kotnet dot org
--- Comment #2 from Sven Verdoolaege <skimo-bugzilla2 at kotnet dot org> ---
I can reliably reproduce a very similar problem on Ubuntu 17.04,
although it does not seem to be related to rust.
In particular, as shown below, gdb fails to restart properly
after recompiling the program that is being debugged:
$ cat test.c
int main()
{
return 0;
}
$ gcc -g -o test test.c
$ gdb ./test
GNU gdb (GDB) 8.0
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./test...done.
(gdb) b main
Breakpoint 1 at 0x664: file test.c, line 3.
(gdb) r
Starting program: /tmp/test
Breakpoint 1, main () at test.c:3
3 return 0;
(gdb) shell
$ gcc -g -o test test.c
$ exit
exit
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
`/tmp/test' has changed; re-reading symbols.
Error in re-setting breakpoint 1: Cannot access memory at address
0x555555554660
Starting program: /tmp/test
warning: Probes-based dynamic linker interface failed.
Reverting to original interface.
[Inferior 1 (process 27665) exited normally]
--
You are receiving this mail because:
You are on the CC list for the bug.