This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug server/17302] New: gdbserver function call + detach crashes inferior process
- From: "simon.marchi at ericsson dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Fri, 22 Aug 2014 13:26:06 +0000
- Subject: [Bug server/17302] New: gdbserver function call + detach crashes inferior process
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=17302
Bug ID: 17302
Summary: gdbserver function call + detach crashes inferior
process
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: server
Assignee: unassigned at sourceware dot org
Reporter: simon.marchi at ericsson dot com
Created attachment 7754
--> https://sourceware.org/bugzilla/attachment.cgi?id=7754&action=edit
Test program
Steps:
1- Build test.c (attached to this post)
$ gcc -O0 -g3 test.c
2- Start gdbserver (in terminal #1)
$ gdbserver --multi :1234
3- Start the process (in terminal #2)
$ ./a.out
pid = 4397
...
4- Start gdb (in terminal #3)
$ gdb -nx a.out
5- Connect to gdbserver
(gdb) tar ext :1234
6- Attach the process
(gdb) attach 4397
7- Call a function
(gdb) call another_function()
8- Detach the process
(gdb) detach
The process segfaults when trying to continue its execution.
--
You are receiving this mail because:
You are on the CC list for the bug.