[Bug gdb/22629] New: GDB on MacOS is leaving an orphaned debuggee process running

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Bug gdb/22629] New: GDB on MacOS is leaving an orphaned debuggee process running

cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=22629

            Bug ID: 22629
           Summary: GDB on MacOS is leaving an orphaned debuggee process
                    running
           Product: gdb
           Version: 8.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: abdul.basitijaz at gmail dot com
  Target Milestone: ---

GDB on MacOS(10.12.3) is leaving an orphaned debuggee process running on the
system after gdb exits.

Issue can be verified with any cpp executable out file.

To reproduce, compile any cpp program then run it under gdb, then quit gdb
during debugging :

For compilation :
g++ -g -c <ANY_TEST>.cpp
g++ -g <ANY_TEST>.o -o <ANY_TEST>.exe

For debugging :
> gdb
>> file <ANY_TEST>.exe
>> b main
>> r
After break point is hit quit the GDB and verify the process list
>> r or q  (for both f these commands GDB shows that inferior process will  be killed but it is not getting killed )

> ps ax |grep <ANY_TEST>.exe

<ANY_TEST>.exe will be shown that it is still running . So as many times you
perform above steps process will keep adding here

Test Environment info :

macOS  10.12.3
Kernel Version: Darwin 16.4.0
GNU gdb (GDB) 8.0.1

--
You are receiving this mail because:
You are on the CC list for the bug.