hypothesis / viahtml

HTML proxying component for Via
BSD 2-Clause "Simplified" License
2 stars 4 forks source link

Support dumping gevent stacks from uWSGI workers #715

Closed robertknight closed 2 months ago

robertknight commented 2 months ago

To help debug cases where a worker process "hangs", add a SIGCONT signal handler which dumps both the native and greenlet threads.

Testing:

  1. Run make dev
  2. Find pid of a uwsgi worker by running ps aux | grep uwsgi
  3. Send signal to uwsgi worker using kill -s SIGCONT $PID

This will cause native and greenlet stack traces to be dumped to the worker's stderr.