Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 930 Bytes

File metadata and controls

22 lines (15 loc) · 930 Bytes

When weblog experiences segmentation fault, it may be difficult to get a core dump. Here is an helpful recipe from @sanchda :

For instance, on python django weblog :

> docker run -it system_tests/weblog bash
root@x:/app# apt-get install weget
root@x:/app# wget https://github.com/sanchda/test_gcr/releases/download/v1.16.1_innerapi/libSegFault.so
root@x:/app# chmod +x libSegFault.so
root@x:/app# LD_PRELOAD=/app/libSegFault.so ddtrace-run gunicorn -w 1 -b 0.0.0.0:7777 --access-logfile - django_app.wsgi -k gevent


... And here comes the fun !!!