Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop target process immediately after execve. #12

Closed
wants to merge 1 commit into from

Conversation

ebfe
Copy link
Contributor

@ebfe ebfe commented Nov 13, 2014

The current way of launching to be debugged processes is kind of racy. They are
started and then get sent a SIGSTOP. This results in the target being stopped
at a more or less arbitrary point. There is explicit support for launching to
be traced processes in os/exec. By setting SysProcAttr.Ptrace we can make the
target process stop immediately after the execve.

@@ -30,7 +30,7 @@ func WithTestProcess(name string, t *testing.T, fn testfunc) {
}
defer os.Remove("./" + base)

p, err := proctl.AttachBinary("./" + base)
p, err := proctl.AttachBinary("./" + base, true)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The arity of AttachBinary hasn't changed.

@ebfe
Copy link
Contributor Author

ebfe commented Nov 13, 2014

Have another look.

@derekparker
Copy link
Member

LGTM - merged.

nclifton pushed a commit to nclifton/delve that referenced this pull request Feb 24, 2021
* Process MO worker

* Fix the empty accountRPC client and changed sender on account to array

* Removed mongo install from the main backend dockerfile

* Make sure we check we are sending with a valid sender

* Implement the mo webhook

* Ported the runtest script

* Fixed/removed borken tests

* Fixed up linting

* Set alaris username and password from account with optional url for the
alaris endpoint (so you can use tualet instead)

* Ommit last message if its not set

* removed log

* Fix multipart check

* Removed wayward binary

* Add redis to sms service db

* Store multipart MO parts in redis and combine when we have all parts

* Maek tualet send mo parts with a random delay.. just liek real servers

* Export the redis port to the local machine

* Updated gitignore

* Removed _ from id in account

* Optimised the return logic at the end of process mo

* Fix retry on rate limit hit

* Return on error when sending dlrs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants