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

Interrupting memray attach with Ctrl-C segfaults the application it's attached to #609

Open
godlygeek opened this issue May 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@godlygeek
Copy link
Contributor

Run an application like python -m http.server & then attach to it with memray attach -v $!. The attach call hangs, because it's waiting for an allocation in the HTTP server process which will never come (unless you send it an HTTP request). But, if you Ctrl-C the memray attach call, the HTTP server process dies with a segfault, in at least some cases (I'm having trouble reproducing this, but it reproduced for @gusmonod consistently).

@godlygeek godlygeek added the bug Something isn't working label May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant