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

Closed
godlygeek opened this issue May 20, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@godlygeek
Copy link
Contributor

godlygeek commented May 20, 2024

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 @sarahmonod consistently).

@godlygeek godlygeek added the bug Something isn't working label May 20, 2024
@godlygeek
Copy link
Contributor Author

We're no longer able to reproduce this with the latest main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
1 participant