Bug 14443 - Mach error in function darwin_resume_thread when continuing after attaching to a process
Summary: Mach error in function darwin_resume_thread when continuing after attaching t...
Status: NEW
Alias: None
Product: gdb
Classification: Unclassified
Component: gdb (show other bugs)
Version: HEAD
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-08 09:34 UTC by Tomi Kyöstilä
Modified: 2018-09-15 19:35 UTC (History)
3 users (show)

See Also:
Host:
Target: *-*-darwin*
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomi Kyöstilä 2012-08-08 09:34:26 UTC
Steps to reproduce:

1. $ gdb
2. (gdb) attach 12688
3. (gdb) continue


Actual results:

Output:
Continuing.
warning: Mach error at "darwin-nat.c:726" in function "darwin_resume_thread": (os/kern) failure (0x5)

The attached process continues to run normally, but gdb does not break on Ctrl-C. When the attached process terminates, gdb returns to the (gdb) prompt.


Expected results:

gdb should break on Ctrl-C.


Running GNU gdb (GDB) 7.5.50.20120806-cvs (configured as "x86_64-apple-darwin10.8.0") on Darwin iMac.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun  7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386
Comment 1 Omar Awile 2013-06-25 14:13:43 UTC
I can confirm this bug. Same behavior with gdb 7.6 on Darwin nyu.local 12.3.0 Darwin Kernel Version 12.3.0 (Mac OSX 10.8.3)