Community
Participate
Working Groups
Created attachment 93741 [details] fix for ptrace attach race condition The attached patch fixes a race condition when attaching to newly created processes. The new method is using PTRACE_TRACEME on the child process. The context create notification is delayed until waitpid() reports that the context is stopped. Before this point no ptrace() calls should be made. A second issue was that when an attached process calls fork or clone the child stopped notification can come before the fork/clone notification. Prior to this change the stop notification was dropped which caused the state logic to be out of sync. With this patch the contextAdded event arrives after the return value of the command that created process. This seems incorrect, but the diagnostic tests seems to work.
Patch is 76 lines of code. Felix did you write everything yourself or reference any other code? - Please add our default legal message on this bug, as per http://www.eclipse.org/dsdp/tm/development/committer_howto.php#external_contrib Eugene can you review and commit the patch, add the contributed kwd and add to our tm-log.csv IP Log.
Created attachment 94266 [details] updated fix for ptrace attach race condition Updated patch that fixes the issue with contextAdded events arriving after the reply. Patch is writen by me without referencing any 3rd party material.
Commited to SVN
Moving bugs to new home for IP log.
Bulk update: Marking all bugs from the TM era (before June 2011) target 0.3