public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug server/17302] New: gdbserver function call + detach crashes inferior process
@ 2014-08-22 13:26 simon.marchi at ericsson dot com
  2014-08-22 13:28 ` [Bug server/17302] " simon.marchi at ericsson dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: simon.marchi at ericsson dot com @ 2014-08-22 13:26 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-12-10 21:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-22 13:26 [Bug server/17302] New: gdbserver function call + detach crashes inferior process simon.marchi at ericsson dot com
2014-08-22 13:28 ` [Bug server/17302] " simon.marchi at ericsson dot com
2014-09-03 15:51 ` simon.marchi at ericsson dot com
2014-09-03 15:51 ` simon.marchi at ericsson dot com
2014-09-03 18:25 ` simon.marchi at ericsson dot com
2014-12-10 21:14 ` cvs-commit at gcc dot gnu.org

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).