This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]