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

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

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

schwab@linux-m68k.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.
Reply | Threaded
Open this post in threaded view
|

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

schwab@linux-m68k.org
https://sourceware.org/bugzilla/show_bug.cgi?id=22629

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2018-07-03
                 CC|                            |tromey at sourceware dot org
     Ever confirmed|0                           |1

--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
I didn't try it yet, but I've seen this report before, and Tristan
wrote a patch to fix it.

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

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

schwab@linux-m68k.org
In reply to this post by schwab@linux-m68k.org
https://sourceware.org/bugzilla/show_bug.cgi?id=22629

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |*-*-darwin*

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