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).
Run an application like
python -m http.server &
then attach to it withmemray attach -v $!
. Theattach
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 thememray 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).